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 = {}
|
var gftranslate = {}
|
||||||
|
|
||||||
gftranslate.jsonurl="/robust/Translate11.pgf"
|
gftranslate.jsonurl="/robust/App11.pgf"
|
||||||
gftranslate.grammar="Translate" // the name of the grammar
|
gftranslate.grammar="App" // the name of the grammar
|
||||||
|
|
||||||
gftranslate.call=function(querystring,cont,errcont) {
|
gftranslate.call=function(querystring,cont,errcont) {
|
||||||
http_get_json(gftranslate.jsonurl+querystring,cont,errcont)
|
http_get_json(gftranslate.jsonurl+querystring,cont,errcont)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
var wc={}
|
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.f=document.forms[0]
|
||||||
wc.o=element("output")
|
wc.o=element("output")
|
||||||
wc.e=element("extra")
|
wc.e=element("extra")
|
||||||
|
|||||||
Reference in New Issue
Block a user