Changeset df77b87


Ignore:
Timestamp:
05/07/08 14:11:21 (16 years ago)
Author:
obrebski <obrebski@…>
Branches:
master, help
Children:
f5d3b20
Parents:
13a8a67
git-author:
obrebski <obrebski@…> (05/07/08 14:11:21)
git-committer:
obrebski <obrebski@…> (05/07/08 14:11:21)
Message:

w struktura.txt wpisalem sugestie R.D.
dgp obsluguje configa

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@37 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

Location:
app
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • app/TODO

    raa9f1bc rdf77b87  
    1616* Zadania zwiazane z rozbudowa ser (src/ser/TODO). 
    1717* Nowa funkcjonalność dla kot? con? - kaÅŒde zdanie w nowym wierszu  
     18* opcja info w dgp powinna miec domyslna wartosc d lub h 
  • app/dist/struktura.txt

    ra5fdde9 rdf77b87  
    2727/usr/local/bin/uam.tag2re 
    2828 
     29 
     30# R.D. sugeruje /etc/utt 
     31# lokalnie: ~/.utt lub (trendy) ~/.config/utt  
    2932/usr/local/etc/utt/con.conf 
    3033/usr/local/etc/utt/cor.conf 
     
    5457/usr/local/lib/utt/ser.l.template 
    5558/usr/local/lib/utt/terms.m4 
    56 /usr/local/lib/utt/weights.kor 
    57 /usr/local/lib/utt/seg.rb 
    58 /usr/local/lib/utt/cats.dgc 
    59 /usr/local/lib/utt/gram.dgc 
     59/usr/local/lib/utt/weights.kor # -> share 
     60/usr/local/lib/utt/seg.rb # lok. ~/.local/lib/utt/seg.rb 
     61/usr/local/lib/utt/cats.dgc # -> share 
     62/usr/local/lib/utt/gram.dgc # -> share 
    6063 
    6164/usr/local/share/doc/utt/FAQ 
  • app/src/dgp/cmdline_dgp.ggo

    r28e9ae0 rdf77b87  
    22version "0.1" 
    33 
    4 #option  "process"      p       "Process segments with this tag." 
    5 #                               string no multiple 
    6  
    7 #option  "select"       s       "Select only segments with this field. [Not implemented.]"  
    8 #                               string no multiple 
    9  
    10 #option  "ignore"       S       "Select only segments without this field. [Not implemented]"  
    11 #                               string no multiple 
    12  
    13 #option  "input"                f       "Input file" 
    14 #                               string typestr="filename" no 
    15  
    16 #option  "output"       o       "Output file" 
    17 #                               string typestr="filename" no 
    18  
    19 #option  "failed"       e       "Fail file" 
    20 #                               string typestr="filename" no 
    21  
    22 #option  "copy"         c       "Copy unprocessed" 
    23 #                               flag off 
    24  
    254option  "grammar"       g       "Grammar file" 
    26                                 string typestr="filename" default="dgp.dg" 
     5                                string typestr="filename" default="dgp.dgp" 
    276 
    287option  "long"          l       "Long output" 
    298                                flag off 
    30  
    31 #option  "interactive"  -       "Interactive use." 
    32 #                               flag off 
    339 
    3410option  "debug"         d       "Debug mode." 
     
    4016c - constraints   n - node/arc counts   t - parse time 
    4117" 
    42                                 string default="gh" 
     18string no default="h" 
  • app/src/dgp/main.cc

    r13a8a67 rdf77b87  
    3535  gengetopt_args_info args; 
    3636 
    37   if(cmdline_parser(argc,argv,&args) != 0) exit(1); 
     37  if(cmdline_parser(argc,argv,&args) != 0) 
     38    exit(1); 
    3839 
    39   if(args.help_given) cmdline_parser_print_help (); 
     40  process_config_files(&args,argv[0]); 
     41  process_common_options(&args,argv[0]); 
    4042 
    41   if(args.input_given) 
    42     if(!(inputf=fopen(args.input_arg,"r"))) 
    43       fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1); 
     43//   if(args.help_given) cmdline_parser_print_help (); 
    4444 
    45   if(args.output_given) 
    46     if(!(outputf=fopen(args.output_arg,"w"))) 
    47       fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1); 
     45//   if(args.input_given) 
     46//     if(!(inputf=fopen(args.input_arg,"r"))) 
     47//       fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1); 
     48 
     49//   if(args.output_given) 
     50//     if(!(outputf=fopen(args.output_arg,"w"))) 
     51//       fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1); 
    4852 
    4953  if(!(grammarf=fopen(args.grammar_arg,"r"))) 
Note: See TracChangeset for help on using the changeset viewer.