File: compoundfilter.fst

package info (click to toggle)
sfst 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,036 kB
  • sloc: cpp: 6,969; lex: 567; yacc: 269; perl: 135; python: 100; makefile: 49; sh: 13
file content (29 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  File:     compoundfilter.fst
%  Author:   Helmut Schmid; IMS, University of Stuttgart
%  Content:  enforcement of compounding constraints
%  Modified: Fri Jun 17 14:14:08 2005 (schmid)   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


#include "symbols.fst"


% Compounding filter
% Compounds are restricted to nouns and adjectives

$org$ = [#Origin#]:<>

% symbols occurring in non-compounds
$T$ = [#Letter# #EntryType#] | [#WordClass#]:<> | $org$

% expression matching non-compounds
$TS$ = $T$*

% expression matching compounds
$TC$ = ($T$ | <comp>:<>)*


($TS$ [<ADV><CARD><V><OTHER>] |\
 $TC$ [<ADJ><N>]) \
<base>:<> $org$ [#InflClass#]