Update README.md
Browse files
README.md
CHANGED
|
@@ -23,8 +23,11 @@ from transformers import TextClassificationPipeline,
|
|
| 23 |
from transliterate import translit
|
| 24 |
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased")
|
|
|
|
| 26 |
model = AutoModelForSequenceClassification.from_pretrained("CustomModel_Russia", num_labels=2)
|
|
|
|
| 27 |
nlp = TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
|
|
|
| 28 |
#If the language of the text is different from English, use the 'translit' library.
|
| 29 |
|
| 30 |
name = "Cтанислав"
|
|
|
|
| 23 |
from transliterate import translit
|
| 24 |
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased")
|
| 26 |
+
|
| 27 |
model = AutoModelForSequenceClassification.from_pretrained("CustomModel_Russia", num_labels=2)
|
| 28 |
+
|
| 29 |
nlp = TextClassificationPipeline(model=model, tokenizer=tokenizer)
|
| 30 |
+
|
| 31 |
#If the language of the text is different from English, use the 'translit' library.
|
| 32 |
|
| 33 |
name = "Cтанислав"
|