Finance Sentiment ZH (base)

Finance Sentiment ZH (base) is a model based on bert-base-chinese 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-base")
nlp("净销售额增长30%,达到3600万欧元。")
[{'label': 'negative', 'score': 0.9999314546585083}]

Performance

Metric Value
f1 macro 0.966
precision macro 0.963
recall macro 0.969
accuracy 0.973
samples per second 135.2

(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 google-bert/bert-base-chinese (Apache 2.0).

Attribution: bert-base-chinese — Google Research; Finance Sentiment ZH (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
2,161
Safetensors
Model size
0.1B params
Tensor type
I64
·
F32
·
Inference Providers NEW

Model tree for bardsai/finance-sentiment-zh-base

Finetuned
(283)
this model

Dataset used to train bardsai/finance-sentiment-zh-base

Spaces using bardsai/finance-sentiment-zh-base 2

Collection including bardsai/finance-sentiment-zh-base

Evaluation results

  • F1 (macro) on Financial PhraseBank (translated to Chinese)
    self-reported
    0.966
  • Precision (macro) on Financial PhraseBank (translated to Chinese)
    self-reported
    0.963
  • Recall (macro) on Financial PhraseBank (translated to Chinese)
    self-reported
    0.969
  • Accuracy on Financial PhraseBank (translated to Chinese)
    self-reported
    0.973