mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
added top-level punctuation to tagged Finnish
This commit is contained in:
@@ -17,6 +17,14 @@ concrete LargeFin of LargeFinAbs =
|
|||||||
IdiomFin,
|
IdiomFin,
|
||||||
TenseX,
|
TenseX,
|
||||||
ExtraFin,
|
ExtraFin,
|
||||||
WordsFin
|
WordsFin ** open TagFin, StemFin in {
|
||||||
;
|
|
||||||
|
|
||||||
|
lincat
|
||||||
|
Top = {s : Str} ;
|
||||||
|
Punct = {s : Str} ;
|
||||||
|
lin
|
||||||
|
PhrPunctTop phr pu = {s = phr.s ++ pu.s} ;
|
||||||
|
PhrTop phr = phr ;
|
||||||
|
|
||||||
|
fullstopPunct = {s = tagPOS "PUNCT" "."} ;
|
||||||
|
}
|
||||||
@@ -15,6 +15,18 @@ abstract LargeFinAbs =
|
|||||||
Structural,
|
Structural,
|
||||||
Tense,
|
Tense,
|
||||||
ExtraFinAbs,
|
ExtraFinAbs,
|
||||||
WordsFinAbs
|
WordsFinAbs ** {
|
||||||
;
|
|
||||||
|
flags startcat = Top ;
|
||||||
|
|
||||||
|
cat
|
||||||
|
Top ;
|
||||||
|
Punct ;
|
||||||
|
fun
|
||||||
|
PhrPunctTop : Phr -> Punct -> Top ;
|
||||||
|
PhrTop : Phr -> Top ;
|
||||||
|
fullstopPunct : Punct ;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ flags coding = utf8 ;
|
|||||||
oper
|
oper
|
||||||
-- other classes not treated below are POS tagged when the grammar is used with Omorfi
|
-- other classes not treated below are POS tagged when the grammar is used with Omorfi
|
||||||
|
|
||||||
tagPOS : Str -> Str -> Str = \p,s -> tagWord p s ;
|
tagPOS : Str -> Str -> Str = \p,s -> tagWord ("+" + p) s ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
SNForm : Type = Predef.Ints 0 ; --- not really needed
|
SNForm : Type = Predef.Ints 0 ; --- not really needed
|
||||||
|
|||||||
Reference in New Issue
Block a user