mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-13 05:02:50 -06:00
Add Phrasebook to testsuite. Move grammars into subfolders. Add run-bench script.
This commit is contained in:
14
testsuite/lpgf/phrasebook/SentencesSwe.gf
Normal file
14
testsuite/lpgf/phrasebook/SentencesSwe.gf
Normal file
@@ -0,0 +1,14 @@
|
||||
concrete SentencesSwe of Sentences = NumeralSwe ** SentencesI - [
|
||||
PYesToNo, NameNN,
|
||||
DrinkNumber -- should be utrum gender when countable
|
||||
] with
|
||||
(Syntax = SyntaxSwe),
|
||||
(Symbolic = SymbolicSwe),
|
||||
(Lexicon = LexiconSwe) ** open Prelude, SyntaxSwe, (P = ParadigmsSwe) in {
|
||||
|
||||
lin
|
||||
PYesToNo = mkPhrase (lin Utt (ss "jo")) ;
|
||||
NameNN = mkNP (P.mkPN "NN") ;
|
||||
DrinkNumber n d = mkNP n (mkCN (P.mkN [] [] [] [] P.utrum) (lin Adv (mkUtt d))) ; --- empty classifier - quite a hack...
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user