diff options
| author | aarne <aarne@chalmers.se> | 2016-05-14 08:30:49 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2016-05-14 08:30:49 +0000 |
| commit | 7c8d2f71dc71a1890cc3b4c77d440c63f82cf76b (patch) | |
| tree | 10db9012b1845c08b7c07b5d91163c0f8d1d002f /examples/app/AppEng.gf | |
| parent | bde9dc7cfdf4142909c9f9d06625aeb2352f504e (diff) | |
commented out the import of Phrasebook in App with --P; the idea is that application grammar parsing is done in a separate phase, which is faster and more flexible. Also re-enabled ComplV3 and ComplV2V, after testing that they don't reduce the parsing speed too much.
Diffstat (limited to 'examples/app/AppEng.gf')
| -rw-r--r-- | examples/app/AppEng.gf | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/app/AppEng.gf b/examples/app/AppEng.gf index 313e0b6ff..10e84f9a8 100644 --- a/examples/app/AppEng.gf +++ b/examples/app/AppEng.gf @@ -24,7 +24,7 @@ concrete AppEng of App = PassVPSlash, PassAgentVPSlash -- not reachable anyway ] - ,PhrasebookEng - [PSentence, PQuestion, PGreetingMale, PGreetingFemale, GObjectPlease, open_Adv] +--P ,PhrasebookEng - [PSentence, PQuestion, PGreetingMale, PGreetingFemale, GObjectPlease, open_Adv] ** open MorphoEng, ResEng, ParadigmsEng, SyntaxEng, (G = GrammarEng), (E = ExtraEng), Prelude in { @@ -33,21 +33,21 @@ flags -- to suppress punctuation lin - PSentence, PQuestion = \s -> lin Text (mkUtt s) ; - PGreetingMale, PGreetingFemale = \s -> lin Text s ; - GObjectPlease o = lin Text (mkUtt o) ; - PhrasePhr p = {s = "+" ++ p.s} | p ; - Phrase_Chunk p = p ; +--P PSentence, PQuestion = \s -> lin Text (mkUtt s) ; +--P PGreetingMale, PGreetingFemale = \s -> lin Text s ; +--P GObjectPlease o = lin Text (mkUtt o) ; +--P PhrasePhr p = {s = "+" ++ p.s} | p ; +--P Phrase_Chunk p = p ; ComplV2V v np vp = mkVP v np vp ; - ComplV2A v np vp = mkVP v np vp ; - ComplV2Q v np vp = mkVP v np vp ; - ComplV2S v np vp = mkVP v np vp ; +-- ComplV2A v np vp = mkVP v np vp ; +-- ComplV2Q v np vp = mkVP v np vp ; +-- ComplV2S v np vp = mkVP v np vp ; ComplV3 v np vp = mkVP v np vp ; ComplV2 v np = mkVP v np ; - PassV2 v2 = passiveVP v2 ; - PassV2 v2 = passiveVP v2 ; +PassV2 v2 = passiveVP v2 ; + } |
