Update README.md
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ More information needed
|
|
23 |
|
24 |
### How to use
|
25 |
|
26 |
-
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
27 |
import tensorflow
|
28 |
|
29 |
model_name = "ndavid/bert-base-cased-trec-fine"
|
@@ -39,6 +39,7 @@ nlp = pipeline("sentiment-analysis", model=model_name, tokenizer=model_name)
|
|
39 |
results = nlp(["Where did the queen go?", "Why did the Queen hire 1000 ML Engineers?"])
|
40 |
|
41 |
print(results)
|
|
|
42 |
|
43 |
|
44 |
## Training and evaluation data
|
|
|
23 |
|
24 |
### How to use
|
25 |
|
26 |
+
```from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
27 |
import tensorflow
|
28 |
|
29 |
model_name = "ndavid/bert-base-cased-trec-fine"
|
|
|
39 |
results = nlp(["Where did the queen go?", "Why did the Queen hire 1000 ML Engineers?"])
|
40 |
|
41 |
print(results)
|
42 |
+
```
|
43 |
|
44 |
|
45 |
## Training and evaluation data
|