Instructions to use Aminrhmni/Persian_text_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use Aminrhmni/Persian_text_classification with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("Aminrhmni/Persian_text_classification", set_active=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -75,4 +75,6 @@ model = BertForSequenceClassification.from_pretrained(model_path)
|
|
| 75 |
|
| 76 |
tokenizer= BertTokenizerFast.from_pretrained(model_path)
|
| 77 |
|
| 78 |
-
nlp= pipeline("text-classification", model=model, tokenizer=tokenizer)
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
tokenizer= BertTokenizerFast.from_pretrained(model_path)
|
| 77 |
|
| 78 |
+
nlp= pipeline("text-classification", model=model, tokenizer=tokenizer)
|
| 79 |
+
|
| 80 |
+
nlp("متن ورودی")
|