- Timestamp:
- 04/24/08 12:36:13 (17 years ago)
- Branches:
- master, help
- Children:
- 12d8443
- Parents:
- a5fdde9
- git-author:
- pawelk <pawelk@…> (04/24/08 12:36:13)
- git-committer:
- pawelk <pawelk@…> (04/24/08 12:36:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/dist/common/utt_make_config.pl
ra5fdde9 r19dfa5c 14 14 conf_utt(catfile($usr_home, 'utt.conf'), $sys_home); 15 15 16 conf_cor(catfile($usr_home, 'cor.conf'), $sys_home); 17 conf_kor(catfile($usr_home, 'kor.conf'), $sys_home); 16 18 conf_compiledic(catfile($usr_home, 'compiledic.conf'), $sys_home); 17 conf_cor(catfile($usr_home, 'cor.conf'), $sys_home);18 conf_dgc(catfile($usr_home, 'dgc.conf'), $sys_home);19 19 conf_grp(catfile($usr_home, 'grp.conf'), $sys_home); 20 20 conf_gue(catfile($usr_home, 'gue.conf'), $sys_home); 21 conf_kor(catfile($usr_home, 'kor.conf'), $sys_home);22 21 conf_lem(catfile($usr_home, 'lem.conf'), $sys_home); 23 22 conf_ser(catfile($usr_home, 'ser.conf'), $sys_home); 23 conf_dgc(catfile($usr_home, 'dgc.conf'), $sys_home); 24 24 25 25 print "UTT user configuration created in $usr_home\n"; … … 34 34 35 35 if(-d $dir) { 36 37 38 36 print "Old configuration detected. "; 37 my $cnt = unlink <$dir/*>; 38 print "($cnt files deleted)\n"; 39 39 } 40 40 else { 41 42 43 44 41 print "Creating directory $dir\n"; 42 if(1 != mkdir $dir) { 43 die "Unable to create UTT user configuration!\n"; 44 } 45 45 } 46 46 } … … 108 108 print FILE makeConfigHeader(); 109 109 print FILE "dictionary-home=", abs_path("$utthome/share/utt"), "\n"; 110 print FILE "weights=", abs_path("$utthome/lib/utt/weights. kor"), "\n";110 print FILE "weights=", abs_path("$utthome/lib/utt/weights.cor"), "\n"; 111 111 print FILE "threshold=1.0\n"; 112 112 … … 222 222 223 223 print FILE makeConfigHeader(); 224 print FILE "cat egories=", abs_path("$utthome/lib/utt/cats.dgc"), "\n";225 print FILE "gram mar=", abs_path("$utthome/lib/utt/gram.dgc"), "\n";224 print FILE "catfile=", abs_path("$utthome/lib/utt/cats.dgc"), "\n"; 225 print FILE "gramfile=", abs_path("$utthome/lib/utt/gram.dgc"), "\n"; 226 226 227 227 close FILE;
Note: See TracChangeset
for help on using the changeset viewer.