Instructions to use ERCDiDip/langdetect with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ERCDiDip/langdetect with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ERCDiDip/langdetect")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ERCDiDip/langdetect") model = AutoModelForSequenceClassification.from_pretrained("ERCDiDip/langdetect", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -62,7 +62,7 @@ import torch
|
|
| 62 |
from transformers import pipeline
|
| 63 |
|
| 64 |
#Define pipeline
|
| 65 |
-
classificator = pipeline("text-classification", model="ERCDiDip/
|
| 66 |
|
| 67 |
#Use pipeline
|
| 68 |
classificator("clemens etc dilecto filio scolastico ecclesie wetflari ensi treveren dioc salutem etc significarunt nobis dilecti filii commendator et fratres hospitalis beate marie theotonicorum")
|
|
|
|
| 62 |
from transformers import pipeline
|
| 63 |
|
| 64 |
#Define pipeline
|
| 65 |
+
classificator = pipeline("text-classification", model="ERCDiDip/langdetect")
|
| 66 |
|
| 67 |
#Use pipeline
|
| 68 |
classificator("clemens etc dilecto filio scolastico ecclesie wetflari ensi treveren dioc salutem etc significarunt nobis dilecti filii commendator et fratres hospitalis beate marie theotonicorum")
|