File: morph.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 (79 lines) | stat: -rw-r--r-- 2,271 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  File:     morph.fst
%  Author:   Helmut Schmid; IMS, Universitaet Stuttgart
%  Content:  main file of the morphology   
%  Modified: Thu Jun 23 10:23:15 2005 (schmid)   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% definition of the symbol classes
#include "symbols.fst"


% read the morphemes
$LEX$ = "lexicon"


% apply the transducers which deletes unwanted symbols in the analysis
% string (map1) and the surface string (map2) of the lexicon entries

$LEX$ = "<map1.a>" || $LEX$ || "<map2.a>"

% creation of sublexica for the different types of entries

% stems
$BDKStem$ = $LEX$ || <NoDef>:<>? [#BDKStem#] [#AllSym#]*

% prefixes
$Prefix$ = $LEX$ || <Prefix> [#AllSym#]*

% suffixes combining with simplex stems
$SimplexSuffix$ = $LEX$ || <Suffix><simplex>:<> [#AllSym#]*

% suffixes combining with suffix derivation stems
$SuffDerivSuffix$ = $LEX$ || <Suffix><suffderiv>:<> [#AllSym#]*

% suffixes combining with prefix derivation stems
$PrefDerivSuffix$ = $LEX$ || <Suffix><prefderiv>:<> [#AllSym#]*


% generation of default derivational and compounding stems

#include "defaultstems.fst"


%%% Derivation and Composition %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% sequence of derivational suffixes to be added to simplex stems
$SimplexSuffixes$ = ($SimplexSuffix$ $SuffDerivSuffix$*)?

% sequence of derivational suffixes to be added to prefixed stems
$PrefDerivSuffixes$ = ($PrefDerivSuffix$ $SuffDerivSuffix$*)?

% suffix derivation with a simplex base
$SuffixFilter$ = "<suffixfilter.a>"
$S0$ = $BDKStem$ $SimplexSuffixes$ || $SuffixFilter$

% prefix derivation
$P1$ = $Prefix$ $S0$ || "<prefixfilter.a>"

% suffix derivation with a "prefderiv" base
$S1$ = $P1$ $PrefDerivSuffixes$ || $SuffixFilter$

% combination of the different derivations
$Morph$ = $S0$ | $S1$


%%% Compounding %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% $Morph$ = $Morph$* $Morph$ || "<compoundfilter.a>"
$Morph$ = $Morph$ || "<compoundfilter.a>"


%%% Inflection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

$Morph$ = $Morph$ "<inflection.a>" || "<inflectionfilter.a>"


%%% Morpho-Phonological Rules %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

$Morph$ || "<phon.a>"