mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
re-enabled Phrasebook in App ; added Russian ; testing with lower-casing the input
This commit is contained in:
@@ -22,7 +22,7 @@ abstract App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
--P ,Phrasebook
|
,Phrasebook
|
||||||
|
|
||||||
** {
|
** {
|
||||||
flags
|
flags
|
||||||
@@ -30,8 +30,8 @@ flags
|
|||||||
heuristic_search_factor=0.80; -- doesn't seem to affect speed or quality much
|
heuristic_search_factor=0.80; -- doesn't seem to affect speed or quality much
|
||||||
|
|
||||||
fun
|
fun
|
||||||
--P PhrasePhr : Phrase -> Phr ;
|
PhrasePhr : Phrase -> Phr ;
|
||||||
--P Phrase_Chunk : Phrase -> Chunk ;
|
Phrase_Chunk : Phrase -> Chunk ;
|
||||||
|
|
||||||
ComplV2 : V2 -> NP -> VP ; -- sees him
|
ComplV2 : V2 -> NP -> VP ; -- sees him
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ concrete AppBul of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookBul - [open_Adv,closed_A,open_A]
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxBul) ;
|
** AppFunctor with (Syntax = SyntaxBul) ;
|
||||||
|
|
||||||
|
|||||||
@@ -23,5 +23,6 @@ concrete AppCat of App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
|
,PhrasebookCat - [open_Adv,closed_A,open_A,at_Prep,cheap_A,expensive_A,stateCopula]
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxCat) ;
|
** AppFunctor with (Syntax = SyntaxCat) ;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ concrete AppChi of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookChi - [open_Adv,closed_A,open_A,at_Prep,by_Prep]
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxChi) ;
|
** AppFunctor with (Syntax = SyntaxChi) ;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ concrete AppDut of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookDut - [open_Adv,closed_A,open_A]
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxDut) ;
|
** AppFunctor with (Syntax = SyntaxDut) ;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ concrete AppEng of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookEng - [open_Adv]
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxEng) ;
|
** AppFunctor with (Syntax = SyntaxEng) ;
|
||||||
|
|
||||||
|
|||||||
@@ -23,5 +23,7 @@ concrete AppEst of App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
|
,PhrasebookEst - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxEst) ;
|
** AppFunctor with (Syntax = SyntaxEst) ;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ concrete AppFin of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookFin - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxFin) ;
|
** AppFunctor with (Syntax = SyntaxFin) ;
|
||||||
|
|||||||
@@ -22,5 +22,7 @@ concrete AppFre of App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
|
,PhrasebookFre - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxFre) ;
|
** AppFunctor with (Syntax = SyntaxFre) ;
|
||||||
|
|||||||
@@ -20,14 +20,19 @@ incomplete concrete AppFunctor of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
Phrasebook - [open_Adv]
|
||||||
|
|
||||||
** open Syntax in {
|
** open Syntax in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
literal=Symb ;
|
literal=Symb ;
|
||||||
|
case_sensitive=off ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
PhrasePhr p = {s = "+" ++ p.s} | p ;
|
||||||
|
Phrase_Chunk p = p ;
|
||||||
|
|
||||||
ComplV2 v np = mkVP v np ;
|
ComplV2 v np = mkVP v np ;
|
||||||
|
|
||||||
ComplV2V v np vp = mkVP v np vp ;
|
ComplV2V v np vp = mkVP v np vp ;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ concrete AppGer of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookGer - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxGer) ;
|
** AppFunctor with (Syntax = SyntaxGer) ;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ concrete AppHin of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookHin - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxHin) ;
|
** AppFunctor with (Syntax = SyntaxHin) ;
|
||||||
|
|||||||
@@ -23,5 +23,7 @@ concrete AppIta of App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
|
,PhrasebookIta - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxIta) ;
|
** AppFunctor with (Syntax = SyntaxIta) ;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ concrete AppJpn of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookJpn - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxJpn) ;
|
** AppFunctor with (Syntax = SyntaxJpn) ;
|
||||||
|
|||||||
@@ -23,5 +23,7 @@ concrete AppRus of App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
|
,PhrasebookRus - [open_Adv,closed_A,open_A,at_Prep,cost_V]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxRus) ;
|
** AppFunctor with (Syntax = SyntaxRus) ;
|
||||||
|
|||||||
@@ -24,5 +24,7 @@ concrete AppSpa of App =
|
|||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
]
|
||||||
|
,PhrasebookSpa - [open_Adv,closed_A,open_A,at_Prep,cheap_A,expensive_A,stateCopula]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxSpa) ;
|
** AppFunctor with (Syntax = SyntaxSpa) ;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ concrete AppSwe of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookSwe - [open_Adv,closed_A,open_A]
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxSwe) ;
|
** AppFunctor with (Syntax = SyntaxSwe) ;
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ concrete AppTha of App =
|
|||||||
-- Construction
|
-- Construction
|
||||||
-- Extensions
|
-- Extensions
|
||||||
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
PassVPSlash, PassAgentVPSlash -- not reachable anyway
|
||||||
]
|
],
|
||||||
|
PhrasebookTha - [open_Adv,closed_A,open_A,at_Prep]
|
||||||
|
|
||||||
|
|
||||||
** AppFunctor with (Syntax = SyntaxTha) ;
|
** AppFunctor with (Syntax = SyntaxTha) ;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ App16.pgf: $(APP16)
|
|||||||
|
|
||||||
# Without dependencies:
|
# Without dependencies:
|
||||||
App11:
|
App11:
|
||||||
$(GFMKT) -name=App12 $(APP11) +RTS -K200M
|
$(GFMKT) -name=App11 $(APP11) +RTS -K200M
|
||||||
App12:
|
App12:
|
||||||
$(GFMKT) -name=App12 $(APP12) +RTS -K200M
|
$(GFMKT) -name=App12 $(APP12) +RTS -K200M
|
||||||
App13:
|
App13:
|
||||||
@@ -43,6 +43,8 @@ App14:
|
|||||||
$(GFMKT) -name=App14 $(APP14) +RTS -K200M
|
$(GFMKT) -name=App14 $(APP14) +RTS -K200M
|
||||||
App15:
|
App15:
|
||||||
$(GFMKT) -name=App15 $(APP15) +RTS -K200M
|
$(GFMKT) -name=App15 $(APP15) +RTS -K200M
|
||||||
|
App16:
|
||||||
|
$(GFMKT) -name=App16 $(APP16) +RTS -K200M
|
||||||
|
|
||||||
# App grammars for individual languages
|
# App grammars for individual languages
|
||||||
AppEng.pgf:: ; $(GFMKT) -name=AppEng AppEng.gf
|
AppEng.pgf:: ; $(GFMKT) -name=AppEng AppEng.gf
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
compile = runghc Compile
|
compile = runghc Compile
|
||||||
|
|
||||||
forApp:
|
forApp:
|
||||||
$(compile) -opt Bul Cat Chi Dut Eng Est Fin Fre Ger Hin Ita Jpn Spa Swe Tha
|
$(compile) -opt Bul Cat Chi Dut Eng Est Fin Fre Ger Hin Ita Jpn Rus Spa Swe Tha
|
||||||
make gfos
|
make gfos
|
||||||
|
|
||||||
.PHONY: gfos
|
.PHONY: gfos
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class Translator {
|
|||||||
new Language("hi-IN", "Hindi", "AppHin", R.xml.devanagari_page1, R.xml.devanagari_page2),
|
new Language("hi-IN", "Hindi", "AppHin", R.xml.devanagari_page1, R.xml.devanagari_page2),
|
||||||
new Language("it-IT", "Italian", "AppIta", R.xml.qwerty),
|
new Language("it-IT", "Italian", "AppIta", R.xml.qwerty),
|
||||||
new Language("ja-JP", "Japanese","AppJpn", R.xml.qwerty),
|
new Language("ja-JP", "Japanese","AppJpn", R.xml.qwerty),
|
||||||
|
new Language("ru-RU", "Russian", "AppRus", R.xml.cyrillic),
|
||||||
new Language("es-ES", "Spanish", "AppSpa", R.xml.qwerty),
|
new Language("es-ES", "Spanish", "AppSpa", R.xml.qwerty),
|
||||||
new Language("sv-SE", "Swedish", "AppSwe", R.xml.nordic),
|
new Language("sv-SE", "Swedish", "AppSwe", R.xml.nordic),
|
||||||
new Language("th-TH", "Thai", "AppTha", R.xml.thai_page1, R.xml.thai_page2)
|
new Language("th-TH", "Thai", "AppTha", R.xml.thai_page1, R.xml.thai_page2)
|
||||||
|
|||||||
Reference in New Issue
Block a user