1
0
forked from GitHub/gf-core
Commit Graph

9047 Commits

Author SHA1 Message Date
krasimir
4ff6728993 fix the missmatch between Int and CInt in the Haskell binding to the word alignment API. This was causing problems on 64-bit machines 2015-02-18 17:05:35 +00:00
krasimir
f3f47c7761 fix the callback for unknown words as well 2015-02-18 16:47:33 +00:00
krasimir
4ed41214e5 fix in the callback for names in the Haskell binding 2015-02-18 16:41:13 +00:00
krasimir
27a12ca9fb fix in the parser for callbacks in the middle of a word 2015-02-18 16:14:29 +00:00
hallgren
4bd568d8bf Wide Coverage Translation Demo: use App14.pgf, remove spaces from Chi, Jpn and Tha output 2015-02-18 13:58:49 +00:00
aarne
36b1c421a6 removing spaces from App output of Chi,Jpn,Tha to get nicer speech output (and of course follow the target lang conventions) 2015-02-17 18:11:20 +00:00
aarne
98cbd993ac App14 with Tha up and running! 2015-02-17 17:18:51 +00:00
aarne
7b933211d1 TranslateTha compiles with 39+ k words 2015-02-17 15:23:11 +00:00
aarne
1a39a54f7f DictionaryTha with 39k entries from panlex; needs clean-up to compile 2015-02-17 15:13:37 +00:00
aarne
5fd4d5ede1 stub for TranslateTha, with Dictionary from Lexicon and Structural 2015-02-17 14:38:54 +00:00
hallgren
1dbe588497 Restore compatibility with ghc-7.4
With ghc-7.4 'import M hiding (x)' causes an error if M does not export x...
2015-02-16 15:41:38 +00:00
hallgren
2ce3e954fd Changes for compatibility with ghc-7.10-rc2
2 modules: Name clashes caused by Applicative-Monad change in Prelude
2 modules: Ambiguities caused by Foldable/Traversable in Prelude
2 modules: Backwards incompatible changes in time-1.5 for defaultTimeLocale
9 modules: {-# LANGUAGE FlexibleContexts #-} (because GHC checks inferred types
           now, in addition to explicitly given type signatures)

Also silenced warnings about tab characters in source files.
2015-02-16 15:05:06 +00:00
andrea.christina.unger
d21d4f442a ß -> ss (according to new spelling) 2015-02-11 16:40:58 +00:00
hallgren
0058a79a8f PGF.Haskell: adding operators for selections from tables 2015-02-12 16:09:33 +00:00
hallgren
43a873b53f Translating linearization functions to Haskell: more simplifications
+ Some additional simplifying rewrites.
+ Use an intermediate representation for Haskell types, for separation of
  concerns and cleaner code.
+ Pretty printer layout tuning
+ Code cleanup.
2015-02-12 16:05:48 +00:00
hallgren
686f570660 Translating linearization functions to Haskell: simplify the generated Haskell code
Introduced an intermediate representation for the generated Haskell expressions.
This allows pretty printing concerns to be separated from conversion concerns,
and makes it easy to apply some simplifying rewrites to the generated
expressions, e.g.

	[x] ++ [y]    ==> [x,y]
	pure f <*> x  ==> f <$> x
	f <$> pure x  ==> pure (f x)
	join (pure x) ==> x
2015-02-11 23:50:19 +00:00
kr.angelov
f527579c46 different words in Bulgarian for egoist/egotist and related 2015-02-11 13:19:03 +00:00
kr.angelov
e6f51d7ec6 fix in the JIT compiler that would hopefully make it work on iOS 2015-02-11 13:07:06 +00:00
kr.angelov
4cd5116514 fix self_N in DictionarySwe.gf 2015-02-11 09:16:45 +00:00
kr.angelov
d053a84b82 add gloat_V in DictionaryBul.gf 2015-02-11 09:11:16 +00:00
hallgren
ad8b6429ec Translating linearization functions to Haskell: support for variants
By adding the flag -haskell=variants to the command line, GF will now generate
linearization functions in Haskell that support variants. Variants are
represented as lists in Haskell.

Variants inside pre { ... } expressions are still ignored.

TODO: apply some monad laws to generate more compact code (using an
intermediate representation of the generated Haskell code, instead of
pretty printing directly from the GF code).
2015-02-09 16:24:33 +00:00
aarne
d9032f8764 news on Summer School on the main page 2015-02-09 09:35:51 +00:00
aarne
0a97989935 started modules for printing dictionary contents for a database 2015-02-09 07:18:28 +00:00
aarne
292cada649 added ExtraSpa.UseComp_estar for uses of estar instead of copula 2015-02-05 07:55:20 +00:00
inari
9a4970fd7a fixes: carry_N, ripple*, begin* 2015-02-02 09:13:46 +00:00
kr.angelov
ad4ef7c99e fixes in DictionaryBul 2015-02-01 13:49:25 +00:00
kr.angelov
43db38832d split spring_N into four senses 2015-02-01 13:48:49 +00:00
kr.angelov
c1ec4f3217 merge afterward_Adv with afterwards_Adv 2015-01-30 13:28:48 +00:00
kr.angelov
1baba82fe5 added hasLinearization in the Haskell binding 2015-01-30 13:05:57 +00:00
kr.angelov
ceb01afa90 merge rumor_N with rumour_N 2015-01-30 12:39:52 +00:00
kr.angelov
76c6d28e73 merge absinth_N with absinthe_N 2015-01-30 09:26:35 +00:00
kr.angelov
3128bd2f85 merge abridgement_N with abridgment_N 2015-01-30 09:19:06 +00:00
kr.angelov
7146b624dc a few fixes in DictionaryBul 2015-01-30 09:04:57 +00:00
kr.angelov
3f4d0aeb86 remove dimensions_N from the dictionaries 2015-01-28 11:23:16 +00:00
aarne
31c286f532 Phrasebook compiled for Japanese; weather_N in DictionaryGer 2015-01-27 13:18:44 +00:00
aarne
3c13e1abb0 added Japanese to Android app. Had to change target=android-20 to 21. 2015-01-21 22:20:25 +00:00
aarne
8e19e201d3 Liza's TopDictionary fixes transferred to DictionaryJpn 2015-01-21 20:54:09 +00:00
lizazim
5601913f8a Jpn21.01.15 2015-01-20 23:28:28 +00:00
hallgren
28803ba322 Wide Coverage Translation Demo: use App13.pgf, adding support for Japanese
Japanese uses the same lexer as Chinese, i.e. every character is a separate
token.
2015-01-21 16:02:37 +00:00
hallgren
ed502c490c PGF2: fixes for named entity callback function 2015-01-21 13:54:48 +00:00
hallgren
614f9f8663 examples/phrasebook/Makefile: include Jpn in 'make forApp' 2015-01-21 12:16:57 +00:00
hallgren
ec8b4fec93 PGF2 & PGFService: enable callbacks for named entities and chunks in the c-parse & c-translate web requests 2015-01-21 10:41:12 +00:00
kr.angelov
60cb95258b fix conflicts 2015-01-21 08:35:20 +00:00
kr.angelov
07eb8fec26 added functionType in the Haskell API to the C runtime 2015-01-20 14:45:02 +00:00
kr.angelov
e0a0ca49e5 other fixes in DictionaryBul.gf 2015-01-20 16:15:56 +00:00
kr.angelov
bca7042d33 remove best_A and than_A from the Dictionaries 2015-01-20 16:02:16 +00:00
kr.angelov
04d92c4b47 fix maiden_A in Bulgarian 2015-01-20 15:57:16 +00:00
hallgren
7577de236f PGF2 & PGFService: work in progress on callbacks for nerc & chunks 2015-01-20 14:57:52 +00:00
aarne
9207b45359 of_Prep in DictionaryJpn guessed as possessive 2015-01-20 13:38:08 +00:00
hallgren
4372b47d2a PGF2: introduced some type synonyms to make type signature more readable 2015-01-20 12:57:33 +00:00