Instructions to use bardsai/finance-sentiment-zh-fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bardsai/finance-sentiment-zh-fast with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bardsai/finance-sentiment-zh-fast")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bardsai/finance-sentiment-zh-fast") model = AutoModelForSequenceClassification.from_pretrained("bardsai/finance-sentiment-zh-fast") - Notebooks
- Google Colab
- Kaggle
Finance Sentiment ZH (fast)
Finance Sentiment ZH (fast) is a distiluse-based model for analyzing sentiment of Chinese financial news. It was trained on the translated version of Financial PhraseBank by Malo et al. (2014) for 10 epochs on single RTX3090 gpu.
The model will give you a three labels: positive, negative and neutral.
How to use
You can use this model directly with a pipeline for sentiment-analysis:
from transformers import pipeline
nlp = pipeline("sentiment-analysis", model="bardsai/finance-sentiment-zh-fast")
nlp("净销售额增长30%,达到3600万欧元。")
[{'label': 'positive', 'score': 0.9996095299720764}]
Performance
| Metric | Value |
|---|---|
| f1 macro | 0.953 |
| precision macro | 0.959 |
| recall macro | 0.949 |
| accuracy | 0.961 |
| samples per second | 264.6 |
(The performance was evaluated on RTX 3090 gpu)
Changelog
- 2023-07-12: Initial release
License
This model is released under the Apache License 2.0, inherited from the base model sentence-transformers/distiluse-base-multilingual-cased-v1 (Apache 2.0).
Attribution: distiluse-base-multilingual-cased-v1 — Sentence-Transformers (UKP Lab); Finance Sentiment ZH (fast) — bards.ai.
About bards.ai
At bards.ai, we focus on providing machine learning expertise and skills to our partners, particularly in the areas of nlp, machine vision and time series analysis. Our team is located in Wroclaw, Poland. Please visit our website for more information: bards.ai
Let us know if you use our model :). Also, if you need any help, feel free to contact us at info@bards.ai
- Downloads last month
- 380
Model tree for bardsai/finance-sentiment-zh-fast
Dataset used to train bardsai/finance-sentiment-zh-fast
Collection including bardsai/finance-sentiment-zh-fast
Evaluation results
- F1 (macro) on Financial PhraseBank (translated to Chinese)self-reported0.953
- Precision (macro) on Financial PhraseBank (translated to Chinese)self-reported0.959
- Recall (macro) on Financial PhraseBank (translated to Chinese)self-reported0.949
- Accuracy on Financial PhraseBank (translated to Chinese)self-reported0.961