Commit Graph

9151 Commits

Author SHA1 Message Date
krasimir 5754848626 bugfix in the java binding 2015-04-16 13:53:03 +00:00
aarne 3ddbc44789 simplified the example translator and renamed it to pgf-hsbind-trans 2015-04-16 13:51:18 +00:00
hallgren 9495fc309f Wide Coverage Translation Demo: length limit test uses # of source chars now
The length limit test previously used the URL-encoded UTF-8 representation
of the source sentense. This was needed because of a fixed size buffer in C.
Now that the server is in Haskell, the only reason the length is limited
is to avoid excessive time and space use in the parser, so it is better to
count source characters. This also avoids being too restrictive with
non-European languages.
2015-04-16 12:21:32 +00:00
krasimir f5e14f1a46 fix today_N in Swedish 2015-04-16 12:01:38 +00:00
aarne a54c8b2bd2 lower probability for chunked phrases 2015-04-16 11:39:28 +00:00
aarne 14ad792ce7 two-place Dut.mkA to deal with unpredictable attributive form 2015-04-16 07:03:29 +00:00
aarne 2bd5bba87c Dutch mkA morpheme -en added to those not duplicating end consonant 2015-04-16 06:52:59 +00:00
aarne 538784e6dc restored Cantonese as app Chi speech output: nothing else seems to work 2015-04-16 06:52:09 +00:00
aarne 295f4afd54 corrected Dut.mkA for -ig ; ferris wheel in a few Dictionaries 2015-04-15 20:43:43 +00:00
aarne 23992d412d extended pgf-shell functionalities: batch translation with many trees, and intervening context-dependent tree manipulation 2015-04-15 15:53:44 +00:00
hallgren 3aaeaf1325 Translating linearization functions to Haskell: move Haskell AST and pretty printer to GF.Haskell
For further separation of pretty printing concerns from conversion concerns,
the Haskell AST and pretty printer has been moved to its own module,
GF.Haskell, also allowing it to be reused in other places where Haskell
code is generated.
2015-04-14 12:44:14 +00:00
aarne ca2ef47a47 updated app help file ; added backslash to ? in Thai keyboard xml to make it compile 2015-04-13 09:45:05 +00:00
hallgren 29712a43ac Wide coverage translation demo: show an informative error message for sentences that exceed the length limit 2015-04-09 10:18:41 +00:00
hallgren e2e943eabc GF.Compile.ConcreteToHaskell: some documentation 2015-04-07 14:51:52 +00:00
hallgren 33442e6b4f GF.CompileInParallel: get rid of the cryptic 'thread blocked indefinitely in an MVar operation' message after compilation errors
Instead show a message saying how many modules were affected by the compilation
errors.
2015-03-31 13:26:51 +00:00
hallgren bab4e7f872 translator/DictionarySwe.gf: nordic_A, washing_N 2015-03-31 12:24:54 +00:00
krasimir 37c9cbe0b4 fix in the dictionaries 2015-03-30 12:09:33 +00:00
hallgren 4a195c1915 translator/DictionaryTha.gf: fix a syntax error 2015-03-25 14:32:37 +00:00
hallgren d1bca8f4de Wide Coverage Translation Demo: zoomable panable collapsible syntax trees
This is an experimental solution using JavaScript code from
https://github.com/christos-c/tree-viewer, d3js.org and jquery.com.
2015-03-24 18:03:10 +00:00
hallgren 40c431ec6c PGF Service: add an option to return syntax trees in JSON format
The parse/translate/c-parse/c-translate commands now recognize the option
jsontree=true to augment the returned JSON structure with a field called
"jsontree" next to the field "tree", or "jsontrees" next to "trees",
containing the the returned syntax tree in JSON format (the same format
returned by the abstrjson command, similar to the format returned in the
"brackets" field).
2015-03-24 17:37:43 +00:00
hallgren a3183b07b0 translator/DictionarySwe.gf: add eclipse_N and eclipse_V2 2015-03-23 11:52:06 +00:00
krasimir 1a959be153 merge a number of spelling variants in the dictionaries 2015-03-23 11:02:50 +00:00
hallgren fbd7e498cd Wide Coverage Translation Demo: add a way to obtain inflection tables
Too see inflection tables, click on a translated sentense, then click on a
blue function name in the textual representation of the abstract syntax tree.
2015-03-22 22:54:05 +00:00
krasimir 4d8a86c1c2 fix in DictionaryBul 2015-03-22 07:03:41 +00:00
krasimir 4c8a9e7ac6 merge mold_N with mould_N 2015-03-22 06:37:48 +00:00
krasimir 7e9eec86c0 merge cantaloup_N with cantaloupe_N 2015-03-21 20:42:37 +00:00
krasimir 217d503f30 ~5000 more words in DictionarySwe from Google 2015-03-21 17:18:52 +00:00
krasimir 8b88fa6bb5 ~5000 new nouns in Swedish from Google 2015-03-21 13:34:48 +00:00
krasimir 82ab195d28 merge tranquility with tranquillity in the different dictionaries 2015-03-21 13:22:56 +00:00
krasimir f33d69aa9d random fixes in DictionarySwe.gf 2015-03-21 13:09:06 +00:00
krasimir c270d01cd4 small fixes in DictionaryBul.gf 2015-03-21 13:08:30 +00:00
krasimir 1357f58c1f fixes in DictionarySwe 2015-03-21 06:29:24 +00:00
krasimir 0338d1070c a number of country adjectives and nouns in Swedish. 2015-03-20 09:36:20 +00:00
krasimir 3f69eee279 causal_A/causality_N in Swedish 2015-03-19 21:01:46 +00:00
hallgren de1437d3c4 Wide Coverage Translation Demo: draw abstract trees and parse trees
You can now click on a tree to toggle between the abstract syntax tree and
the parse tree.

Also, the implementation now uses the new C run-time requests, e.g.

	App14.pgf?command=c-abstrtree&tree=...

so no need to install AppEng.pgf on the server any more.
2015-03-19 15:26:18 +00:00
hallgren 374da1f0b0 PGF service: add commands c-abstrtree and c-parsetree
These are the C runtime variants of the absttree and parsetree commands. They
work in the same way, but support fewer rendering options.
2015-03-19 14:17:45 +00:00
hallgren fac915e783 haskell-bind: add bindings to graphviz rendering functions for abstract&parse trees 2015-03-19 14:14:30 +00:00
krasimir 7c24ce9758 fix the compilation of gu/mem.c on Windows. For now memory mapped pools on Windows are just not supported. 2015-03-19 09:28:31 +00:00
hallgren e92583ca8c Wide Coverage Translation Demo: draw syntax trees
The trees are drawn by using the Haskell run-time request 

	AppEng.pgf?command=abstrtree&tree=...

Thus AppEng.pgf has to be installed on the server and in sync with App14.pgf.
This is to avoid loading the huge App14.pgf in the Haskell run-time system, and
is enough since we only need the abstract syntax.
2015-03-18 16:23:04 +00:00
aarne 9af20d5c8b generalized mkPrep in ParadigmsSpa by Daniel Vidal 2015-03-17 17:41:43 +00:00
hallgren 9ce7b36024 translator/DictionarySwe.gf: some fixes and new words, e.g. neither7nor_DConj 2015-03-17 15:49:56 +00:00
aarne 73976ec803 started finnish/tagged/ as a variant of the RGL that uses external morphological analysis 2015-03-17 15:04:28 +00:00
hallgren dcf941d2be translation/DictionarySwe.gf: three new words
Ignoring suspicious entries latest_N, times_N and pend_V.
2015-03-16 15:22:03 +00:00
aarne 845687462f refactored Thai so that it can now be compiled producing BIND tokens instead of spaces, by just changing the definition of ResTha.bIND. This is not to be exploited yet, because it produces consecutive BIND tokens, which are not supported at runtime. 2015-03-16 14:53:53 +00:00
hallgren ae97390cf5 translator/DictionarySwe.gf: three new words and a gender correction 2015-03-16 14:14:14 +00:00
aarne 963d3af1e9 Mongolian in ResourceDemo 2015-03-13 15:27:55 +00:00
aarne 4c8984638c Mongolian on index page 2015-03-13 15:24:10 +00:00
aarne 9e0012af3e updated RGL synopsis with Mongolian 2015-03-13 15:21:49 +00:00
aarne 3625c1ea25 fixed path in TryNep 2015-03-13 15:11:18 +00:00
aarne f7f8225103 added Nepali to Setup: it had been missing 2015-03-13 15:10:16 +00:00