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