Commit Graph

3639 Commits

Author SHA1 Message Date
hallgren
8b4e13ea84 Wide Coverage Demo App: translate to all available target langauges at once
This means that the new translation is available instantly when switching
target languages. It can also reduce space leaks problems in the server
somewhat by avoiding repeated parsing of the source text.
2014-04-29 16:01:57 +00:00
hallgren
d37c25990e PGF web api, command c-wordforword: don't repeat parsing/morpho analysis for each target language
Also omit attemts to parse individual words for now, to avoid space leaks in
the Haskell binding to the C parser.
2014-04-29 15:51:46 +00:00
hallgren
05c70fdc41 Spring cleaning
Nothing major...
2014-04-28 13:56:20 +00:00
hallgren
7bd028919e Simple Translator: remove extra space before punctuation 2014-04-28 12:07:41 +00:00
kr.angelov
b21f2c04e1 an initial Java/C API for predicting literals. Still not utilized 2014-04-25 08:53:18 +00:00
kr.angelov
9fa07c41b5 remove dead code to avoid warnings 2014-04-24 19:21:00 +00:00
kr.angelov
89db1ba6c2 make the input box in the conversation view self-adjustable when entering longer text 2014-04-24 19:18:28 +00:00
kr.angelov
1aab6f57ce a better solution for restoring the state of the main activity when the device is flipped. This one doesn't require hacks. 2014-04-24 18:50:20 +00:00
hallgren
54a77ee7d9 Simple Translator: remove punctuation before wide coverage translation
This gives better translations with Translate11.pgf and is how the Wide
Coverage Demo App works.
2014-04-24 11:28:15 +00:00
kr.angelov
438a5470e2 a small fix to avoid showing * in some translations 2014-04-24 08:03:29 +00:00
kr.angelov
3362850fa9 show the alternative translations in color 2014-04-24 08:00:52 +00:00
kr.angelov
80e249105f show the probabilities for the alternative translations 2014-04-24 07:44:47 +00:00
kr.angelov
e28cb48e51 bugfix in the word completion in the input method 2014-04-24 07:27:34 +00:00
aarne
780382a389 merged the edits 2014-04-24 07:23:40 +00:00
aarne
b3201c9a7a updated app help 2014-04-24 07:14:40 +00:00
kr.angelov
e5553eeaae fix typo in the help file 2014-04-24 07:08:06 +00:00
kr.angelov
5d3a843d4b finally: the conversation view is now no longer cleared up everytime when the device is flipped 2014-04-23 20:27:46 +00:00
aarne
b1ca00dc5f some edits in app help ; special lexer for Fre,Ita commented out as it is no longer needed 2014-04-22 16:00:54 +00:00
kr.angelov
68c8d3cba8 bugfix in the handling of BIND in the C runtime 2014-04-22 13:53:18 +00:00
kr.angelov
0b29b041b3 fix in the renaming 2014-04-22 11:55:22 +00:00
kr.angelov
e054e8e087 rename DGTranslator to Human Language Compiler. Added a new logo 2014-04-22 11:53:16 +00:00
aarne
8a5ee1f072 some edits in app help 2014-04-21 08:40:38 +00:00
hallgren
3fd6dc90f9 Wide Coverage Demo web app: more client side caching
For example, you can now reorder paragraphs by cut & paste, without causing
anything to be sent to the server for re-translation.

Also some color & layout tweaks.
2014-04-17 13:48:00 +00:00
kr.angelov
d8e5206e7f now word completion from Java works. It could be made better 2014-04-17 11:00:27 +00:00
hallgren
d2f48f8156 Wide Coverage Demo App: show a word-for-word translation if all else fails 2014-04-16 15:37:09 +00:00
hallgren
5c79b1d8bd PGF web API: adding the command c-wordforword
It has the same parameters and result format as c-translate, but it does
the translation word for word. (To be used as a last resort).
2014-04-16 15:24:23 +00:00
aarne
5fe4536925 edits in App help ; name suggestion "Language Compiler" ; sepApo(), a quick fix to French and Italian elision in the App 2014-04-15 22:02:06 +00:00
hallgren
210f28ca4b PGF web API: add commands lookupmorpho and c-lookupmorpho 2014-04-15 14:50:38 +00:00
hallgren
93d14368b2 gftranslate.js: switch to Translate11.pgf 2014-04-11 20:08:12 +00:00
aarne
a45d9408fc Dut added to android Translator.java 2014-04-11 19:47:50 +00:00
hallgren
43319eb0b7 Wide Coverage Demo App (gftranslate.js): use a special lexer for Chinese. 2014-04-11 18:39:12 +00:00
hallgren
9f3235c29f Simple Translator: use colors to indicate translation quality 2014-04-11 15:00:15 +00:00
kr.angelov
1e177ed6a9 named entities in the Android App 2014-04-11 12:56:31 +00:00
hallgren
77586aa080 Simple Translator: Use PGF API for (un)lexing instead of separate server calls
Also,

  + Get up to 10 (instead of 5) alternative robust translations.
  + Remove duplicates from list of alternative robust translations
  + Add GF Cloud logo to the simple translator page
2014-04-11 12:10:05 +00:00
kr.angelov
c2d79790a3 forgoten Completer.java 2014-04-11 07:52:10 +00:00
kr.angelov
a28d0d246f expose Java API for word completion 2014-04-11 07:50:22 +00:00
kr.angelov
ea40bc151b change the JVM version to 1.6 in JNI_OnLoad 2014-04-11 07:15:27 +00:00
kr.angelov
77c545fa4f bugfix in the Java binding 2014-04-10 16:43:40 +00:00
hallgren
923107506f PGF web service: disable caching of parse results
Caching parse results uses a lot of memory, even if they expire after
2 minutes, so it won't scale up to many simultaneous users.

But some excessive memory use seems to be caused by space leaks in
(the Haskell binding to) the C run-time system, and these should be fixed.
For example, flushing the PGF cache does not release the memory allocated
by the C run-time system when loading a PGF file.
2014-04-10 15:55:33 +00:00
hallgren
62903443f0 Wide Coverage Demo App: it now works ok without server caching of parse results 2014-04-10 15:50:34 +00:00
kr.angelov
a9ebeaea44 now fully functional Java API for custom literals 2014-04-10 14:14:31 +00:00
kr.angelov
3a0aa8b997 bugfix in the C runtime 2014-04-10 07:42:49 +00:00
aarne
0525c7837a improved generation of BNC dictionaries ; now called TopDictionary for clarity 2014-04-10 13:07:05 +00:00
kr.angelov
66d60ce9d1 a quick hack to enable the NERC from bindings. This should be made available from the API but for now I just hacked the C runtime 2014-04-10 07:27:07 +00:00
hallgren
37c473a559 Wide Coverage Demo App: new buttons: to switch colors on/off & to try Google Translate 2014-04-09 20:51:31 +00:00
hallgren
739dc3f29d localstorage.js: bug fix
If you stored "false" and tried to retrieve it with a default value, you got
the default value instead of "false".
2014-04-09 20:49:53 +00:00
hallgren
17cf501d4c Wide Coverage Demo App: use PGF service lexing/unlexing
It is now enough to make one server call per translation, and the results can
cached by the browser.
2014-04-09 19:49:45 +00:00
hallgren
43e61a1e3b PGF web service: add unlexers and enable client side caching
Most PGF web API commands that produce linearizations now accept an
unlexer parameter. Possible values are "text", "code" and "mixed".

The web service now include Date and Last-Modified headers in the HTTP,
responses. This means that browsers can treat responses as static content and
cache them, so it becomes less critical to cache parse results in the server.

Also did some cleanup in PGFService.hs, e.g. removed a couple of functions
that can now be imported from PGF.Lexing instead.
2014-04-09 17:51:25 +00:00
hallgren
f2cc1d2c68 Change the type of PGF.Lexing.bindTok to [String] -> [String]
The old type was [String] -> String. This function was only used
in GF.Text.Lexing.stringOp, which now uses (unwords . bindTok) instead,
with no change in behaviour.
2014-04-09 17:39:21 +00:00
hallgren
0d1ad2f0e5 Unlexers: move capitalization of first word from GF.Text.Lexing to PGF.Lexing
The capitalization of the first word was done in GF.Text.Lexing.stringOp,
but is now done in the functions unlexText and unlexMixed in PGF.Lexing.
These functions are only used in stringOp and in PGFService (where the change
is needed), so the subtle change in behaviour should not cause any bugs.
2014-04-09 17:26:23 +00:00