DELAFgrep [options] <pattern> [ <files> ] Match a lexical pattern against a DELAF dictionary. options:
-f | filter_flex
filter the flex codes: keep only matching inflectional codes,
e.g. for `<.N:s>' matched against <sheep,.N:s:p> only
<sheep,.N:s> is returned. See below for more examples.
Match a lexical pattern against a DELAF dictionary.
E.g. for the dictionary:
boy,.N+Hum:s boys,boy.N+Hum:p house,.V:W:P1s:P2s:P1p:P2p:P3p house,.N:s housed,house.V:K:I1s:I2s:I3s:I1p:I2p:I3p houses,house.V:P3s houses,house.N:p housing,house.V:G train,.V:W:P1s:P2s:P1p:P2p:P3p train,.N:s trained,train.V:K:I1s:I2s:I3s:I1p:I2p:I3p training,train.V:G trains,train.V:P3s trains,train.N:p
following patterns will match:
<.N>
boy,.N+Hum:s boys,boy.N+Hum:p house,.N:s houses,house.N:p train,.N:s trains,train.N:p
<.N:p> or <N:p>
boys,boy.N+Hum:p houses,house.N:p trains,train.N:p
<house.N>
house,.N:s houses,house.N:p
<train.N:s>
train,.N:s
<.N+Hum> or <N+Hum>
boy,.N+Hum:s boys,boy.N+Hum:p
<.N-Hum> or <N-Hum>
house,.N:s houses,house.N:p train,.N:s trains,train.N:p
<.N+Hum:s> or <N+Hum:s>
boy,.N+Hum:s
<.V:Ip> or <.V:pI> or <V:Ip> or <V:pI>
housed,house.V:K:I1s:I2s:I3s:I1p:I2p:I3p trained,train.V:K:I1s:I2s:I3s:I1p:I2p:I3p
Using the option -f this will be returned, i.e. only the matched
bundles of grammatical features will remain:
housed,house.V:I1p:I2p:I3p trained,train.V:I1p:I2p:I3p
<house.V:P3s> or <house.V:3Ps> or …
houses,house.V:P3s
<house.V<gt+<house.N<gt>>
To combine to patterns join them by `+'.
house,.V:W:P1s:P2s:P1p:P2p:P3p house,.N:s housed,house.V:K:I1s:I2s:I3s:I1p:I2p:I3p houses,house.V:P3s houses,house.N:p housing,house.V:G
Default encoding for pattern and dictionary is utf-8.
No case equivalence implemented yet. So patterns are matched case sensitive
UNITEX-Homepage (http://www-igm.univ-mlv.fr/~unitex/index.html)
Sebastian Nagel, CIS Uni München