ksirts commited on
Commit
ad1aacc
·
1 Parent(s): ede5845

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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("ner", model=bertner, 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
 
 
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