summaryrefslogtreecommitdiff
path: root/examples/slowApp/App.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2015-06-02 12:59:29 +0000
committeraarne <aarne@chalmers.se>2015-06-02 12:59:29 +0000
commit3643e20406abf83d2a41d8d46dd5c66237ef1727 (patch)
tree0256c6bfd6b2a4b356ff5a648763b15d96c2cd48 /examples/slowApp/App.gf
parenteb07e4e8622e11087c5f6c14cd35d1575fcea3a8 (diff)
copied examples/app to examples/slowApp; the new app is a bit scaled down but much faster
Diffstat (limited to 'examples/slowApp/App.gf')
-rw-r--r--examples/slowApp/App.gf37
1 files changed, 37 insertions, 0 deletions
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 ;
+
+}