1
0
forked from GitHub/gf-core
Commit Graph

8050 Commits

Author SHA1 Message Date
aarne
2f06675db1 corrected some prepositions in DictionaryGer 2014-04-02 07:48:18 +00:00
kr.angelov
d110df7a1f initial binding to Prolog for the C runtime 2014-04-02 10:03:19 +00:00
aarne
c328a7fd4a next 320 BNC words checked in Swe 2014-04-01 17:23:17 +00:00
aarne
b9b7ed9ccc use chunking before morpho lookup in backup parsing ; show results with unknown linearizations in darkest red 2014-04-01 16:24:35 +00:00
hallgren
5d7c894380 translator/DictionarySwe.gf: fix for tasty_A, mkA "god" "gott" 2014-04-01 14:38:16 +00:00
aarne
cdd7adef64 split the two senses of can_VV in Dictionary, as they are split in Structural 2014-04-01 13:57:42 +00:00
aarne
fb202420dd changed the definition of MassNP in Romance so that subject position doesn't return the partitive but the definite article. Thus "wine is good" becomes "le vin est bon" and "I drink wine" becomes "je bois du vin". Partitive on subject position seems incorrect, and the definite article the best choice when translating mass terms without articles on the subject position. 2014-04-01 13:03:35 +00:00
hallgren
d262bb0e48 Bug fix for pattern macros in pre{}
This bug was introduced sometime between 2013-08-21 and 2013-11-01 and caused
the function convertTerm in GF.Compile.GeneratePMCFG to encounter a EPatt where
it expected Strs. I fixed it by applying the function getPatts (from the old
partial evaluator) to the pattern.
2014-04-01 10:54:41 +00:00
aarne
0ce50f02b6 vice president and some other words 2014-03-31 19:46:05 +00:00
aarne
75b7e6105d Hin and Bul keyboards in app restored 2014-03-31 19:45:41 +00:00
hallgren
713012001c Wide coverage demo web app: green translations from Phrasebook.pgf
The demo web app now show translations from Phrasebook.pgf in green before
translations from Translate8.pgf, which can be yellow or red.
2014-03-31 15:28:14 +00:00
aarne
8a2ee67ad5 room_N in DictionaryChi 2014-03-31 14:30:31 +00:00
aarne
57c44d2af5 comment on possible bug in PredFin 2014-03-31 12:27:47 +00:00
aarne
c77b137c14 instructions for generating lexicon spreadsheets 2014-03-31 07:13:02 +00:00
aarne
154a65cc3e checked top-1000 BNC senses in Swe, with some split senses added to Dictionary and DictionaryEng. Wrote bnc-dict-log.txt to describe the procedure, which should be reproducible to other languages now. 2014-03-30 16:28:40 +00:00
aarne
e96d222c41 the top 7828 words in British National Corpus expanded to Dictionary fun's, in frequency order. A natural checklist for every Dictionary. 2014-03-30 09:28:54 +00:00
aarne
a28fd18ee2 added ca. 200 new Dictionary fun's from BNC top-6000 list. Seems to be much better quality than Google 1-grams. 2014-03-30 09:25:29 +00:00
aarne
649924352a checked the top-1000 words of Google 1-grams in DictionarySwe, splitting senses of 70 words and adding the split senses to abstract Dictionary and DictionaryEng 2014-03-29 20:15:41 +00:00
aarne
b5f4e308a3 around 1000 new abstract functions in Dictionary and DictionaryEng extracted from the top-10000 Google unigrams. Forthcoming in Swe and other languages soon. 2014-03-29 17:39:46 +00:00
aarne
0869181af9 paradigm for us_britishV variants 2014-03-29 17:38:48 +00:00
aarne
19881e6768 corrected the inflections of the verbs söka and behöva in DictionarySwe 2014-03-29 13:44:51 +00:00
inari
cd5631058e Fixes in Swe dictionary + add first_Adv to all dictionaries 2014-03-29 13:33:36 +00:00
inari
1b08baaf28 fixes in DictionarySwe 2014-03-28 21:10:14 +00:00
inari
e82e1a36a7 Couple of fixes in DictionarySwe 2014-03-28 18:40:40 +00:00
hallgren
75011c8efa Wide coverage demo web app improvements
+ Adapt language selection menus to the languages supported by the grammar.
+ Add translation quality colors to the links to alternative translations.
+ Also added more country codes in langcode.js (needed for speech synthesis
  voice selection).
2014-03-28 14:56:56 +00:00
kr.angelov
12448ef4f0 a couple of words checked in DictionaryBuk 2014-03-28 14:18:43 +00:00
kr.angelov
dbad21daba fixes in the dictionaries 2014-03-28 14:09:09 +00:00
inari
5b730e090f Add constructions with motion verbs and direction adverbs for Eng,Fin,Fre,Ger,Swe in Construction 2014-03-28 12:34:07 +00:00
aarne
b3b1d0dff3 added the phrase "what time is it" in ten languages. For simplicity, this is a Greeting and not a Question, which means that it has a variant appearing with ! rather than ? , similar to "how are you". Correcting this would require analysing the structure of the phrase so that it can be constructed in QS. 2014-03-28 08:02:14 +00:00
aarne
ff113da8ae corrected the default of Ita mkV "...ere" to temere_20, which is considered the regular 2nd conjugation 2014-03-28 07:28:54 +00:00
hallgren
d46bdda103 Wide coverage demo web app: translation quality feedback with colors
The background color of the translation changes to pale green, yellow or red
according to the quality.

Two types of quality indications are supported:

+ From the grammar: linearizations starting with "+" or "*" are assumed to
  be of high or low quality, respectively.
+ From the parse tree: if the root function is "?", then the translation is
  assumed to be of low quality.

If no quality indications are detected, medium quality is assumed.
2014-03-27 15:11:02 +00:00
hallgren
94bf87add9 support.js & gftranslate.js: improved handling of server errors
In support.js, the functions http_get_json, ajax_http_get_json
and ajax_http_post_json now calls the supplied error callback if the server
returns invalid JSON (e.g. because of a crash).

The function gftranslate.translate in gftranslate.js returns
a JSON value containing an error message (since it doesn't have an error
callback).

This should result in fewer situations where "nothing happens" and the user
doesn't know if it is beacuse the server is slow, or if there was an error.
2014-03-27 15:02:27 +00:00
inari
4f4905b353 Add containers to Construction*.gf + missing saturday_Weekday in the abstract 2014-03-26 16:06:30 +00:00
inari
ccfd229fe6 Add need_V* to DictionaryFre (nécessiter, TODO add multi-word verb constructor for mkV for "avoir besoin de") 2014-03-26 14:34:45 +00:00
aarne
8b9431b60b ExtensionsSpa added 2014-03-25 16:30:41 +00:00
kr.angelov
709f5dfcd8 small fixes in the C runtime 2014-03-25 13:57:57 +00:00
kr.angelov
762a6a8845 fixes in the Bulgarian dictionary 2014-03-22 08:00:43 +00:00
kr.angelov
5f3b35a5f9 refactor the compilation of CFG and EBNF grammars. Now they are parsed by using GF.Grammar.Parser just like the ordinary GF grammars. Furthermore now GF.Speech.CFG is moved to GF.Grammar.CFG. The new module is used by both the speech conversion utils and by the compiler for CFG grammars. The parser for CFG now consumes a lot less memory and can be used with grammars with more than 4 000 000 productions. 2014-03-21 21:25:05 +00:00
kr.angelov
8695d8724d fixes in the Bulgarian dictionary 2014-03-21 10:52:40 +00:00
kr.angelov
b33c163068 added hasLinearization method in the Python binding 2014-03-20 14:48:47 +00:00
kr.angelov
132612365a fix in the Python binding which was forgoten after a change in the C runtime 2014-03-20 14:48:02 +00:00
aarne
49f0ca5659 any determineds in DictionarySwe 2014-03-20 08:09:28 +00:00
aarne
6ca0417596 corrected use of possess_Prep in Chi to avoid double "de" 2014-03-20 06:56:44 +00:00
aarne
1329ed7758 corrected Irreg verbs in DictionaryIta: over 700 occurrences 2014-03-19 21:54:35 +00:00
aarne
9231b49b8e added IrregIta with over 600 verbs 2014-03-19 21:22:05 +00:00
hallgren
6cc8557e6b gf -server: add a command to manually flush the PGF cache
This can be used if the cloud service seems slow, but it would probably
be better to automatically expire unused PGFs from the cache after some time.
2014-03-19 16:15:05 +00:00
aarne
fd8cf9af58 a darker red in translation app: dictionary lookup for each word, identity if lookup fails 2014-03-18 13:22:13 +00:00
aarne
22e3eb2223 Hin and Ger added to android app again 2014-03-18 10:21:53 +00:00
aarne
e45306b2d0 added tenses to RGLBaseHin 2014-03-18 10:21:29 +00:00
kr.angelov
bc81d163fb whitespace cleanup in the parser 2014-03-18 10:19:35 +00:00