Commit Graph

8620 Commits

Author SHA1 Message Date
kr.angelov
698329f469 bugfix in the pattern matching compiler and a number of other fixes that I somehow did not push before 2014-09-29 15:00:04 +00:00
kr.angelov
0d08417efe bugfix in the RET instruction 2014-09-29 13:04:49 +00:00
aarne
cb79e8667e 6000 new words in DictionaryChi from Wiktionary 2014-09-29 12:35:10 +00:00
kr.angelov
e2477d87bb fix in DictionaryEng.gf 2014-09-29 07:42:40 +00:00
kr.angelov
51320fad1b fix in DictionaryBul.gf 2014-09-29 07:40:46 +00:00
kr.angelov
1d7e976560 enlarge the code window in pgf_jit_gates to ensure enough space on 64-bit machines 2014-09-29 07:34:32 +00:00
aarne
a757798656 checked that course of value tables (table P [...]) have the correct number of values w.r.t the type P. This was previously not checked, and caused hard-to-find run-time errors. 2014-09-27 17:14:35 +00:00
aarne
790e1f9ef2 fixed a bug causing too much gluing of Ita,Spa nominal forms with their complements; should only apply to clitic pronouns. And an even worse bug in Fre, due to the use of course-of-value tables in DiffFre (instead of full explicit tables). After the present participle was added to Romance verbs, these tables lacked one form, but this was not reported by the type checker. The result was garbled linearizations and, in some cases, run-time errors in the PGF interpreter. Something to fix in the concrete syntax type checker of course. 2014-09-27 11:17:52 +00:00
inari
a4bd9998fc fix beer_N in LexiconEst 2014-09-27 09:59:29 +00:00
hallgren
5ca06495b1 translator/DictionarySwe.gf: remove bogus variant "hinna" from film_V2 2014-09-26 16:04:55 +00:00
aarne
704eac5309 gerunds and participles in TranslateDut, a first version 2014-09-26 15:15:21 +00:00
aarne
5f4f1b30a3 Dictionary fixes for Swe nd Fin 2014-09-26 14:48:28 +00:00
aarne
216281cd06 command for AppEngFin 2014-09-26 14:48:09 +00:00
aarne
38ae2430b5 gerund and participle translations for Fre,Ita,Spa and Ger. Some a bit questionable. 2014-09-26 13:26:01 +00:00
aarne
56c50bfb39 more verb constructions in Translate (Eng,Swe,Fin): without moving, by moving, in order to move 2014-09-26 06:44:03 +00:00
aarne
e1538f762f participles and gerunds in TranslateFin. "vaimoni ostama olut on hyvää", "työn löytäminen on vaikeaa" etc 2014-09-25 21:01:17 +00:00
aarne
b4104b90e1 enabled some gerunds and participles in Translate, implemented for Eng and Swe. Commented out which_N, a source of errors. 2014-09-25 17:56:22 +00:00
aarne
591b56a7e2 added participles to Scandinavian VP 2014-09-25 17:00:59 +00:00
kr.angelov
2cf55a0631 the literals API is now exposed in Python 2014-09-25 11:59:40 +00:00
kr.angelov
3064fc737e switch off the debugging of the JIT compiler which I had turned on accidentally. silence two harmless warnings 2014-09-25 11:44:45 +00:00
kr.angelov
25e8e4ce5a now a complete JIT compiler and ByteCode compiler for the def rules in the abstract syntax. there might be some bugs yet to be found, meta variables and computation under lambda is only partially supported 2014-09-25 10:35:06 +00:00
aarne
f6a9a88cef Fin: replaced a few selections of NPCase Nom by NPSep to work properly with prodrop: pronouns should not be dropped in those cases. This moreover gave rise to lots of spurious ambiguities. 2014-09-25 07:02:15 +00:00
hallgren
5cda60d36f examples/app/Makefile2: add missing -probs flag 2014-09-23 12:20:44 +00:00
hallgren
eadc012b7a doc/gf-developers.t2t: add a note about how to create OS X Installer packages 2014-09-23 12:18:17 +00:00
hallgren
38811b06c9 haskell-bind/PGF2.hsc: unexport functions that break referential transparency
loadConcr, unloadConcr and addLiteral modify the Concr structure as a side
effect. This means that other functions with a Concr argument (e.g. parse
and linearize) are no longer pure.

Possible solutions:

1. Don't try to hide the imperative nature of the C run-time system: remove
   all uses of unsafePerformIO and let all functions operate in the IO monad.

2. Don't export functions with side effects. Perhaps the desired functionality
   of loadConcr, unloadConcr and addLiteral can be folded into readPGF.
   The Concr structures can then treaded as immutable after after the
   readPGF function returns...
2014-09-22 14:05:17 +00:00
inari
8e00794dac fix inflection of hetki ; add negative counterparts for kuitenkin ; fix wee and weed 2014-09-21 23:22:53 +00:00
inari
3b0aebc38c alt forms for next and year & couple of new PNs in DictionaryFin 2014-09-21 22:45:23 +00:00
inari
884a1e107c bunch of medical terms in DictionaryFin 2014-09-20 19:44:28 +00:00
kr.angelov
4d6994ffde forgot to type check the type of a typed let expression 2014-09-17 22:25:08 +00:00
kr.angelov
4f23ed2289 appForm now skips over Typed expressions 2014-09-17 22:02:36 +00:00
kr.angelov
ff45e7dd3a the type checker for the abstract syntax now allows let expressions in def rules, since they are easily compilable to byte code. This fails in the Haskell runtime since let expressions are not allowed as abstract syntax expressions. 2014-09-17 21:59:45 +00:00
kr.angelov
db68456727 fix a portability problem with the Python binding (found by Prasanth) 2014-09-17 16:12:40 +00:00
aarne
a2936678e7 fixed anschauen in LexiconGer, pointed out by DV 2014-09-17 05:30:52 +00:00
kr.angelov
e308f384de dummy jit_base_tail_finishr for x86_64. 2014-09-16 12:29:35 +00:00
aarne
240287b6f6 enabled VP-valued rules for V2V, V3, etc in App. Improve quality with less loss of speed than VPSlash-valued original rules. 2014-09-15 16:10:18 +00:00
aarne
55621783cb fixes in DictionarySwe - mainly missing words 2014-09-15 15:16:31 +00:00
kr.angelov
67d30ce861 fix screen_N in Swedish 2014-09-15 07:59:04 +00:00
aarne
b492666c0e Finnish NPSep form, to avoid empty Nominative forms in wrong places in case of pro drop. 2014-09-15 07:17:11 +00:00
aarne
8b95b86b0a Romance particle verbs: show the p field also in infinitives 2014-09-15 06:33:08 +00:00
aarne
dcc3d70ac5 added field p for particle in romance Verb. This was already assumed in Dictionary, and created many spurious ambiguities when parsing Romance languages in the wide-coverage translation, because p was simply ignored. 2014-09-14 14:30:08 +00:00
aarne
6d15353a84 enabled many more functions, in particular verb patterns, in App, to increase translation quality. This comes with 30% longer translation time with my benchmark but should still be OK. 2014-09-14 08:43:21 +00:00
aarne
e8cc5856f4 reverted the pre-variant of vocatives in TranslateEng, because the definition of Voc messes it up. Will have to return to this. 2014-09-14 08:20:09 +00:00
aarne
372e216389 in TranslateEng, made vocative possible both before and after the phrase. Should be so in other languages as well. There should also be an optional comma, but this is not right if the vocative is empty - which means that empty vocatives are probably not the right thing to have 2014-09-12 12:37:53 +00:00
aarne
19965c0b60 fixes in DictionarySwe 2014-09-12 12:25:37 +00:00
aarne
7ddf965061 separate independent (NP without CN) forms of IndefArt and DefArt in Romance languages. The choice of words was unsure in some cases, but at least this eliminates the problem of empty NP's translating to "ones". 2014-09-12 11:59:50 +00:00
aarne
6b47126c8c GF index: shortcut links to Android app, Best practices, REMU, and new Android development instructions 2014-09-12 09:01:43 +00:00
aarne
aff3405b8d fixes in LexiconGer and DictGer proposed by Denny Vrandecic 2014-09-11 19:36:53 +00:00
kr.angelov
923ad6b3c0 a major revision of the bytecode generator and JIT compiler. the effect is that now we can compute with lambda functions and with true tail recursion 2014-09-11 15:39:39 +00:00
hallgren
a0d75d0ea8 gf.cabal: add missing c-sources for the Haskell binding to the C run-time library 2014-09-11 11:53:07 +00:00
hallgren
7cf87a3441 Setup.hs: don't ask darcs for the version history if _darcs is not present
This is to avoid a (harmless) error message from darcs when compiling sources
obtained e.g. from github.
2014-09-11 11:47:17 +00:00