Changeset e0cd003 for src


Ignore:
Timestamp:
01/18/13 22:43:56 (11 years ago)
Author:
Tomasz Obrebski <to@…>
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)
Message:

wsp�lny parametr -e usuni�ty
wyg�adzone teksty help

Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/common/cmdline_common.ggo

    r5f4d9c3 re0cd003  
    44option  "input"         f       "Input file" string no 
    55 
    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 
     6option  "output"        o       "Output file" string no 
    97 
    108option  "only-fail"     -       "Print only segments the program failed to process" flag off hidden 
     
    1210option  "no-fail"       -       "Print only segments the program processed" flag off hidden  
    1311 
    14 option  "copy"          c       "Copy succesfully processed segments to standard output" flag off 
     12option  "copy"          c       "Copy succesfully processed segments to output" flag off 
    1513 
    16 option  "process"       p       "Process segments with this tag" string no multiple 
     14option  "process"       p       "Process segments of this type only" string no multiple 
    1715 
    18 option  "select"        s       "Select only segments with this field" string no multiple 
     16option  "select"        s       "Select only segments containing this field" string no multiple 
    1917 
    20 option  "ignore"        S       "Select only segments without this field" string no multiple 
     18option  "ignore"        S       "Select only segments, which doesn't contain this field" string no multiple 
    2119 
    22 option  "output-field"  O       "Output field name" string no 
     20option  "output-field"  O       "Output field name (default: program name)" string no 
    2321 
    24 option  "input-field"   I       "Input field name" string no multiple 
     22option  "input-field"   I       "Input field name (default: the FORM field)" string no multiple 
    2523 
    2624option  "interactive"   i       "Toggle interactive mode" flag off 
     
    2826option  "config"        -       "Configuration file" string typestr="FILENAME" no 
    2927 
    30 option  "one-field"     1       "Print all results in one segments (creates ambiguous annotation)" flag off 
     28option  "one-field"     1       "Print all alternative results in one field (creates compact ambiguous annotation)" flag off 
    3129 
    32 option  "one-line"      -       "Print annotation alternatives as additional fields" flag off 
     30option  "one-line"      -       "Print annotation alternatives as additional fields in the same segment" flag off 
    3331 
    3432option  "language"      -       "Language." string no 
  • src/common/common.cc

    rf4bf33e re0cd003  
    1010FILE* inputf=stdin; 
    1111FILE* outputf=stdout; 
    12 FILE* failedf=stdout; 
    1312bool copy_processed=0; 
    1413bool one_field=false; 
     
    172171    } 
    173172   
    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  
    181173  if(args->input_field_given) 
    182174    fieldprefix(args->input_field_arg[0],input_field_prefix); 
  • src/cor/main.cc

    r5f4d9c3 re0cd003  
    7777           
    7878          if ( tab.count() == 0) 
    79             fputs(line, failedf); 
     79            fputs(line, outputf); 
    8080          else  
    8181            { 
     
    146146        } 
    147147       
    148       if(args.interactive_flag) 
    149         { 
    150         fflush(outputf); 
    151         fflush(failedf); 
    152       } 
     148      if(args.interactive_flag) fflush(outputf); 
    153149    } 
    154150  cmdline_parser_free(&args); 
  • src/gue/main.cc

    r5f4d9c3 re0cd003  
    5757          guess.ana(form, tab); 
    5858           
    59           if ((tab.count()==0) && (!args.no_fail_flag)) // no guesses - analysis was unsuccessful 
    60             fputs(line, failedf); 
     59          if ((tab.count()==0)) // no guesses - analysis was unsuccessful 
     60            fputs(line, outputf); 
    6161          else 
    6262            { 
     
    155155            } 
    156156        } 
    157       if(args.interactive_flag)  
    158         fflush(outputf), fflush(failedf); 
     157      if(args.interactive_flag) fflush(outputf); 
    159158       
    160159    } 
  • src/kor/main.cc

    r5f4d9c3 re0cd003  
    2222 
    2323  Corr cor; 
    24  
    25   //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    26 //  strcpy(dictionary,"cor.bin"); 
    2724 
    2825  cor.load(dictionary); 
     
    7269           
    7370          if ( tab.count() == 0) 
    74             fputs(line, failedf); 
     71            fputs(line, inputf); 
    7572          else  
    7673            { 
     
    165162        } 
    166163       
    167       if(args.interactive_flag) 
    168         { 
    169         fflush(outputf); 
    170         fflush(failedf); 
    171       } 
     164      if(args.interactive_flag) fflush(outputf); 
    172165    } 
    173166  cmdline_parser_free(&args); 
  • src/lem/common_lem.cc

    r5f4d9c3 re0cd003  
    3030} 
    3131 
    32  
    33 // STARE 
    34 //  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  
    6666           
    6767          if (tab.count() == 0)  
    68             fputs(line, failedf); 
     68            fputs(line, outputf); 
    6969          else  
    7070            { // mamy jakies opisy w slowniku 
     
    124124        } 
    125125       
    126       if(args.interactive_flag)  
    127         fflush(outputf), fflush(failedf); 
     126      if(args.interactive_flag) fflush(outputf); 
    128127       
    129128    } 
  • src/lem_utf8/main.cc

    r5f4d9c3 re0cd003  
    7070              } 
    7171              if (tab.count() == 0) { 
    72                 fputws(line, failedf); 
     72                fputws(line, outputf); 
    7373                 } 
    7474       
     
    133133            } 
    134134       
    135       if (args.interactive_flag)  
    136           fflush(outputf), fflush(failedf); 
     135      if (args.interactive_flag) fflush(outputf); 
    137136       
    138137    } 
  • src/tok.l/tok_cmdline.ggo

    r243d027 re0cd003  
    1212 
    1313tok 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. 
     14the standard output. 
    1515 
    1616OUTPUT FORMAT 
    1717 
    18 UTT-file with four fields: start, length, type, and form. In the type field five types of tokens are distinguished: 
     18UTT-file with four fields: START, LENGTH, TYPE, and FORM. In the TYPE field five types of tokens are distinguished: 
    1919 
    2020  W (word) - continuous sequence of letters 
Note: See TracChangeset for help on using the changeset viewer.