Jean-Baptiste/roberta-large-financial-news-topics-en

🤗 Hugging Face 来源text-classificationmit355M 参数1.4 GBsafetensors✓ 2 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo Jean-Baptiste/roberta-large-financial-news-topics-en ./model-folder
需要做种者 →

Model fine-tuned from roberta-large for topic classification of financial news (emphasis on Canadian news).

Introduction

This model was train on the topic column of financial_news_sentiment_mixte_with_phrasebank_75 dataset. The topic column was generated using a zero-shot classification model on 11 topics. There was no manual reviews on the generated topics and therefore we should expect misclassifications in the dataset, and therefore the trained model might reproduce the same errors.

Training data

Training data was classified as follow:

class Description
0 acquisition
1 other
2 quaterly financial release
3 appointment to new position
4 dividend
5 corporate update
6 drillings results
7 conference
8 share repurchase program
9 grant of stocks

How to use roberta-large-financial-news-topics-en with HuggingFace

Load roberta-large-financial-news-topics-en and its sub-word tokenizer :
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/roberta-large-financial-news-topics-en")
model = AutoModelForSequenceClassification.from_pretrained("Jean-Baptiste/roberta-large-financial-news-topics-en")


##### Process text sample (from wikipedia)

from transformers import pipeline

pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
pipe("Melcor REIT (TSX: MR.UN) today announced results for the third quarter ended September 30, 2022. Revenue was stable in the quarter and year-to-date. Net operating income was down 3% in the quarter at $11.61 million due to the timing of operating expenses and inflated costs including utilities like gas/heat and power")

[{'label': 'quaterly financial release', 'score': 0.8829097151756287}]

Model performances

Overall f1 score (average macro)

precision recall f1
0.7533 0.7629 0.7499