From 3643e20406abf83d2a41d8d46dd5c66237ef1727 Mon Sep 17 00:00:00 2001 From: aarne Date: Tue, 2 Jun 2015 12:59:29 +0000 Subject: copied examples/app to examples/slowApp; the new app is a bit scaled down but much faster --- examples/slowApp/App.gf | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 examples/slowApp/App.gf (limited to 'examples/slowApp/App.gf') diff --git a/examples/slowApp/App.gf b/examples/slowApp/App.gf new file mode 100644 index 000000000..24f4bb67c --- /dev/null +++ b/examples/slowApp/App.gf @@ -0,0 +1,37 @@ +abstract App = + Translate - [ + -- Verb + SlashV2V, -- replaced by more efficient inlined versions + Slash2V3, Slash3V3, SlashV2S, SlashV2Q, SlashV2A, + SlashVV, SlashV2VNP, + AdvVPSlash, AdVVPSlash, VPSlashPrep, + -- Sentence + PredSCVP, + AdvSlash, SlashPrep, SlashVS, + EmbedS, EmbedQS, EmbedVP, RelS, + -- Question + ComplSlashIP,AdvQVP,AddAdvQVP,QuestQVP, + -- Idiom + CleftNP, CleftAdv, + ImpP3 + -- Construction + -- Extensions + ] + ,Phrasebook + + ** { +flags + startcat=Phr ; + heuristic_search_factor=0.80; -- doesn't seem to affect speed or quality much + +fun + PhrasePhr : Phrase -> Phr ; + Phrase_Chunk : Phrase -> Chunk ; + + ComplV2V : V2V -> NP -> VP -> VP ; + ComplV2A : V2A -> NP -> AP -> VP ; + ComplV2Q : V2Q -> NP -> QS -> VP ; + ComplV2S : V2S -> NP -> S -> VP ; + ComplV3 : V3 -> NP -> NP -> VP ; + +} -- cgit v1.2.3