Wprowadzilem globalne pliki konfiguracyjne. Dokonalem drobnych poprawek w strukturze.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@32 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
This commit is contained in:
pawelk 2008-04-23 14:48:12 +00:00
parent cfed5c1643
commit a5fdde9613
13 changed files with 369 additions and 268 deletions

13
app/conf/compiledic.conf Normal file
View File

@ -0,0 +1,13 @@
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
symbols = /usr/local/share/utt/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym

View File

@ -1,7 +1,14 @@
# Plik konfiguracyjny dla komponentu cor.
# kazda linia ma postac:
# nazwa_parametru [=] wartosc
# PRZYKLAD: analizuj tylko slowa
# p = W
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
dictionary-home = /usr/local/share/utt
process = W

14
app/conf/dgc.conf Normal file
View File

@ -0,0 +1,14 @@
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
categories = /usr/local/lib/utt/cats.dgc
grammar = /usr/local/lib/utt/gram.dgc

13
app/conf/grp.conf Normal file
View File

@ -0,0 +1,13 @@
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
macros = /usr/local/lib/utt/terms.m4

View File

@ -1,8 +1,12 @@
# Plik konfiguracyjny dla komponentu gue.
# kazda linia ma postac:
# nazwa_parametru [=] wartosc
# PRZYKLAD: analizuj tylko slowa
# p = W
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#

15
app/conf/kor.conf Normal file
View File

@ -0,0 +1,15 @@
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
dictionary-home = /usr/local/share/utt
weights = /usr/local/lib/utt/weights.kor
threshold = 1.0

View File

@ -1,7 +1,14 @@
# Plik konfiguracyjny dla komponentu lem.
# kazda linia ma postac:
# nazwa_parametru [=] wartosc
# PRZYKLAD: analizuj tylko slowa
# p = W
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
dictionary-home = /usr/local/share/utt
process = W

14
app/conf/ser.conf Normal file
View File

@ -0,0 +1,14 @@
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
macros = /usr/local/lib/utt/terms.m4
flex-template = /usr/local/lib/utt/ser.l.template

14
app/conf/utt.conf Normal file
View File

@ -0,0 +1,14 @@
# ************************************************************
# * This file was created automatically during installation. *
# * If you don't need do not change it. *
# * *
# * UAM Text Tools *
# * Adam Mickiewicz University, Poland *
# * http://utt.amu.edu.pl *
# ************************************************************
#
# All lines must looks like:
# parameter_name [=] value
#
# user locale (dictionary)
language = pl_PL.ISO-8859-2

View File

@ -13,14 +13,14 @@ my $usr_home = catdir(home(), '.utt');
prepareUttUsrHome($usr_home);
conf_utt(catfile($usr_home, 'utt.conf'), $sys_home);
conf_cor(catfile($usr_home, 'cor.conf'), $sys_home);
conf_kor(catfile($usr_home, 'kor.conf'), $sys_home);
conf_compiledic(catfile($usr_home, 'compiledic.conf'), $sys_home);
conf_cor(catfile($usr_home, 'cor.conf'), $sys_home);
conf_dgc(catfile($usr_home, 'dgc.conf'), $sys_home);
conf_grp(catfile($usr_home, 'grp.conf'), $sys_home);
conf_gue(catfile($usr_home, 'gue.conf'), $sys_home);
conf_kor(catfile($usr_home, 'kor.conf'), $sys_home);
conf_lem(catfile($usr_home, 'lem.conf'), $sys_home);
conf_ser(catfile($usr_home, 'ser.conf'), $sys_home);
conf_dgc(catfile($usr_home, 'dgc.conf'), $sys_home);
print "UTT user configuration created in $usr_home\n";
@ -33,15 +33,15 @@ sub prepareUttUsrHome() {
print "Preparing user configuration.\n";
if(-d $dir) {
print "Old configuration detected. ";
my $cnt = unlink <$dir/*>;
print "($cnt files deleted)\n";
print "Old configuration detected. ";
my $cnt = unlink <$dir/*>;
print "($cnt files deleted)\n";
}
else {
print "Creating directory $dir\n";
if(1 != mkdir $dir) {
die "Unable to create UTT user configuration!\n";
}
print "Creating directory $dir\n";
if(1 != mkdir $dir) {
die "Unable to create UTT user configuration!\n";
}
}
}
@ -107,7 +107,7 @@ sub conf_kor() {
print FILE makeConfigHeader();
print FILE "dictionary-home=", abs_path("$utthome/share/utt"), "\n";
print FILE "weights=", abs_path("$utthome/lib/utt/weights.cor"), "\n";
print FILE "weights=", abs_path("$utthome/lib/utt/weights.kor"), "\n";
print FILE "threshold=1.0\n";
close FILE;

View File

@ -32,6 +32,7 @@
/usr/local/etc/utt/fla.conf
/usr/local/etc/utt/grp.conf
/usr/local/etc/utt/gue.conf
/usr/local/etc/utt/kor.conf
/usr/local/etc/utt/kot.conf
/usr/local/etc/utt/lem.conf
/usr/local/etc/utt/mar.conf
@ -52,7 +53,7 @@
/usr/local/lib/utt/ser.l.template
/usr/local/lib/utt/terms.m4
/usr/local/lib/utt/weights.cor
/usr/local/lib/utt/weights.kor
/usr/local/lib/utt/seg.rb
/usr/local/lib/utt/cats.dgc
/usr/local/lib/utt/gram.dgc

View File

@ -43,5 +43,4 @@ ifdef UTT_BIN_DIR
cp dgp dgc canonize tre.rb $(UTT_BIN_DIR)/
# ponizsza linijka jest do usuniecia
cp go attr.pm seg.rb $(UTT_BIN_DIR)/
cp $(LIB_PATH)/*.dgc $(UTT_BIN_DIR)/../lib/utt/
endif