1
0
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:
hallgren
2014-09-09 13:53:10 +00:00
parent 782bdf3a52
commit 98e01dc63e
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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")