Downloads · 30 days
7
0% of all-time downloads
yongsun-yoon/mdeberta-v3-base-open-ner
mdeberta-v3-base-open-ner is a token classification model from yongsun-yoon. Use it when you need labels on individual words, such as names. It is set up for transformers.
Downloads · 30 days
7
0% of all-time downloads
All-time downloads
1.8K
Public
Repo size
2.2 GB
Likes
2
Public
Click a slice to open those files.
.bin1.1 GB · 98%
From the Hugging Face model README
You can read the details in this post.
from transformers import pipeline
nlp = pipeline('token-classification', 'yongsun-yoon/deberta-v3-base-open-ner', aggregation_strategy='simple')
text = '30일 전주지법 군산지원 제1형사부는 박 시장에 대한 선고공판에서 벌금 500만원을 선고했다.'
entity_type = 'event'
input_text = f'{text}{nlp.tokenizer.sep_token}{entity_type}' # [SEP]
nlp(input_text) # 선고공판