adjusted the contents of Translate.gf: (1) inherit everything in Idiom since it is useful and cheap ; (2) inherit ComplVV and SlashV2V from Verb rather than Extensions, since it is more efficient and already available for all languages. Actually the previous version didn't have these functions at all, which affected the quality quite a bit.

This commit is contained in:
aarne
2014-04-09 09:40:43 +00:00
parent edcb328b70
commit 6fc7271950
12 changed files with 30 additions and 56 deletions

View File

@@ -7,22 +7,23 @@ abstract Translate =
Numeral, Numeral,
Conjunction, Conjunction,
Verb - [ Verb - [
SlashV2V, PassV2, ComplVV, -- to be generalized PassV2, -- generalized to VPSlash and agents
UseCopula ---- overgenerating ?? -- SlashV2V, ComplVV, -- generalized. But (1) more expensive (2) not available for all languages
UseCopula ---- overgenerating, unnecessary
], ],
Adverb, Adverb,
Phrase, Phrase,
Sentence, Sentence,
Question, Question,
Relative, Relative,
Idiom [NP, VP, Cl, Tense, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP], ---- why only these? Idiom,
Symbol [PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP], ---- why only these? Symbol [PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP], ---- why only these?
Chunk, Chunk,
Construction, Construction,
Extensions - [VPI,VPS], Extensions - [VPI,VPS,SlashV2V,ComplVV],
Dictionary, Dictionary,
Documentation Documentation

View File

@@ -12,17 +12,14 @@ concrete TranslateBul of Translate =
ConjunctionBul, ConjunctionBul,
VerbBul - [ VerbBul - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbBul, AdverbBul,
PhraseBul, PhraseBul,
SentenceBul, SentenceBul,
QuestionBul, QuestionBul,
RelativeBul, RelativeBul,
IdiomBul [ IdiomBul,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
-- ConstructionBul, -- ConstructionBul,
DocumentationBul, DocumentationBul,

View File

@@ -12,7 +12,7 @@ concrete TranslateChi of Translate =
VerbChi - [ VerbChi - [
UseCopula, -- just removed UseCopula, -- just removed
SlashV2V, PassV2, ComplVV, -- generalized PassV2, -- generalized
CompAP, AdvVP -- Chi exceptions CompAP, AdvVP -- Chi exceptions
], ],
AdverbChi, AdverbChi,
@@ -22,10 +22,7 @@ concrete TranslateChi of Translate =
QuestCl -- Chi exception QuestCl -- Chi exception
], ],
RelativeChi, RelativeChi,
IdiomChi [ IdiomChi,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
ConstructionChi, ConstructionChi,
DocumentationChi, DocumentationChi,

View File

@@ -12,8 +12,8 @@ concrete TranslateEng of Translate =
], ],
ConjunctionEng, ConjunctionEng,
VerbEng - [ VerbEng - [
UseCopula, -- just removed UseCopula, -- just removed: not needed
SlashV2V, PassV2, ComplVV, -- generalized in Extensions PassV2, -- generalized in Extensions
ComplVS, SlashV2S, ComplSlash -- Eng exceptions ComplVS, SlashV2S, ComplSlash -- Eng exceptions
], ],
AdverbEng, AdverbEng,
@@ -23,7 +23,7 @@ concrete TranslateEng of Translate =
], ],
QuestionEng, QuestionEng,
RelativeEng - [IdRP], RelativeEng - [IdRP],
IdiomEng [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP], IdiomEng,
ConstructionEng, ConstructionEng,
DocumentationEng, DocumentationEng,

View File

@@ -15,17 +15,14 @@ concrete TranslateFin of Translate =
ConjunctionFin, ConjunctionFin,
VerbFin - [ VerbFin - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbFin, AdverbFin,
PhraseFin, PhraseFin,
SentenceFin, SentenceFin,
QuestionFin, QuestionFin,
RelativeFin, RelativeFin,
IdiomFin [ IdiomFin,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
ConstructionFin, ConstructionFin,
DocumentationFin, DocumentationFin,
@@ -41,7 +38,7 @@ flags literal=Symb ; coding = utf8 ;
-- the overrides ----- -- the overrides -----
lin lin
UsePron p = G.UsePron (E.ProDrop p) | G.UsePron p ; UsePron p = G.UsePron p | G.UsePron (E.ProDrop p) ;
PossPron p = E.ProDropPoss p | G.PossPron p ; PossPron p = G.PossPron p | E.ProDropPoss p ;
} }

View File

@@ -11,7 +11,7 @@ concrete TranslateFre of Translate =
ConjunctionFre, ConjunctionFre,
VerbFre - [ VerbFre - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbFre, AdverbFre,
PhraseFre, PhraseFre,
@@ -20,10 +20,7 @@ concrete TranslateFre of Translate =
QuestCl,QuestIAdv -- french-specific overrides QuestCl,QuestIAdv -- french-specific overrides
], ],
RelativeFre, RelativeFre,
IdiomFre [ IdiomFre,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
ConstructionFre, ConstructionFre,
DocumentationFre, DocumentationFre,

View File

@@ -11,17 +11,14 @@ concrete TranslateGer of Translate =
ConjunctionGer, ConjunctionGer,
VerbGer - [ VerbGer - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2
], ],
AdverbGer, AdverbGer,
PhraseGer, PhraseGer,
SentenceGer, SentenceGer,
QuestionGer, QuestionGer,
RelativeGer, RelativeGer,
IdiomGer [ IdiomGer,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
ConstructionGer, ConstructionGer,
DocumentationGer, DocumentationGer,

View File

@@ -12,17 +12,14 @@ concrete TranslateHin of Translate =
ConjunctionHin, ConjunctionHin,
VerbHin - [ VerbHin - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbHin, AdverbHin,
PhraseHin, PhraseHin,
SentenceHin, SentenceHin,
QuestionHin, QuestionHin,
RelativeHin, RelativeHin,
IdiomHin [ IdiomHin,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
-- ConstructionHin, -- ConstructionHin,
DocumentationHin, DocumentationHin,

View File

@@ -11,17 +11,14 @@ concrete TranslateIta of Translate =
ConjunctionIta, ConjunctionIta,
VerbIta - [ VerbIta - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbIta, AdverbIta,
PhraseIta, PhraseIta,
SentenceIta, SentenceIta,
QuestionIta, QuestionIta,
RelativeIta, RelativeIta,
IdiomIta [ IdiomIta,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
-- ConstructionIta, -- ConstructionIta,
DocumentationIta, DocumentationIta,

View File

@@ -11,17 +11,14 @@ concrete TranslateSpa of Translate =
ConjunctionSpa, ConjunctionSpa,
VerbSpa - [ VerbSpa - [
UseCopula, UseCopula,
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbSpa, AdverbSpa,
PhraseSpa, PhraseSpa,
SentenceSpa, SentenceSpa,
QuestionSpa, QuestionSpa,
RelativeSpa, RelativeSpa,
IdiomSpa [ IdiomSpa,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
-- ConstructionSpa, -- ConstructionSpa,
DocumentationSpa, DocumentationSpa,

View File

@@ -10,18 +10,15 @@ concrete TranslateSwe of Translate =
], ],
ConjunctionSwe, ConjunctionSwe,
VerbSwe - [ VerbSwe - [
UseCopula, UseCopula, -- not needed
SlashV2V, PassV2, ComplVV -- generalized in Extensions PassV2 -- generalized in Extensions
], ],
AdverbSwe, AdverbSwe,
PhraseSwe, PhraseSwe,
SentenceSwe, SentenceSwe,
QuestionSwe, QuestionSwe,
RelativeSwe, RelativeSwe,
IdiomSwe [ IdiomSwe,
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
neutr, sjalv
],
ConstructionSwe, ConstructionSwe,
DocumentationSwe, DocumentationSwe,

View File

@@ -1346,7 +1346,7 @@ lin note_3_N = mkN "not" "noter" ;
lin note_2_N = mkN "anmärkning" | mkN "notis" "notiser" ; lin note_2_N = mkN "anmärkning" | mkN "notis" "notiser" ;
lin note_1_N = mkN "anteckning" ; lin note_1_N = mkN "anteckning" ;
lin season_N = mkN "årstid" "årstider" ; lin season_N = mkN "årstid" "årstider" ;
lin argument_N = mkN "argumentat" "argument" ; lin argument_N = mkN "argument" "argument" ;
lin listen_V = mkV "lyssnar" ; -- comment=2 lin listen_V = mkV "lyssnar" ; -- comment=2
lin show_N = mkN "show" "shower" ; lin show_N = mkN "show" "shower" ;
lin responsibility_N = mkN "ansvar" neutrum | mkN "tillräknelighet" ; -- SaldoWN -- comment=7 lin responsibility_N = mkN "ansvar" neutrum | mkN "tillräknelighet" ; -- SaldoWN -- comment=7