Views
No views yet
| precision | recall | f1-score | support | |
|---|---|---|---|---|
| 0 | 0.89 | 0.94 | 0.91 | 217 |
| 1 | 0.68 | 0.39 | 0.50 | 33 |
| 2 | 0.71 | 0.87 | 0.78 | 45 |
| 3 | 0.75 | 0.52 | 0.62 | 23 |
| -- | -- | -- | -- | -- |
| accuracy | 0.84 | 318 | ||
| macro | avg | 0.76 | 0.68 | 0.70 |
| weighted | avg | 0.83 | 0.84 | 0.83 |
1
2```python
3from transformers import AutoModelForSequenceClassification, AutoTokenizer
4
5model = AutoModelForSequenceClassification.from_pretrained("namespace/my-model")
6tokenizer = AutoTokenizer.from_pretrained("namespace/my-model")
7
8inputs = tokenizer("hello world", return_tensors="pt")
9outputs = model(**inputs)
10print(outputs)"1from transformers import TextClassificationPipeline
2
3model = TextClassificationPipeline("namespace/my-model")
4outputs = model("Hello World!")
5print(outputs)"