Skip to content

Commit

Permalink
fix use undefined ner_model_dir arg bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelyhentxi committed Feb 20, 2019
1 parent ba954b1 commit 4b7a243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bert_base/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(self, args):
with Pool(processes=1) as pool:
# optimize the graph, must be done in another process
from .graph import optimize_ner_model
num_labels, label2id, id2label = init_predict_var(self.args.ner_model_dir)
num_labels, label2id, id2label = init_predict_var(self.args.model_dir)
self.num_labels = num_labels + 1
self.id2label = id2label
self.graph_path = pool.apply(optimize_ner_model, (self.args, num_labels))
Expand Down

0 comments on commit 4b7a243

Please sign in to comment.