Update README.md
Browse files
README.md
CHANGED
@@ -2,4 +2,13 @@
|
|
2 |
|
3 |
kor-bert fine-tuning λͺ¨λΈ
|
4 |
|
5 |
-
ex) μλ
νμΈμ. μμ€μμ
λλ€. -> μλ
νμΈμ. ***μ
λλ€.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
kor-bert fine-tuning λͺ¨λΈ
|
4 |
|
5 |
+
ex) μλ
νμΈμ. μμ€μμ
λλ€. -> μλ
νμΈμ. ***μ
λλ€.
|
6 |
+
|
7 |
+
|
8 |
+
from transformers import BertTokenizerFast, BertForTokenClassification
|
9 |
+
from transformers import pipeline
|
10 |
+
|
11 |
+
model_name = 'joon09/kor-naver-ner-name'
|
12 |
+
tokenizer = BertTokenizerFast.from_pretrained(model_name)
|
13 |
+
model = BertForTokenClassification.from_pretrained(model_name)
|
14 |
+
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|