You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/information_extraction/msra_ner/train.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@
42
42
parser=argparse.ArgumentParser()
43
43
44
44
# yapf: disable
45
-
parser.add_argument("--model_type", default="bert", type=str, required=True, help="Model type selected in the list: "+", ".join(MODEL_CLASSES.keys()), )
45
+
parser.add_argument("--model_type", default="bert", type=str, help="Model type selected in the list: "+", ".join(MODEL_CLASSES.keys()), )
46
46
parser.add_argument("--model_name_or_path", default=None, type=str, required=True, help="Path to pre-trained model or shortcut name selected in the list: "+", ".join( sum([ list(classes[-1].pretrained_init_configuration.keys()) forclassesinMODEL_CLASSES.values() ], [])), )
47
47
parser.add_argument("--dataset", default="msra_ner", type=str, choices=["msra_ner", "peoples_daily_ner"] ,help="The named entity recognition datasets.")
48
48
parser.add_argument("--output_dir", default=None, type=str, required=True, help="The output directory where the model predictions and checkpoints will be written.")
0 commit comments