Commit Graph

9160 Commits

Author SHA1 Message Date
aarne
bf6613cefb python binding examples directory 2015-04-20 07:42:11 +00:00
aarne
ab5d911141 new words in DictionaryFin and rules in ExtensionsFin ; some fun's in Dictionary commented out with ----* 2015-04-17 15:48:01 +00:00
aarne
168e6a04d8 pgf-hsbind-trans now with linearizeAll 2015-04-17 14:33:28 +00:00
hallgren
54b69e25ea pgf-shell.hs: remove call to performGC and document the 'i' command 2015-04-17 13:34:41 +00:00
hallgren
409f7ab3e3 gf -server: include grammar modification time in the info returned by /version 2015-04-17 13:21:20 +00:00
hallgren
69a192308b PGF web service: add command c-linearizeAll to obtain all variants
Implemented by calling the recently added function PGF2.linearizeAll.
2015-04-17 12:59:03 +00:00
krasimir
a76ea1a99b added linearizeAll in the Haskell bindings 2015-04-17 12:33:22 +00:00
hallgren
8c27daca37 translator/DictionarySwe.gf: fix hug_V2 2015-04-17 11:33:28 +00:00
aarne
e12e2f78c8 adjusted translate.probs 2015-04-17 07:08:14 +00:00
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