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

Update README.md

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