模型:
前瞻性陈述(FLS)向投资者传达了管理者对公司未来事件或结果的信念和观点。从公司报告中识别出前瞻性陈述可以帮助投资者进行财务分析。FinBERT-FLS是一个在罗素3000公司年度报告的管理讨论与分析部分手动标注的3,500个句子上微调的FinBERT模型。
输入:一个财务文本。
输出:具体-FLS,非具体FLS或非FLS。
您可以使用这个模型来进行前瞻性陈述分类的变压器管道。
# tested in transformers==4.18.0
from transformers import BertTokenizer, BertForSequenceClassification, pipeline
finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-fls',num_labels=3)
tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-fls')
nlp = pipeline("text-classification", model=finbert, tokenizer=tokenizer)
results = nlp('We expect the age of our fleet to enhance availability and reliability due to reduced downtime for repairs.')
print(results) # [{'label': 'Specific FLS', 'score': 0.77278733253479}]
访问 FinBERT.AI ,以了解FinBERT的最新发展详情。