Downloads · 30 days
49
0% of all-time downloads
vitus9988/klue-roberta-small-ner-identified
klue-roberta-small-ner-identified is a token classification model from vitus9988. Use it when you need labels on individual words, such as names. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
49
0% of all-time downloads
All-time downloads
24.5K
Public
Parameters
67.5M
3.5 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors270 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of vitus9988/klue-roberta-small-ner-identified on an unknown dataset. It achieves the following results on the evaluation set:
개인정보 비식별을 위해 아래 항목에 대한 개체명 인식을 제공합니다.
This model is a fine-tuned derivative of
klue/roberta-small. Since the base model does not currently specify a license, no license is specified for this derivative model at this time.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 61 | 0.0128 | 0.9871 | 0.9929 | 0.9900 | 0.9979 |
| No log | 2.0 | 122 | 0.0098 | 0.9895 | 0.9976 | 0.9935 | 0.9987 |
| No log | 3.0 | 183 | 0.0082 | 0.9930 | 0.9988 | 0.9959 | 0.9988 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("vitus9988/klue-roberta-small-ner-identified")
model = AutoModelForTokenClassification.from_pretrained("vitus9988/klue-roberta-small-ner-identified")
nlp = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
example = """
저는 김철수입니다. 집은 서울특별시 강남대로이고 전화번호는 010-1234-5678, 주민등록번호는 123456-1234567입니다. 메일주소는 [email protected]입니다. 저는 10월 25일에 출국할 예정입니다.
"""
ner_results = nlp(example)
for i in ner_results:
print(i)
#{'entity_group': 'PS', 'score': 0.9617835, 'word': '김철수', 'start': 3, 'end': 6}
#{'entity_group': 'AD', 'score': 0.9839702, 'word': '서울특별시 강남대로', 'start': 14, 'end': 24}
#{'entity_group': 'PH', 'score': 0.9906756, 'word': '010 - 1234 - 5678', 'start': 33, 'end': 46}
#{'entity_group': 'RN', 'score': 0.9904553, 'word': '123456 - 1234567', 'start': 56, 'end': 70}
#{'entity_group': 'EM', 'score': 0.99022245, 'word': 'hugging @ face. com', 'start': 81, 'end': 97}
#{'entity_group': 'DT', 'score': 0.985629, 'word': '10월 25일', 'start': 105, 'end': 112}