Commit Graph

9016 Commits

Author SHA1 Message Date
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
aarne
60ebb2349f inheriting Extra in ExtraJpnAbs 2015-01-19 09:00:57 +00:00
hallgren
240ba80209 Translating linearization functions to Haskell: move a common record type to PGF.Haskell
Move the Haskell representation of the common linearization type {s:T} to the
shared module PGF.Haskell, so that the same overloaded projection function
proj_s can be used for all concrete syntaxes.
2015-01-19 12:43:32 +00:00
lizazim
eab989c1d7 Jpn19.01.15 2015-01-19 09:51:31 +00:00
john.j.camilleri
993014699f Change minibar URL to cloud.gf.org in QuickStart page 2015-01-19 06:45:15 +00:00
aarne
34e19f423e added Swe mkDefDet to build determiners that take completely definite CN's 2015-01-18 18:02:11 +00:00
aarne
86d610bdd1 fixed position of adjective in Scand.UseComparA 2015-01-18 12:52:48 +00:00
inari
aab410b937 fixes in DictionaryFin 2015-01-15 11:10:38 +00:00
aarne
7c9eff32a6 generated todo/TopDictionaryJpn.gf for frequency-based checking 2015-01-14 17:34:12 +00:00
aarne
e443351330 AppJpn.gf and a Makefile entry for App13 which includes Japanese. Everything compiles now. But Japanese has no support for chunks, because ChunkFunctor does not typecheck for it due to its richer Utt type. 2015-01-14 17:22:47 +00:00
aarne
3afa54c465 added stubs for Jpn modules needed in TranslateJpn 2015-01-14 16:55:58 +00:00
hallgren
fbed7c19d5 gf.cabal: include PGF.Haskell 2015-01-14 14:53:28 +00:00
hallgren
0b114195aa Translating linearization functions to Haskell: better treatment of special tokens
Common code has been lifted out from the generated Haskell modules to
an auxiliary module PGF.Haskell, which is currently included in the
regular PGF library, although it is independent of it and probably belongs
in a separate library.

The type Str used by linearization functions is now based on a token
type Tok, which is defined in PGF.Haskell.

PGF.Haskell.Tok is similar to the type GF.Data.Str.Tok, but it has
constructors for the special tokens BIND, SOFT_BIND and CAPIT, and there is
a function

	fromStr :: Str -> String

that computes the effects of these special tokens.
2015-01-14 14:35:39 +00:00
lizazim
560d0a4384 Jpn13-01-15 2015-01-13 16:08:05 +00:00
aarne
5e70b381bc some fixes in DictionarySwe ; in ParadigmsSwe, a compounding function mkN : Str -> N -> N 2015-01-10 17:50:54 +00:00
francis.tyers
45b475e9a2 change translation of 'youth_N' (was 'youth hostel') 2015-01-10 09:31:27 +00:00
hallgren
4348ae40d2 Translating linearization functions to Haskell: add support for pre {...}
STILL TODO:

	- variants
	- better treatment of special tokens BIND, SOFT_BIND & CAPIT.
2015-01-08 17:52:45 +00:00
aarne
0631a9aa04 DictionaryJpn bootstrapped from Wiktionary. Does not compile yet, because there are undefined paradigms such as mkVS 2015-01-08 14:08:35 +00:00
lizazim
2bff57faca patchJpn 2015-01-07 23:44:49 +00:00
hallgren
6db2845375 Translating linearization functions to Haskell: use qualified names to avoid name clashes
All languages in the Phasebook can now be converted to compilable Haskell
code.

STILL TODO:
  
  	- variants
  	- pre { ... }
2015-01-07 16:13:28 +00:00
hallgren
51a233b2f1 Translating linearization functions to Haskell: significant code size reductions
+ Instead of including lists of parameter values generated by GF, generate
  code to enumerate parameter values (in the same order as GF). This seems
  to give a factor of 2-3 code size reduction in the Phrasebook (e.g.
  from 84MB to 25MB for Hin, from 338MB to 154MB for Fre).

+ Deduplicate table entries, i.e. convert "table [..,E,..,E,..,E,..]" into
  "let x = E in table [..,x,..,x,..,x,..]". This gives even more significant
  code size reduction in some cases, e.g. from 569MB to 15MB for
  PhrasebookFin.

All phrasebook languages can now be converted to compilable Haskell code,
except PhrasebookPes, which still has the name clash problem.
2015-01-06 19:57:24 +00:00
hallgren
1f60646f41 More work on translating linearization functions to Haskell
Many Phrasebook languages can now be converted to compilable Haskell code.
Some languages (Fre, Hin, Snd, Urd) generate too much Haskell code to be
practically useful (e.g. 338MB for Fre). One language (Fin) took too long
to convert to Haskell. One language (Pes) has problems with name clashes in
the generated Haskell code.

STILL TODO:

  	- variants
  	- pre { ... }
  	- reduce code duplication for large tables
	- generate qualified names to avoid name clashes
2015-01-06 16:48:03 +00:00
kr.angelov
6acf100ab1 fix the reference counting for callbacks in Python 2015-01-05 11:24:00 +00:00
kr.angelov
34e2a1b82d more words checked in Bulgarian 2014-12-30 10:24:57 +00:00
kr.angelov
c50afedec4 alternative plural form for tibia_N in English 2014-12-30 10:23:52 +00:00
kr.angelov
aa9cd64bb1 split correction_N into two senses. remove corrections_N 2014-12-30 10:21:54 +00:00
kr.angelov
08e2d9b968 typo in Dictionary.gf 2014-12-30 10:20:39 +00:00
kr.angelov
05819d824e random fixes and checked words in the dictionaries 2014-12-30 09:45:04 +00:00
kr.angelov
7598faed6c add tambourica_N in the dictionaries 2014-12-30 09:44:06 +00:00
kr.angelov
21f7ce30c2 split tambour_N into two senses 2014-12-30 09:42:27 +00:00
kr.angelov
8718562846 fixes in DictionarySwe 2014-12-29 14:31:05 +00:00
kr.angelov
d1ab21e513 split tectonic_A in two senses 2014-12-29 14:28:57 +00:00