Token Classification
Transformers
Safetensors
Malagasy
xlm-roberta
punctuation-restoration
truecasing
malagasy
asr-postprocessing
Instructions to use Flo976/malagasy-punctuation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Flo976/malagasy-punctuation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Flo976/malagasy-punctuation")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Flo976/malagasy-punctuation") model = AutoModelForTokenClassification.from_pretrained("Flo976/malagasy-punctuation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download valid_metrics.json from Flo976/malagasy-punctuation: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/Flo976/malagasy-punctuation/resolve/main/valid_metrics.json
- Command line
-
hf download hf://Flo976/malagasy-punctuation/valid_metrics.json
-
curl -L -o valid_metrics.json https://huggingface.co/Flo976/malagasy-punctuation/resolve/main/valid_metrics.json
846 Bytes
| { | |
| "step": 8070, | |
| "epoch": 2.5, | |
| "min": 10.9, | |
| "valid": { | |
| "par_signe": { | |
| ",": { | |
| "P": 60.66, | |
| "R": 49.17, | |
| "F1": 54.31, | |
| "n_ref": 4444 | |
| }, | |
| ".": { | |
| "P": 75.29, | |
| "R": 84.74, | |
| "F1": 79.73, | |
| "n_ref": 5885 | |
| }, | |
| "?": { | |
| "P": 52.17, | |
| "R": 42.86, | |
| "F1": 47.06, | |
| "n_ref": 28 | |
| }, | |
| "!": { | |
| "P": 76.92, | |
| "R": 47.62, | |
| "F1": 58.82, | |
| "n_ref": 42 | |
| }, | |
| ":": { | |
| "P": 34.34, | |
| "R": 24.27, | |
| "F1": 28.44, | |
| "n_ref": 375 | |
| }, | |
| ";": { | |
| "P": 0.0, | |
| "R": 0.0, | |
| "F1": 0.0, | |
| "n_ref": 581 | |
| } | |
| }, | |
| "f1_macro_5": 53.67, | |
| "f1_micro_tous_signes": 66.63, | |
| "casse_exactitude": 97.24, | |
| "majuscule_F1": 80.08 | |
| }, | |
| "score": 63.394 | |
| } |