Changeset e0cd003 for src/common
- Timestamp:
- 01/18/13 22:43:56 (12 years ago)
- Branches:
- master
- Children:
- b97a556
- Parents:
- 243d027
- git-author:
- Tomasz Obrebski <to@…> (01/18/13 22:43:56)
- git-committer:
- Tomasz Obrebski <to@…> (01/18/13 22:43:56)
- Location:
- src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/common/cmdline_common.ggo
r5f4d9c3 re0cd003 4 4 option "input" f "Input file" string no 5 5 6 option "output" o "Output file for succesfully processed segments" string no 7 8 option "fail" e "Output file for unsuccesfully processed segments " string no 6 option "output" o "Output file" string no 9 7 10 8 option "only-fail" - "Print only segments the program failed to process" flag off hidden … … 12 10 option "no-fail" - "Print only segments the program processed" flag off hidden 13 11 14 option "copy" c "Copy succesfully processed segments to standardoutput" flag off12 option "copy" c "Copy succesfully processed segments to output" flag off 15 13 16 option "process" p "Process segments with this tag" string no multiple14 option "process" p "Process segments of this type only" string no multiple 17 15 18 option "select" s "Select only segments withthis field" string no multiple16 option "select" s "Select only segments containing this field" string no multiple 19 17 20 option "ignore" S "Select only segments withoutthis field" string no multiple18 option "ignore" S "Select only segments, which doesn't contain this field" string no multiple 21 19 22 option "output-field" O "Output field name " string no20 option "output-field" O "Output field name (default: program name)" string no 23 21 24 option "input-field" I "Input field name " string no multiple22 option "input-field" I "Input field name (default: the FORM field)" string no multiple 25 23 26 24 option "interactive" i "Toggle interactive mode" flag off … … 28 26 option "config" - "Configuration file" string typestr="FILENAME" no 29 27 30 option "one-field" 1 "Print all results in one segments (createsambiguous annotation)" flag off28 option "one-field" 1 "Print all alternative results in one field (creates compact ambiguous annotation)" flag off 31 29 32 option "one-line" - "Print annotation alternatives as additional fields " flag off30 option "one-line" - "Print annotation alternatives as additional fields in the same segment" flag off 33 31 34 32 option "language" - "Language." string no -
src/common/common.cc
rf4bf33e re0cd003 10 10 FILE* inputf=stdin; 11 11 FILE* outputf=stdout; 12 FILE* failedf=stdout;13 12 bool copy_processed=0; 14 13 bool one_field=false; … … 172 171 } 173 172 174 if(args->fail_given)175 if(!(failedf=fopen(args->fail_arg,"w")))176 {177 fprintf(stderr,"Cannot open the output file: %s.\n", args->fail_arg);178 exit(1);179 }180 181 173 if(args->input_field_given) 182 174 fieldprefix(args->input_field_arg[0],input_field_prefix);
Note: See TracChangeset
for help on using the changeset viewer.