Instructions to use Tillicollaps/Gender-Classification-russian-name with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tillicollaps/Gender-Classification-russian-name with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tillicollaps/Gender-Classification-russian-name")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tillicollaps/Gender-Classification-russian-name") model = AutoModelForSequenceClassification.from_pretrained("Tillicollaps/Gender-Classification-russian-name") - Notebooks
- Google Colab
- Kaggle
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танислав"
|