uaktualnienie gramatyki
This commit is contained in:
parent
3b02b04ff9
commit
d2f119e6a0
15
README
15
README
@ -16,18 +16,23 @@ TO RUN UTT PROGRAMS YOU WILL NEED:
|
||||
|
||||
perl module File::HomeDir
|
||||
|
||||
COMMANDS TO BE RUN IN THIS DIRECTORY:
|
||||
INSTALLATION
|
||||
|
||||
% configure
|
||||
|
||||
% make
|
||||
|
||||
compiles all of the components
|
||||
compiles all the components
|
||||
|
||||
% make install
|
||||
% sudo make install
|
||||
|
||||
installes the package in your system in the directory defined by PREFIX in the configure
|
||||
options
|
||||
installes the package in your system in the directory defined by PREFIX in the configure
|
||||
options, except configuration files which are installed in /etc/utt directory
|
||||
|
||||
when --enable-utf8 is specified in configure options then if there's a directory with
|
||||
_utf8 suffix in the source directory it will be compiled instead of the normal version
|
||||
|
||||
|
||||
UNINSTALLATION
|
||||
|
||||
% sudo make uninstall
|
||||
|
@ -10,7 +10,7 @@
|
||||
# All lines must looks like:
|
||||
# parameter_name [=] value
|
||||
#
|
||||
categories = LANG_DIR/LANGUAGE/lem.bin.cats
|
||||
categories = LANG_DIR/LANGUAGE/lem.cats
|
||||
# categories = /home/to/dane/pmdbf/lem.cats
|
||||
grammar = LANG_DIR/gram.dgc
|
||||
# grammar = /home/to/dane/grammar/gram.dgc
|
||||
|
@ -20,7 +20,7 @@ endif
|
||||
uninstall:
|
||||
ifdef LANG_DIR
|
||||
rm $(LANG_DIR)/weights.kor
|
||||
rm $(LANG_DIR)/gram.dgc
|
||||
rm $(LANG_DIR)/gram.*
|
||||
rm $(LANG_DIR)/pl_PL.UTF-8/lem.bin
|
||||
rm $(LANG_DIR)/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym
|
||||
rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.cats
|
||||
|
136
share/gram.dgc
136
share/gram.dgc
@ -1,10 +1,51 @@
|
||||
|
||||
# TODO!
|
||||
# * DOROBIĆ WARUNEK SĄSIEDZTWA!
|
||||
# 'nie nikt wszedł' działa
|
||||
|
||||
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
# FLAGI
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
|
||||
FLAG RQ
|
||||
FLAG init
|
||||
|
||||
#====================================================================================================
|
||||
# subj
|
||||
#====================================================================================================
|
||||
# KLASY DYSTRYBUCYJNE BIERNE
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
|
||||
class $N- = N|NV|NPRO|NUMCRD
|
||||
class $ADJ- = ADJ|ADJPRP|ADJPAP|ADJPP
|
||||
class $ADV- = ADV|ADVPRP|ADVANP
|
||||
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
# KLASY DYSTRYBUCYJNE CZYNNE
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
|
||||
class $V+ = V|ADVPRP|ADVANP|ADJPRP|ADJPAP|NV
|
||||
|
||||
|
||||
####################################################################################################
|
||||
# neg
|
||||
####################################################################################################
|
||||
|
||||
ROLE neg
|
||||
SGL neg
|
||||
LEFT neg
|
||||
|
||||
LINK V|BYC NEG neg
|
||||
|
||||
|
||||
####################################################################################################
|
||||
# subj
|
||||
####################################################################################################
|
||||
|
||||
ROLE subj
|
||||
SGL subj
|
||||
@ -12,10 +53,12 @@ AGR subj N
|
||||
AGR subj G
|
||||
GOV subj */Cn
|
||||
|
||||
LINK V/VpP3Kn,BYC/VpP3 N,NUMCRD subj
|
||||
LINK V/VpP12Kn,BYC/VpP12 NPRO;RQ- subj
|
||||
LINK V/VpP3Kn,BYC/VpP3 NPRO;RQ- subj
|
||||
LINK V/VpP3Kn,BYC/VpP3 NPRO;RQ+ subj&INIT
|
||||
LINK (V/Kn|BYC)/VpP3 (N|NUMCRD) subj
|
||||
LINK (V/Kn|BYC)/VpP12 NPRO//RQ- subj
|
||||
LINK (V/Kn|BYC)/VpP3 NPRO//RQ- subj
|
||||
LINK (V/Kn|BYC)/VpP3 NPRO//RQ+ subj&INIT
|
||||
|
||||
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_g
|
||||
@ -25,7 +68,7 @@ ROLE cmpl_g
|
||||
SGL cmpl_g
|
||||
GOV cmpl_g */Cg
|
||||
|
||||
LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV N,NPRO,NUMCRD cmpl_g
|
||||
LINK $V+ $N- cmpl_g
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_a
|
||||
@ -35,8 +78,8 @@ ROLE cmpl_a
|
||||
SGL cmpl_a
|
||||
GOV cmpl_a */Ca
|
||||
|
||||
LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV N,NPRO,NUMCRD;RQ- cmpl_a
|
||||
LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV NPRO;RQ+ cmpl_a&INIT
|
||||
LINK $V+ $N-//RQ- cmpl_a
|
||||
LINK $V+ NPRO//RQ+ cmpl_a&INIT
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_d
|
||||
@ -46,7 +89,7 @@ ROLE cmpl_d
|
||||
SGL cmpl_d
|
||||
GOV cmpl_d */Cd
|
||||
|
||||
LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV N,NPRO,NUMCRD cmpl_d
|
||||
LINK $V+ $N-//RQ- cmpl_d
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_i
|
||||
@ -56,7 +99,7 @@ ROLE cmpl_i
|
||||
SGL cmpl_i
|
||||
GOV cmpl_i */Ci
|
||||
|
||||
LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV N,NPRO,NUMCRD cmpl_i
|
||||
LINK $V+ $N-//RQ- cmpl_i
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_ze
|
||||
@ -65,7 +108,7 @@ LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV N,NPRO,NUMCRD cmpl_i
|
||||
ROLE cmpl_ze
|
||||
SGL cmpl_ze
|
||||
|
||||
LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV CONJ/Si cmpl_ze&FIN
|
||||
LINK $V+ CONJ/Si cmpl_ze&FIN
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_inf
|
||||
@ -74,7 +117,7 @@ LINK V,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV CONJ/Si cmpl_ze&FIN
|
||||
ROLE cmpl_inf
|
||||
SGL cmpl_inf
|
||||
|
||||
LINK V,VM,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV V/Vb cmpl_inf
|
||||
LINK $V+ V/Vb cmpl_inf
|
||||
|
||||
#====================================================================================================
|
||||
# cmpl_s
|
||||
@ -83,18 +126,23 @@ LINK V,VM,ADVPRP,ADVANP,ADJPRP,ADJPAP,NV V/Vb cmpl_inf
|
||||
ROLE cmpl_s
|
||||
SGL cmpl_s
|
||||
|
||||
LINK $V+ V/Vp//RQ+ cmpl_s
|
||||
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
# aux
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
|
||||
ROLE aux
|
||||
SGL aux
|
||||
AGR aux N
|
||||
AGR aux G
|
||||
|
||||
LINK BYC/VpMdTf V/AiVpP3,V/AiVb aux #czas przyszly analityczny
|
||||
LINK BYC/VpMc V/VpP3 aux #czas zaprzesz³y
|
||||
LINK BYC ADJPAP/Cn,ADJ/Cn,N/Ci aux #BYC jako lacznik w (jest bialy, jest zaszlachtowany, jest pilotem)
|
||||
LINK BYC/VpMdTf (V/VpP3|V/Vb)/Ai aux #czas przyszly analityczny
|
||||
LINK BYC/VpMc V/VpP3 aux #czas zaprzeszły
|
||||
LINK BYC (ADJPAP|ADJ)/Cn aux #BYC jako lacznik w (jest bialy, jest zaszlachtowany)
|
||||
LINK BYC N/Ci aux #BYC jako lacznik w (jest pilotem)
|
||||
|
||||
#====================================================================================================
|
||||
# mod
|
||||
@ -105,10 +153,10 @@ AGR mod N
|
||||
AGR mod C
|
||||
AGR mod G
|
||||
|
||||
LINK V ADV,ADVPRP,ADVANP mod
|
||||
LINK V ADVPRO/Zqr mod&INIT
|
||||
LINK N,NV ADJ,ADJPAP,ADJPRP mod
|
||||
LINK N,NV ADJPRO/Zqr mod&INIT
|
||||
LINK V $ADV- mod
|
||||
LINK V ADVPRO/Zqr mod&LEFT&INIT # kiedy uśnie
|
||||
LINK N|NV $ADJ- mod
|
||||
LINK N|NV ADJPRO/Zqr mod&LEFT&INIT
|
||||
|
||||
#====================================================================================================
|
||||
# prep
|
||||
@ -117,7 +165,7 @@ LINK N,NV ADJPRO/Zqr mod&INIT
|
||||
ROLE prep
|
||||
|
||||
LINK V P prep
|
||||
LINK N P;RQ- prep
|
||||
LINK N P//RQ- prep
|
||||
|
||||
#====================================================================================================
|
||||
# pcmpl
|
||||
@ -128,7 +176,7 @@ RIGHT pcmpl
|
||||
SGL pcmpl
|
||||
AGR pcmpl C
|
||||
|
||||
LINK P N,NV,NPRO pcmpl
|
||||
LINK P $N- pcmpl
|
||||
|
||||
REQ P pcmpl
|
||||
|
||||
@ -181,7 +229,19 @@ ROLE poss
|
||||
SGL poss
|
||||
GOV poss */Cg
|
||||
|
||||
LINK N N,NV poss
|
||||
LINK N $N- ~ NPRO poss
|
||||
|
||||
#====================================================================================================
|
||||
# numa
|
||||
#====================================================================================================
|
||||
|
||||
ROLE num_a
|
||||
SGL num_a
|
||||
AGR num_a C
|
||||
AGR num_a G
|
||||
GOV num_a */Ns
|
||||
|
||||
LINK NUMCRD/Sa N|NV num_a
|
||||
|
||||
#====================================================================================================
|
||||
# num
|
||||
@ -190,7 +250,7 @@ LINK N N,NV poss
|
||||
ROLE num
|
||||
SGL num
|
||||
|
||||
LINK NUMCRD N,NV num
|
||||
LINK NUMCRD N|NV num
|
||||
|
||||
#====================================================================================================
|
||||
# restr
|
||||
@ -220,7 +280,15 @@ LINK N ADJPRO/Zg quant
|
||||
|
||||
ROLE part
|
||||
|
||||
LINK V,BYC PART part
|
||||
LINK $V+ PART part
|
||||
|
||||
#====================================================================================================
|
||||
# part
|
||||
#====================================================================================================
|
||||
|
||||
ROLE czy
|
||||
|
||||
LINK $V+ CZY czy
|
||||
|
||||
#====================================================================================================
|
||||
# subj_copred
|
||||
@ -267,7 +335,7 @@ RIGHT rel
|
||||
SGL rel
|
||||
FIN rel
|
||||
|
||||
LINK N V/Vp;RQ+ rel&FIN
|
||||
LINK N V/Vp//RQ+ rel&FIN
|
||||
|
||||
#====================================================================================================
|
||||
#====================================================================================================
|
||||
@ -302,8 +370,8 @@ CONSTRI conj2 conj1
|
||||
# ncoord
|
||||
#====================================================================================================
|
||||
|
||||
LONG ncoord conj> ccmpl>
|
||||
LONG ncoord conj2> ccmpl>
|
||||
LONG ncoord ^conj,ccmpl
|
||||
LONG ncoord ^conj2,ccmpl
|
||||
|
||||
AGR ncoord C
|
||||
AGR ncoord N
|
||||
@ -314,7 +382,7 @@ LINK N N ncoord
|
||||
# vcoord
|
||||
#====================================================================================================
|
||||
|
||||
LONG vcoord conj> ccmpl>
|
||||
LONG vcoord ^conj,ccmpl
|
||||
|
||||
AGR vcoord P
|
||||
AGR vcoord N
|
||||
@ -327,7 +395,7 @@ LINK V V vcoord
|
||||
# adjcoord
|
||||
#====================================================================================================
|
||||
|
||||
LONG adjcoord conj> ccmpl>
|
||||
LONG adjcoord ^conj,ccmpl
|
||||
|
||||
AGR adjcoord C
|
||||
AGR adjcoord N
|
||||
@ -339,7 +407,7 @@ LINK ADJ ADJ ncoord
|
||||
# advcoord
|
||||
#====================================================================================================
|
||||
|
||||
LONG advcoord conj> ccmpl>
|
||||
LONG advcoord ^conj,ccmpl
|
||||
|
||||
AGR ncoord C
|
||||
AGR ncoord N
|
||||
@ -351,8 +419,8 @@ LINK ADV ADV ncoord
|
||||
# relagr
|
||||
#====================================================================================================
|
||||
|
||||
LONG relagr <subj <rel
|
||||
LONG relagr <cmpl_a <rel
|
||||
LONG relagr subj,rel^
|
||||
LONG relagr cmpl_a,rel^
|
||||
|
||||
AGR relagr C
|
||||
AGR relagr N
|
||||
@ -388,8 +456,8 @@ PASS prep RQ
|
||||
# init
|
||||
#====================================================================================================
|
||||
|
||||
#SET NPRO/Zrq init
|
||||
#SET ADJPRO/Zrq init
|
||||
SET NPRO/Zrq init
|
||||
SET ADJPRO/Zrq init
|
||||
|
||||
#====================================================================================================
|
||||
# ZE
|
||||
|
Loading…
Reference in New Issue
Block a user