Instructions to use Aleph-Alpha/Aleph-Alpha-GermanWeb-Grammar-Classifier-fastText with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use Aleph-Alpha/Aleph-Alpha-GermanWeb-Grammar-Classifier-fastText with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("Aleph-Alpha/Aleph-Alpha-GermanWeb-Grammar-Classifier-fastText", "model.bin")) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ import fasttext
|
|
| 25 |
from huggingface_hub import hf_hub_download
|
| 26 |
|
| 27 |
|
| 28 |
-
model_path = hf_hub_download(repo_id="Aleph-Alpha/Aleph-Alpha-Grammar-Classifier-fastText", filename="model.bin")
|
| 29 |
model = fasttext.load_model(model_path)
|
| 30 |
|
| 31 |
text = "Das ist ein Beispieltext, um die Grammatik zu überprüfen."
|
|
|
|
| 25 |
from huggingface_hub import hf_hub_download
|
| 26 |
|
| 27 |
|
| 28 |
+
model_path = hf_hub_download(repo_id="Aleph-Alpha/Aleph-Alpha-GermanWeb-Grammar-Classifier-fastText", filename="model.bin")
|
| 29 |
model = fasttext.load_model(model_path)
|
| 30 |
|
| 31 |
text = "Das ist ein Beispieltext, um die Grammatik zu überprüfen."
|