Commit Graph

9683 Commits

Author SHA1 Message Date
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
aarne b456f921cf added Afrikaans to Setup: it had been missing for a while 2015-03-13 15:08:03 +00:00
aarne 93ead18b24 fixed path in TryAfr 2015-03-13 15:07:48 +00:00
aarne 309f94ca56 updated Setup and RGL status.html with Mongolian: now it compiles by default 2015-03-13 14:51:01 +00:00
hallgren 7c1be91839 Fix -path directives for Mongolian
+ Remove references to alltenses.
+ Remove references to ../../prelude
+ Add missing reference to ../common in mongolian/SymbolMon.gf
2015-03-13 14:41:30 +00:00
aarne 10d43a6e11 added a dummy SymbolMon to enable compilation of RGL 2015-03-13 14:11:01 +00:00
hallgren 3502750052 GF.CompileInParallel: fix a Win32 problem
Recognize \ in addition to / when extracting path components.
2015-03-13 13:48:14 +00:00
nyamaakaa 053f2377b2 complete RGL implementation for Mongolian by Nyamsuren Erdenebadrakh 2015-03-13 13:40:22 +00:00
hallgren 4ff30e6771 Wide Coverage Translation Demo: improved performance
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-11 17:53:25 +00:00
hallgren 9efbe0e47a GF.Server: request logging: increase length limit from 100 500 chars per field 2015-03-11 15:56:06 +00:00
aarne 02ed9cea8b DictionarySwe: kick_V2, mouse_N 2015-03-11 08:08:38 +00:00
aarne 3d49f98288 prepositional verbs added to DictionaryTha by a baseline heuristic 2015-03-10 15:21:09 +00:00
aarne 00e2f69853 generated TopDict for Thai 2015-03-10 15:13:39 +00:00
aarne 3ed8eb16ea some ChunkTha items ; subcat verbs in DictionaryTha guessed 2015-03-10 14:54:15 +00:00
krasimir 35c4b5f3eb remove the meta_item variable from the parse state 2015-03-06 15:18:50 +00:00
hallgren 82763282bb Simple Translation tool: add File menu command 'Open in Wide Coverage Translation Demo'
Just as a quick way to test different documents in the Wide Coverage
Translation Demo.
2015-03-06 12:04:17 +00:00
hallgren bc7500bd26 gf.cabal: increase idle time before full GC to 5 seconds
The builtin GHC RTS default is 0.3 seconds, which results in very bad
interactive behaviour when working with a large grammar in the GF shell.
2015-03-05 15:30:41 +00:00
krasimir d408c7df9f remove some more old code 2015-03-05 14:47:36 +00:00
krasimir 9d85f53002 removed some operations in GeneratePMCFG. They didn't work well with variants and are now obsolete with the new partial evaluator 2015-03-05 13:58:18 +00:00