1
0
forked from GitHub/gf-core
Commit Graph

9978 Commits

Author SHA1 Message Date
prasant.kolachina beedd6dbb7 bug fix in python examples 2015-04-26 11:00:17 +00:00
prasant.kolachina 20a234521e bug fix python examples 2015-04-26 10:18:21 +00:00
prasant.kolachina db2d012fe5 Bug fix python examples 2015-04-26 10:16:23 +00:00
prasanth.kolachina c43af4d991 Changes in lexer 2015-04-26 07:44:18 +00:00
prasanth.kolachina c921136a9b Bug fix in gf_utils 2015-04-24 18:46:03 +00:00
prasanth.kolachina 98bfbd8d60 No debug messages 2015-04-22 18:51:55 +00:00
prasanth.kolachina a57b9b9275 Minor bug in pgf parse and kparse 2015-04-22 18:49:49 +00:00
prasanth.kolachina b18669992d README for Python translation pipeline 2015-04-22 13:14:26 +00:00
prasanth.kolachina 6ad6763a7f Cleaned up Python Translation pipeline 2015-04-22 11:30:26 +00:00
aarne 9a79889511 some probabilities of structural words used as nouns lowered 2015-04-22 07:37:14 +00:00
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