BankAI-BERT is a domain-specific BERT-based model fine-tuned for detecting AI-related disclosures in banking texts.
BankAI-BERT is designed to assist researchers, analysts, and regulators in identifying AI narratives in financial disclosures at the sentence level.
BankAI-BERT was fine-tuned on a manually annotated dataset comprising sentences from U.S. bank annual reports spanning 2015 to 2023. The final training set included a balanced sample of 1,586 sentences—793 labeled as AI-related and 793 as non-AI. The model was initialized using the bert-base-uncased architecture.
For full pipeline, data, and visualizations, see the
GitHub repository.
.
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2tokenizer = AutoTokenizer.from_pretrained("bilalzafar/BankAI-BERT")
3model = AutoModelForSequenceClassification.from_pretrained("bilalzafar/BankAI-BERT")
4
5## Inference Example
6from transformers import pipeline
7classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
8result = classifier("We are integrating AI into our credit risk management systems.")
9print(result)
10### Note: 1=AI and 0=Non-AI