joon09 commited on
Commit
511b949
β€’
1 Parent(s): e389403

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -1
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)