Commit Graph

9168 Commits

Author SHA1 Message Date
prasanth.kolachina
4c103be4de Examples for using Python bindings
The examples directory contains two modules for using Python bindings in GF.
The gf_utils module provides various Python functions to perform parsing
and linearization using the C runtime. Additionally, the translation_pipeline
module is an replica of the current pipeline used in the Wide-coverage
Web translation pipeline.
2015-04-22 07:04:21 +00:00
aarne
8a720913c1 Finnish geonames in Dictionary 2015-04-22 06:58:13 +00:00
aarne
ecdc44c572 some new words in Dictionary ; fixed many more words in DictionaryFin 2015-04-21 16:01:54 +00:00
aarne
f0f1748360 some translate.probs decreased ; fine-tuning in pgf-hsbind-trans 2015-04-21 14:13:13 +00:00
krasimir
4cbe4403f2 forgot to update gf.cabal 2015-04-20 12:25:52 +00:00
krasimir
61e37c9e5e drop the dependency to FST 2015-04-20 11:56:13 +00:00
krasimir
79b710a6b7 added getpagesize() definition for Windows 2015-04-20 09:57:28 +00:00
krasimir
bfc2df3d04 fix in the Haskell binding for Windows 2015-04-20 09:55:15 +00:00
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