hallgren
201283c055
Wide coverage demo web app: translation quality feedback with colors
...
The background color of the translation changes to pale green, yellow or red
according to the quality.
Two types of quality indications are supported:
+ From the grammar: linearizations starting with "+" or "*" are assumed to
be of high or low quality, respectively.
+ From the parse tree: if the root function is "?", then the translation is
assumed to be of low quality.
If no quality indications are detected, medium quality is assumed.
2014-03-27 15:11:02 +00:00
hallgren
9bfed99790
support.js & gftranslate.js: improved handling of server errors
...
In support.js, the functions http_get_json, ajax_http_get_json
and ajax_http_post_json now calls the supplied error callback if the server
returns invalid JSON (e.g. because of a crash).
The function gftranslate.translate in gftranslate.js returns
a JSON value containing an error message (since it doesn't have an error
callback).
This should result in fewer situations where "nothing happens" and the user
doesn't know if it is beacuse the server is slow, or if there was an error.
2014-03-27 15:02:27 +00:00
kr.angelov
911ae42296
small fixes in the C runtime
2014-03-25 13:57:57 +00:00
kr.angelov
51a9ef72c7
refactor the compilation of CFG and EBNF grammars. Now they are parsed by using GF.Grammar.Parser just like the ordinary GF grammars. Furthermore now GF.Speech.CFG is moved to GF.Grammar.CFG. The new module is used by both the speech conversion utils and by the compiler for CFG grammars. The parser for CFG now consumes a lot less memory and can be used with grammars with more than 4 000 000 productions.
2014-03-21 21:25:05 +00:00
kr.angelov
d816c34986
added hasLinearization method in the Python binding
2014-03-20 14:48:47 +00:00
kr.angelov
eb1aa24896
fix in the Python binding which was forgoten after a change in the C runtime
2014-03-20 14:48:02 +00:00
hallgren
b061d59044
gf -server: add a command to manually flush the PGF cache
...
This can be used if the cloud service seems slow, but it would probably
be better to automatically expire unused PGFs from the cache after some time.
2014-03-19 16:15:05 +00:00
aarne
cbb538e170
a darker red in translation app: dictionary lookup for each word, identity if lookup fails
2014-03-18 13:22:13 +00:00
aarne
b4a6e047e3
Hin and Ger added to android app again
2014-03-18 10:21:53 +00:00
kr.angelov
a1446b87fa
whitespace cleanup in the parser
2014-03-18 10:19:35 +00:00
aarne
891ca74186
show the value in the error message when failing to get Str from value
2014-03-17 18:02:07 +00:00
hallgren
22b68ad30c
Wide coverage demo web app: add speech synthesis
...
Works in Safari and Chrome.
2014-03-17 15:59:43 +00:00
kr.angelov
7dd5748fa8
bugfix in the compiler for linref of empty record
2014-03-15 11:33:54 +00:00
aarne
55e2bfb9eb
bg in android app
2014-03-14 15:00:33 +00:00
aarne
566df8e4ae
Spanish in android app
2014-03-14 09:45:46 +00:00
aarne
c1c37a65e6
AppIta, with a small lexicon
2014-03-13 13:27:51 +00:00
aarne
f12aed25ca
App ported to Fre
2014-03-13 11:12:34 +00:00
kr.angelov
bde1ff8032
remove accidental trace message
2014-03-13 08:25:19 +00:00
kr.angelov
cf1cee3c02
small stylistic changes in the Android App
2014-03-13 08:21:31 +00:00
kr.angelov
ae1512c926
compute the right word probability
2014-03-12 15:36:40 +00:00
hallgren
ca8dd1e8cc
support.js: For better error handling, always use AJAX, don't fallback to JSONP
...
Cross-origin requests are allowed by the PGF service and are supported in
all modern browsers.
See http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
2014-03-12 14:07:35 +00:00
hallgren
f092e7fe5b
haskell-bind: comment out superfluous imports
2014-03-12 13:21:47 +00:00
kr.angelov
80331889e5
the UI for the Android API now has stable word prediction
2014-03-12 14:01:22 +00:00
kr.angelov
ebb61fbf1c
ensure that negative probabilities are always avoided
2014-03-12 13:11:23 +00:00
john.j.camilleri
f4be97c152
Fix typo in PGFService: "incomlete"
2014-03-12 12:45:32 +00:00
kr.angelov
42e185124e
remove the unnecessary logging of the completion string
2014-03-12 10:57:11 +00:00
kr.angelov
23f603dabc
fixes in the word completion
2014-03-12 10:54:29 +00:00
aarne
ccda8f00e1
android: added (1) dg icon (2) green/yellow/red colours for translation confidence (3) App grammars as test case in Translator.java
2014-03-10 18:04:43 +00:00
aarne
0537de6726
added alternative build with Pred grammars to android, commented out by default
2014-03-09 11:42:47 +00:00
kr.angelov
178d06d5a2
added word completion in the Android UI
2014-03-07 21:30:54 +00:00
kr.angelov
2132eb6bed
added Java API to the simple word completion
2014-03-07 21:29:26 +00:00
kr.angelov
319308007c
fix in the Java binding after the implementation for pre
2014-03-07 21:28:40 +00:00
kr.angelov
ba28cfd80e
added pgf_lookup_word_prefix which makes it possible to do simple word prediction
2014-03-07 21:24:20 +00:00
kr.angelov
ae59508f6a
another fix in the keyboard
2014-03-07 14:13:21 +00:00
kr.angelov
a8e18c3bdf
bugfix in the keyboard
2014-03-07 13:51:28 +00:00
kr.angelov
df3406c11f
added Devanagari keyboard for Android
2014-03-07 13:42:13 +00:00
kr.angelov
6cb693bdf5
bugfix in pgf-translate
2014-03-07 09:35:57 +00:00
hallgren
052ead6797
C run-time: protect from Windows specific #includes with #ifdef __MINGW32__
2014-03-06 13:42:27 +00:00
kr.angelov
e916c77cb4
bugfix in the android keyboard for multiline documents
2014-03-05 13:42:55 +00:00
kr.angelov
459f3bffa6
bugfix in the Android UI
2014-03-05 12:50:36 +00:00
kr.angelov
4f9afb9343
implementation for pre in the C runtime
2014-03-05 10:17:42 +00:00
hallgren
d04ffb60ac
Fix the fix
2014-03-04 14:35:14 +00:00
hallgren
108e04b7bd
Fixes for GHC 7.6 compatibility
2014-03-04 14:28:44 +00:00
hallgren
76ba865c2e
Three fixes for compatibility with GHC 7.8
...
Two of the fixes were in the custom version of the binary package. We
should get rid of it at some point, to reduce the maintenance burden.
The third fix was to add new version constraints for happy and alex in
gf.cabal. New versions of them are needed because of the ugly, low-level,
GHC-specific code they produce need to be different for GHC 7.8.
More fixes might be needed for -server mode, but the cgi package is not
compatible with GHC 7.8 at the moment, so it will have to wait.
2014-03-04 14:13:41 +00:00
kr.angelov
cbe17732a6
use pgf_linearize instead of pgf_lzr_linearize_simple in pgf-translate.c
2014-03-04 10:30:23 +00:00
kr.angelov
2e1dd543e9
memory leak in parseval.c
2014-03-04 10:29:18 +00:00
kr.angelov
c197de7fbd
rename pgf_lzr_linearize_table to pgf_lzr_get_table
2014-03-04 10:13:23 +00:00
kr.angelov
ddf36bcd62
more in src/runtime/java/INSTALL
2014-02-27 21:21:19 +00:00
kr.angelov
60bfacf7c2
another fix for building the Java binding
2014-02-27 21:20:19 +00:00
kr.angelov
aeeabe3f0e
added file with instructions for compiling the Java binding
2014-02-27 20:20:59 +00:00