Update predict.py
Browse files- 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 = '
|
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の数を変え忘れないように!
|