Update README.md
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ from transformers import pipeline
|
|
45 |
tokenizer = AutoTokenizer.from_pretrained("tartuNLP/EstBERT128_Rubric")
|
46 |
model = AutoModelForSequenceClassification.from_pretrained("tartuNLP/EstBERT128_Rubric")
|
47 |
|
48 |
-
nlp = pipeline("
|
49 |
text = "Kaia Kanepi (WTA 57.) langes USA-s Charlestonis toimuval WTA 500 kategooria tenniseturniiril konkurentsist kaheksandikfinaalis, kaotades poolatarile Magda Linette'ile (WTA 64.) 3 : 6, 6 : 4, 2 : 6."
|
50 |
result = nlp(text)
|
51 |
|
|
|
45 |
tokenizer = AutoTokenizer.from_pretrained("tartuNLP/EstBERT128_Rubric")
|
46 |
model = AutoModelForSequenceClassification.from_pretrained("tartuNLP/EstBERT128_Rubric")
|
47 |
|
48 |
+
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
49 |
text = "Kaia Kanepi (WTA 57.) langes USA-s Charlestonis toimuval WTA 500 kategooria tenniseturniiril konkurentsist kaheksandikfinaalis, kaotades poolatarile Magda Linette'ile (WTA 64.) 3 : 6, 6 : 4, 2 : 6."
|
50 |
result = nlp(text)
|
51 |
|