Changeset e0cd003
- 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
- Files:
-
- 9 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); -
src/cor/main.cc
r5f4d9c3 re0cd003 77 77 78 78 if ( tab.count() == 0) 79 fputs(line, failedf);79 fputs(line, outputf); 80 80 else 81 81 { … … 146 146 } 147 147 148 if(args.interactive_flag) 149 { 150 fflush(outputf); 151 fflush(failedf); 152 } 148 if(args.interactive_flag) fflush(outputf); 153 149 } 154 150 cmdline_parser_free(&args); -
src/gue/main.cc
r5f4d9c3 re0cd003 57 57 guess.ana(form, tab); 58 58 59 if ((tab.count()==0) && (!args.no_fail_flag)) // no guesses - analysis was unsuccessful60 fputs(line, failedf);59 if ((tab.count()==0)) // no guesses - analysis was unsuccessful 60 fputs(line, outputf); 61 61 else 62 62 { … … 155 155 } 156 156 } 157 if(args.interactive_flag) 158 fflush(outputf), fflush(failedf); 157 if(args.interactive_flag) fflush(outputf); 159 158 160 159 } -
src/kor/main.cc
r5f4d9c3 re0cd003 22 22 23 23 Corr cor; 24 25 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!26 // strcpy(dictionary,"cor.bin");27 24 28 25 cor.load(dictionary); … … 72 69 73 70 if ( tab.count() == 0) 74 fputs(line, failedf);71 fputs(line, inputf); 75 72 else 76 73 { … … 165 162 } 166 163 167 if(args.interactive_flag) 168 { 169 fflush(outputf); 170 fflush(failedf); 171 } 164 if(args.interactive_flag) fflush(outputf); 172 165 } 173 166 cmdline_parser_free(&args); -
src/lem/common_lem.cc
r5f4d9c3 re0cd003 30 30 } 31 31 32 33 // STARE34 // if(args.dictionary_given)35 // strcpy(dictionary, args.dictionary_arg);36 // else {37 // char path[256];38 // //sprintf(path, "/etc/utt/data/%s/%s", args.locale_arg, DICT_FILE);39 // //if (file_accessible(path) == 0)40 // // strcpy(dictionary, path);41 // //else {42 // sprintf(path, "%s/%s", utt_dir, DICT_FILE);43 // if (file_accessible(path) == 0)44 // strcpy(dictionary, path);45 // else {46 // fprintf(stderr, "Cannot find dictionary!\n");47 // exit(1);48 // }49 // //}50 // }51 -
src/lem/main.cc
rcfdf333 re0cd003 66 66 67 67 if (tab.count() == 0) 68 fputs(line, failedf);68 fputs(line, outputf); 69 69 else 70 70 { // mamy jakies opisy w slowniku … … 124 124 } 125 125 126 if(args.interactive_flag) 127 fflush(outputf), fflush(failedf); 126 if(args.interactive_flag) fflush(outputf); 128 127 129 128 } -
src/lem_utf8/main.cc
r5f4d9c3 re0cd003 70 70 } 71 71 if (tab.count() == 0) { 72 fputws(line, failedf);72 fputws(line, outputf); 73 73 } 74 74 … … 133 133 } 134 134 135 if (args.interactive_flag) 136 fflush(outputf), fflush(failedf); 135 if (args.interactive_flag) fflush(outputf); 137 136 138 137 } -
src/tok.l/tok_cmdline.ggo
r243d027 re0cd003 12 12 13 13 tok reads from standard input, identifies tokens on the basis of their orthographic form and writes a sequence of segments in UTT format to 14 the standard output. The type of the token is printed as the type field.14 the standard output. 15 15 16 16 OUTPUT FORMAT 17 17 18 UTT-file with four fields: start, length, type, and form. In the typefield five types of tokens are distinguished:18 UTT-file with four fields: START, LENGTH, TYPE, and FORM. In the TYPE field five types of tokens are distinguished: 19 19 20 20 W (word) - continuous sequence of letters
Note: See TracChangeset
for help on using the changeset viewer.