yongsun-yoon commited on
Commit
a1677b7
โ€ข
1 Parent(s): 41de239

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Open Named Entity Recognition (Multilingual)
3
+
4
+ ```python
5
+ from transformers import pipeline
6
+
7
+ nlp = pipeline('token-classification', 'yongsun-yoon/deberta-v3-base-open-ner', aggregation_strategy='simple')
8
+
9
+ text = '30์ผ ์ „์ฃผ์ง€๋ฒ• ๊ตฐ์‚ฐ์ง€์› ์ œ1ํ˜•์‚ฌ๋ถ€๋Š” ๋ฐ• ์‹œ์žฅ์— ๋Œ€ํ•œ ์„ ๊ณ ๊ณตํŒ์—์„œ ๋ฒŒ๊ธˆ 500๋งŒ์›์„ ์„ ๊ณ ํ–ˆ๋‹ค.'
10
+ entity_type = 'event'
11
+ input_text = f'{text}{nlp.tokenizer.sep_token}{entity_type}' # [SEP]
12
+
13
+ nlp(input_text) # ์„ ๊ณ ๊ณตํŒ
14
+ ```