FinancialBERT model 5d43385
Ahmed HAZOURLI (BFR) commited on
How to use ahmedrachid/FinancialBERT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="ahmedrachid/FinancialBERT") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("ahmedrachid/FinancialBERT")
model = AutoModelForMaskedLM.from_pretrained("ahmedrachid/FinancialBERT")