fix bug
This commit is contained in:
parent
dc84f31e40
commit
ca21d5148a
|
@ -159,7 +159,7 @@ def main(cfg):
|
|||
# Load a trained model and config that you have fine-tuned
|
||||
else:
|
||||
# Load a trained model and vocabulary that you have fine-tuned
|
||||
model = Ner.from_pretrained(utils.get_original_cwd()+'/'+cfg.output_dir)
|
||||
model = TrainNer.from_pretrained(utils.get_original_cwd()+'/'+cfg.output_dir)
|
||||
tokenizer = BertTokenizer.from_pretrained(utils.get_original_cwd()+'/'+cfg.output_dir, do_lower_case=cfg.do_lower_case)
|
||||
|
||||
model.to(device)
|
||||
|
@ -227,4 +227,4 @@ def main(cfg):
|
|||
writer.write(report)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue