Instructions to use bardsai/finance-sentiment-ja-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bardsai/finance-sentiment-ja-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bardsai/finance-sentiment-ja-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bardsai/finance-sentiment-ja-base") model = AutoModelForSequenceClassification.from_pretrained("bardsai/finance-sentiment-ja-base") - Notebooks
- Google Colab
- Kaggle
Finance Sentiment JA (base)
Finance Sentiment JA (base) is a model based on bert-base-japanese for analyzing sentiment of Japanese 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-ja-base")
nlp("売上高は30%増の3,600万ユーロとなった。")
[{'label': 'positive', 'score': 0.9987998807375955}]
Performance
| Metric | Value |
|---|---|
| f1 macro | 0.959 |
| precision macro | 0.959 |
| recall macro | 0.959 |
| accuracy | 0.967 |
| samples per second | 134.9 |
(The performance was evaluated on RTX 3090 gpu)
Changelog
- 2023-09-18: Initial release
License
This model is released under the Creative Commons Attribution-ShareAlike 3.0 (CC BY-SA 3.0) license, inherited from the base model cl-tohoku/bert-base-japanese, which is distributed under CC BY-SA 3.0.
ShareAlike requirement: because the base model is licensed under CC BY-SA, any further derivative of this model must also be distributed under the same license (CC BY-SA 3.0, or a later compatible CC BY-SA version).
The base model's pretraining data (Japanese Wikipedia, snapshot 2019-09-01) is itself distributed under CC BY-SA 4.0.
Attribution: bert-base-japanese — Tohoku University NLP Group; Finance Sentiment JA (base) — 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
- 697
Model tree for bardsai/finance-sentiment-ja-base
Base model
tohoku-nlp/bert-base-japaneseDataset used to train bardsai/finance-sentiment-ja-base
Space using bardsai/finance-sentiment-ja-base 1
Collection including bardsai/finance-sentiment-ja-base
Evaluation results
- F1 (macro) on Financial PhraseBank (translated to Japanese)self-reported0.959
- Precision (macro) on Financial PhraseBank (translated to Japanese)self-reported0.959
- Recall (macro) on Financial PhraseBank (translated to Japanese)self-reported0.959
- Accuracy on Financial PhraseBank (translated to Japanese)self-reported0.967