Instructions to use danzzzll/rubert-tiny_cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use danzzzll/rubert-tiny_cls with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="danzzzll/rubert-tiny_cls")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("danzzzll/rubert-tiny_cls") model = AutoModelForSequenceClassification.from_pretrained("danzzzll/rubert-tiny_cls") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
|
|
| 1 |
texts = List[str]
|
| 2 |
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
classifier = pipeline("text-classification", model='danzzzll/rubert-tiny_cls', tokenizer='cointegrated/rubert-tiny2')
|
| 6 |
-
classifier(texts)
|
|
|
|
|
|
| 1 |
+
```python
|
| 2 |
texts = List[str]
|
| 3 |
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
classifier = pipeline("text-classification", model='danzzzll/rubert-tiny_cls', tokenizer='cointegrated/rubert-tiny2')
|
| 7 |
+
classifier(texts)
|
| 8 |
+
```
|