Skip to content

Commit

Permalink
Make --text required for anafora.regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bethard committed Dec 5, 2014
1 parent 3a39b73 commit 2f59331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anafora/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ def _annotate(model_file, text_dir, output_dir, get_iterator, text_encoding="utf
annotate_parser.set_defaults(func=_annotate)
annotate_parser.add_argument("-m", "--model", metavar="FILE", dest="model_file", required=True,
help="The file containing the trained regex model.")
annotate_parser.add_argument("-t", "--text", metavar="DIR", dest="text_dir", required=True,
help="The raw text that should be annotated with the regex model")
annotate_parser.add_argument("-o", "--output", metavar="DIR", required=True, dest="output_dir",
help="The directory where the Anafora XML files containing the model predictions " +
"should be written.")
annotate_parser.add_argument("-e", "--extension", metavar="EXT", default=".system.completed.xml",
help="The suffix that should be given to the model prediction files " +
"(default: %(default)r)")
annotate_parser.add_argument("-t", "--text", metavar="DIR", dest="text_dir",
help="The raw text that should be annotated with the regex model")
structures = {
"anafora": anafora.walk_anafora_to_anafora,
"flat": anafora.walk_flat_to_anafora,
Expand Down

0 comments on commit 2f59331

Please sign in to comment.