summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-04-26bug fix python examplesprasant.kolachina
2015-04-26Bug fix python examplesprasant.kolachina
2015-04-26Changes in lexerprasanth.kolachina
2015-04-24Bug fix in gf_utilsprasanth.kolachina
2015-04-22No debug messagesprasanth.kolachina
2015-04-22Minor bug in pgf parse and kparseprasanth.kolachina
2015-04-22README for Python translation pipelineprasanth.kolachina
2015-04-22Cleaned up Python Translation pipelineprasanth.kolachina
2015-04-22Examples for using Python bindingsprasanth.kolachina
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-21some translate.probs decreased ; fine-tuning in pgf-hsbind-transaarne
2015-04-20drop the dependency to FSTkrasimir
2015-04-20added getpagesize() definition for Windowskrasimir
2015-04-20fix in the Haskell binding for Windowskrasimir
2015-04-17pgf-hsbind-trans now with linearizeAllaarne
2015-04-17pgf-shell.hs: remove call to performGC and document the 'i' commandhallgren
2015-04-17gf -server: include grammar modification time in the info returned by /version hallgren
2015-04-17PGF web service: add command c-linearizeAll to obtain all variantshallgren
Implemented by calling the recently added function PGF2.linearizeAll.
2015-04-17added linearizeAll in the Haskell bindingskrasimir
2015-04-16bugfix in the java bindingkrasimir
2015-04-16simplified the example translator and renamed it to pgf-hsbind-trans aarne
2015-04-16Wide Coverage Translation Demo: length limit test uses # of source chars nowhallgren
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-16restored Cantonese as app Chi speech output: nothing else seems to workaarne
2015-04-15extended pgf-shell functionalities: batch translation with many trees, and ↵aarne
intervening context-dependent tree manipulation
2015-04-14Translating linearization functions to Haskell: move Haskell AST and pretty ↵hallgren
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-13updated app help file ; added backslash to ? in Thai keyboard xml to make it ↵aarne
compile
2015-04-09Wide coverage translation demo: show an informative error message for ↵hallgren
sentences that exceed the length limit
2015-04-07GF.Compile.ConcreteToHaskell: some documentationhallgren
2015-03-31GF.CompileInParallel: get rid of the cryptic 'thread blocked indefinitely in ↵hallgren
an MVar operation' message after compilation errors Instead show a message saying how many modules were affected by the compilation errors.
2015-03-24Wide Coverage Translation Demo: zoomable panable collapsible syntax treeshallgren
This is an experimental solution using JavaScript code from https://github.com/christos-c/tree-viewer, d3js.org and jquery.com.
2015-03-24PGF Service: add an option to return syntax trees in JSON formathallgren
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-22Wide Coverage Translation Demo: add a way to obtain inflection tableshallgren
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-19Wide Coverage Translation Demo: draw abstract trees and parse treeshallgren
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-19PGF service: add commands c-abstrtree and c-parsetreehallgren
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-19haskell-bind: add bindings to graphviz rendering functions for ↵hallgren
abstract&parse trees
2015-03-19fix the compilation of gu/mem.c on Windows. For now memory mapped pools on ↵krasimir
Windows are just not supported.
2015-03-18Wide Coverage Translation Demo: draw syntax treeshallgren
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-13GF.CompileInParallel: fix a Win32 problemhallgren
Recognize \ in addition to / when extracting path components.
2015-03-11Wide Coverage Translation Demo: improved performancehallgren
For improved performance, request only one translation from the server initially. When the user clicks on a translated sentense, request 9 more translations.
2015-03-11GF.Server: request logging: increase length limit from 100 500 chars per fieldhallgren
2015-03-11DictionarySwe: kick_V2, mouse_Naarne
2015-03-06remove the meta_item variable from the parse statekrasimir
2015-03-06Simple Translation tool: add File menu command 'Open in Wide Coverage ↵hallgren
Translation Demo' Just as a quick way to test different documents in the Wide Coverage Translation Demo.
2015-03-05remove some more old codekrasimir
2015-03-05removed some operations in GeneratePMCFG. They didn't work well with ↵krasimir
variants and are now obsolete with the new partial evaluator
2015-03-04GF.Compile.Compute.ConcreteNew: add dynamic table conversionhallgren
If the enumaration of table parameter values fails during the static traversal phase, try again in the dynamic computation phase, when the values of bound variables are known. This is necessary to properly deal with generic table construction in opers, like the ones found in prelude/Coordination.gf, e.g. consTable : (P : PType) -> ... = \P ... -> {s1 = table P {...} ; ... }
2015-03-04GF.Compile.Compute.ConcreteNew: some refactoring for readabilityhallgren
2015-03-02Fix to avoid "error (no reason given) OCCURRED IN optimizing <cat>"hallgren
GF.Compile.Optimize.mkLinReference can fail and cause this error because the helper function inside it applies msum to a list that might be empty (if there is a record type that does not contain a field of type Str). This means that it can return mzero::Err, i.e. Bad "error (no reason given)" which can slip through the top level test that only catches Bad "no string".
2015-02-27GF shell: fixed problems with previous change of the -retain flaghallgren
Because the prompt included the name of the abstract syntax, the loading of the PGF was forced even if -retain was used. Even worse, if an error occured while loading the PGF, it was repeated and caught every time the prompt was printed, creating an infite loop. The solution is to not print the name of the abstract syntax when the grammar is imported with -retain, which is the way things were before anyway.
2015-02-27GF shell: create a PGF also when the -retain flag is usedhallgren
The commands available in the shell after import -retain are now a superset of the commands available after import without -retain. The PGF is created lazily, so there should be no performance penalty if the PGF isn't needed. If there are errors, they won't be reported until a command that uses the PGF is entered.
2015-02-25PGFService: make the restriction on parallelism more effectivehallgren
Restrict the entire request handler instead of just the call to the C parser.