Tomohiro commited on
Commit
d51ea81
1 Parent(s): 61b6f64

Update predict.py

Browse files
Files changed (1) hide show
  1. predict.py +1 -1
predict.py CHANGED
@@ -62,7 +62,7 @@ def predict_entities(modelpath, sentences_list, len_num_entity_type):
62
  model = ner.BertForTokenClassification_pl(modelpath, num_labels=81, lr=1e-5)
63
  bert_tc = model.bert_tc.to(device)
64
 
65
- MODEL_NAME = 'cl-tohoku/bert-base-japanese-whole-word-masking'
66
  tokenizer = ner.NER_tokenizer_BIO.from_pretrained(
67
  MODEL_NAME,
68
  num_entity_type = len_num_entity_type#Entityの数を変え忘れないように!
 
62
  model = ner.BertForTokenClassification_pl(modelpath, num_labels=81, lr=1e-5)
63
  bert_tc = model.bert_tc.to(device)
64
 
65
+ MODEL_NAME = 'tohoku-nlp/bert-base-japanese-whole-word-masking'
66
  tokenizer = ner.NER_tokenizer_BIO.from_pretrained(
67
  MODEL_NAME,
68
  num_entity_type = len_num_entity_type#Entityの数を変え忘れないように!