aarne
2552b859fd
ad hoc overloading: a new way to deal with name resolution conflicts. Previously the renamer warned if there was e.g. an unqualified reference to mkAdv, which could come from either Syntax or Paradigms. The renamer picked randomly one of the alternatives, which then often failed in type checking. Now, all candidates are collected into a new structure AdHocOverload [Term], which is accessed by the type checker to make the choice based on the type of the constant. This eliminates some of the warnings and some of the error due to wrong choices. In some rare cases, the inherited constants have the same type, which cannot be resolved by overloading. In such cases, the type checker does the same as the renamer did before: pick the "first" option (i.e. the one that happens to be the first in the list returned by the renamer) and issues a warning. In this patch, only a couple of lines are changed. The typechecker (RConcrete) has more substantial changes, and will be recorded as the next patch.
2014-02-01 13:10:36 +00:00
aarne
4cc72722a6
missing import in CatLat causing an eval error with "no reason given"; commented out PhraseLat.VocNP that gives a mysterious PMCFG generation error
2014-02-01 13:03:08 +00:00
aarne
1a71260608
duplicated param type definition in TenseScand removed
2014-02-01 12:51:54 +00:00
aarne
1df85aa1fe
fixed an ambiguous reference in CatAmh.
2014-02-01 12:47:08 +00:00
aarne
4404e9c899
another type error revealed by record extension checking, in Est.
2014-02-01 12:30:40 +00:00
aarne
c727f7c85c
typo in Concrete type checker: when type checking <e : t>, return annotated e and not e itself. Fixed in RConcrete, which should soon replace Concrete; and hopefully will be replaced by some cleaner code soon, such as ConcreteNew which has been under construction for quite some time.
2014-01-31 21:16:07 +00:00
aarne
e97f31c175
found one type error in the whole RGL with the new (experimental) type checker, and fixed it.
2014-01-31 21:15:21 +00:00
aarne
4d4327ad8a
PredicationSwe now uses record updates; PredicationSwO is old-style
2014-01-31 20:44:34 +00:00
aarne
e19a28f46c
experimental type checker module GF.Compile.TypeCheck.RConcrete.hs with record updates enabled by ** expressions. Can be changed back to Concrete.hs by just changing one import command in GF.Compile.CheckGrammar.hs. The worst thing that *should* happen with the new type checker is that some old code is detected to be invalid, which happens if it contains a type-incompatible record extension, e.g. {x = "foo"} ** {x = 1}. Previously such errors were silently ignored. A set of test runs detected one such error in the RGL, which was corrected. On the positive side, the new type checker now enables record updates in the natural way: R ** {x = 1} will give value x = 1 overshadowing any value of x in R (provided the expected type of x is Int). lib/src/experimental/PredicationSwe.gf illustrates this, as opposed to PredicationSwO.gf which has to use old-style copying of even the unchanged record fields.
2014-01-31 20:28:25 +00:00
hallgren
82fd8c9f94
gf-server.cabal: flag to include C run-time support in the FastCGI PGF service
2014-01-31 16:11:41 +00:00
kr.angelov
f7b978f063
fix in the bracketedLinearize in Haskell
2014-01-31 08:52:32 +00:00
aarne
8b1b17c33b
abstracting complement and extension insertion in the test file PredicationSwR.gf
2014-01-31 08:13:28 +00:00
aarne
4e126a1356
an example of how grammars look with record updates: PredicationSwR (as compared with PredicationSwe)
2014-01-30 06:50:57 +00:00
inari
bdf297d0b1
changes to pools in haskell bindings
2014-01-29 16:02:07 +00:00
john.j.camilleri
38d354c199
RGL browser: add recent modules list
2014-01-29 13:21:52 +00:00
john.j.camilleri
c6703f267f
Maybe.gf: add isJust function (synonym for exists)
2014-01-29 11:17:50 +00:00
john.j.camilleri
3b12abb42e
RGL browser: add ability to search for module name
2014-01-29 10:53:07 +00:00
aarne
0900ea04ed
restored the a.s field in infinitives in PredicationSwe, needed in linearization.
2014-01-29 08:02:44 +00:00
aarne
65cc186f13
PredicationSwe: suppress tense string in infinitives to change spurious ambiguity to a metavariable. Maybe a better solution, but to be seen.
2014-01-28 21:42:32 +00:00
hallgren
f1c4b353e3
Wide coverage translation web demo improvements
...
+ Add lexing/unlexing
+ Add a button to swap input and output
+ Minor layout adjustments
2014-01-28 16:51:21 +00:00
hallgren
4e6db5d621
PGFService.hs: fix a type ambiguity when compiling without C run-time support
2014-01-27 16:46:48 +00:00
hallgren
ca72fa94eb
PGFService.hs: add a cache for C run-time parse result and a start offset parameter
...
Cached parse results are discarded when they have been unused for 10 minutes.
2014-01-27 16:32:09 +00:00
hallgren
1d251b2395
gf -server: fix a redirection bug...
...
...that was introduced with the recent changes to the handling of the
current working directory
2014-01-27 16:30:03 +00:00
aarne
fbcb66fd19
Adv added to Cl instead of VP reduces ambiguity but needs some work to restore coverage.
2014-01-27 14:11:47 +00:00
aarne
1db9dfec8c
typos and name changes in PredicationSwe
2014-01-27 12:43:32 +00:00
aarne
1db4f8d456
commented PredicationSwe with todo's and made some abstractions to enable a functor
2014-01-27 07:53:05 +00:00
aarne
7c8807279e
Predication: participles of V's as AP's.
2014-01-26 22:06:39 +00:00
aarne
a7e80c218c
added passives to Predication - forms selected from tables as the first step of VP formation
2014-01-26 18:46:20 +00:00
aarne
a33e0da323
set of predication test examples; support for N-complement verbs such as "we were promoted to professors"
2014-01-26 11:27:56 +00:00
aarne
dc70c946f5
PredicationSwe: omission of auxiliary in compound tenses, subordinate and infinitive
2014-01-26 10:43:03 +00:00
aarne
11395b50f0
compound tenses in PredicationSwe
2014-01-25 17:35:24 +00:00
aarne
4a245c1253
completing all verb subcats and dealing with subject/object control; only fully implemented in PredicationSwe
2014-01-25 11:51:52 +00:00
aarne
42a28523c0
VP coordination, focus in QCl in Predication. Swe is close to correct but in Eng details with auxiliaries have to be fixed.
2014-01-24 13:57:44 +00:00
hallgren
39a0d9b668
gf -server: allow multiple PGF service requests to be handled in parallel
...
PGF service requests are stateless and can run in parallel, but some other
requests handled by the server are not and might even change the current
working directory temporarily, and this affects all threads, so it is
important that the PGF service requests access PGF files by absolute paths.
2014-01-24 13:49:02 +00:00
kr.angelov
fbc8bb6769
fix in the Haskell runtime
2014-01-24 08:34:55 +00:00
aarne
7d41ff0b9f
testing Predication with Swe
2014-01-23 21:20:52 +00:00
aarne
2c71e31a64
generalized some types in Predication so that the same fun's now cover slash propagation ("who does she force us to love") as well
2014-01-23 17:50:30 +00:00
hallgren
1189a13840
gf.cabal: bump version number to 3.5.12
2014-01-21 16:30:01 +00:00
aarne
8c1128c16c
experimental Predication with dependent types - promising, but far from finished
2014-01-23 16:12:28 +00:00
hallgren
caacaa9d8b
demos/translation: add preliminary online demo,
...
but it is not ready to be widely advertised yet, e.g. lexing and unlexing is
missing.
2014-01-23 14:56:52 +00:00
aarne
7111684795
removed obsolete DictEng??? grammars and marked Parse as obsolete in Makefile
2014-01-22 15:00:16 +00:00
aarne
1ca7e33ea6
working through translator/Extensions with some reorganization and generalizations
2014-01-22 14:44:56 +00:00
aarne
fca176cbbf
new copy of DictionaryBul with phrasetable extensions
2014-01-22 14:44:22 +00:00
hallgren
7cf6391ee1
simple translator: Replaced 'GF Robust Parser' with 'GF Wide Coverage Translation'
...
The interface to the wide coverage translation is in js/gftranslate.js
and it assumes that the grammar is installed on the cloud server
as /robust/Translate8.pgf.
The list of supported languages is hardwired in gftranslate.js, since
there is no support for obtaining this info from the C run-time system
at the moment.
2014-01-21 16:47:23 +00:00
kr.angelov
db67c180a5
approximately 3500 new Bulgarian words extracted from the phrasetables for EuroParl
2014-01-21 16:51:56 +00:00
aarne
8a5717d38c
notes in Extensions
2014-01-21 15:23:02 +00:00
aarne
9b986255bf
completed Translate grammars for all 8 languages; a Makefile entry for them; updated doc/translation.html. What remains to do is to make the new documentation facilities (GF-driven, in the Documentation modules) available in the Android app, so that the Parse* modules can be retired from translation tasks.
2014-01-21 08:20:46 +00:00
aarne
370296c0ba
added Translate modules for Hindi
2014-01-21 07:26:53 +00:00
aarne
c20f5c3cea
removed paths to english in Translate modules
2014-01-21 07:26:17 +00:00
aarne
355777e0ca
added refactored TranslateFin. Starting to get confident that the refactoring is on the right track.
2014-01-20 21:52:14 +00:00