Token Classification
Transformers
Safetensors
Korean
roberta
named-entity-recognition
timex
korean
Eval Results (legacy)
Instructions to use kwoncho/ko-sroberta-korean-time-expression-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kwoncho/ko-sroberta-korean-time-expression-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="kwoncho/ko-sroberta-korean-time-expression-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("kwoncho/ko-sroberta-korean-time-expression-classifier") model = AutoModelForTokenClassification.from_pretrained("kwoncho/ko-sroberta-korean-time-expression-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_map.json from kwoncho/ko-sroberta-korean-time-expression-classifier: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/kwoncho/ko-sroberta-korean-time-expression-classifier/resolve/main/label_map.json
- Command line
-
hf download hf://kwoncho/ko-sroberta-korean-time-expression-classifier/label_map.json
-
curl -L -o label_map.json https://huggingface.co/kwoncho/ko-sroberta-korean-time-expression-classifier/resolve/main/label_map.json
374 Bytes
| { | |
| "label_to_id": { | |
| "O": 0, | |
| "B-DATE": 1, | |
| "I-DATE": 2, | |
| "B-TIME": 3, | |
| "I-TIME": 4, | |
| "B-DURATION": 5, | |
| "I-DURATION": 6, | |
| "B-SET": 7, | |
| "I-SET": 8 | |
| }, | |
| "id_to_label": { | |
| "0": "O", | |
| "1": "B-DATE", | |
| "2": "I-DATE", | |
| "3": "B-TIME", | |
| "4": "I-TIME", | |
| "5": "B-DURATION", | |
| "6": "I-DURATION", | |
| "7": "B-SET", | |
| "8": "I-SET" | |
| } | |
| } |