forked from GitHub/gf-core
Wide Coverage Demo web app: use the App grammar instead of the Translate grammar
This gives faster but slightly lower quality translations.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
var gftranslate = {}
|
||||
|
||||
gftranslate.jsonurl="/robust/Translate11.pgf"
|
||||
gftranslate.grammar="Translate" // the name of the grammar
|
||||
gftranslate.jsonurl="/robust/App11.pgf"
|
||||
gftranslate.grammar="App" // the name of the grammar
|
||||
|
||||
gftranslate.call=function(querystring,cont,errcont) {
|
||||
http_get_json(gftranslate.jsonurl+querystring,cont,errcont)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var wc={}
|
||||
wc.cnl="Phrasebook" // try this controlled natural language first
|
||||
//wc.cnl="Phrasebook" // try this controlled natural language first
|
||||
wc.f=document.forms[0]
|
||||
wc.o=element("output")
|
||||
wc.e=element("extra")
|
||||
|
||||
Reference in New Issue
Block a user