mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
272 B
272 B
language | |
---|---|
|
binary classification
Usage
print(pipeline("sentiment-analysis",model="daigo/bert-base-japanese-sentiment",tokenizer="daigo/bert-base-japanese-sentiment")("私は幸福である。"))
[{'label': 'ポジティブ', 'score': 0.98430425}]