Token Classification
Transformers
ONNX
Safetensors
Danish
electra
punctuation-restoration
sentence-boundary-detection
truecasing
danish
Instructions to use RyeAI/ekko-pnc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RyeAI/ekko-pnc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="RyeAI/ekko-pnc")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("RyeAI/ekko-pnc") model = AutoModelForTokenClassification.from_pretrained("RyeAI/ekko-pnc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from RyeAI/ekko-pnc: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/RyeAI/ekko-pnc/resolve/main/config.json
- Command line
-
hf download hf://RyeAI/ekko-pnc/config.json
-
curl -L -o config.json https://huggingface.co/RyeAI/ekko-pnc/resolve/main/config.json
1.06 kB
| { | |
| "architectures": [ | |
| "ElectraForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "embedding_size": 128, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 256, | |
| "id2label": { | |
| "0": "O", | |
| "1": "O|U", | |
| "2": ",", | |
| "3": ",|U", | |
| "4": ".", | |
| "5": ".|U", | |
| "6": "?", | |
| "7": "?|U", | |
| "8": "!", | |
| "9": "!|U" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1024, | |
| "label2id": { | |
| "!": 8, | |
| "!|U": 9, | |
| ",": 2, | |
| ",|U": 3, | |
| ".": 4, | |
| ".|U": 5, | |
| "?": 6, | |
| "?|U": 7, | |
| "O": 0, | |
| "O|U": 1 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "electra", | |
| "num_attention_heads": 4, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "summary_activation": "gelu", | |
| "summary_last_dropout": 0.1, | |
| "summary_type": "first", | |
| "summary_use_proj": true, | |
| "transformers_version": "4.57.6", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 96105 | |
| } | |