mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
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:
@@ -7,22 +7,23 @@ abstract Translate =
|
||||
Numeral,
|
||||
Conjunction,
|
||||
Verb - [
|
||||
SlashV2V, PassV2, ComplVV, -- to be generalized
|
||||
UseCopula ---- overgenerating ??
|
||||
PassV2, -- generalized to VPSlash and agents
|
||||
-- SlashV2V, ComplVV, -- generalized. But (1) more expensive (2) not available for all languages
|
||||
UseCopula ---- overgenerating, unnecessary
|
||||
],
|
||||
Adverb,
|
||||
Phrase,
|
||||
Sentence,
|
||||
Question,
|
||||
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?
|
||||
|
||||
Chunk,
|
||||
|
||||
Construction,
|
||||
Extensions - [VPI,VPS],
|
||||
Extensions - [VPI,VPS,SlashV2V,ComplVV],
|
||||
Dictionary,
|
||||
Documentation
|
||||
|
||||
|
||||
@@ -12,17 +12,14 @@ concrete TranslateBul of Translate =
|
||||
ConjunctionBul,
|
||||
VerbBul - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbBul,
|
||||
PhraseBul,
|
||||
SentenceBul,
|
||||
QuestionBul,
|
||||
RelativeBul,
|
||||
IdiomBul [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomBul,
|
||||
-- ConstructionBul,
|
||||
DocumentationBul,
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ concrete TranslateChi of Translate =
|
||||
|
||||
VerbChi - [
|
||||
UseCopula, -- just removed
|
||||
SlashV2V, PassV2, ComplVV, -- generalized
|
||||
PassV2, -- generalized
|
||||
CompAP, AdvVP -- Chi exceptions
|
||||
],
|
||||
AdverbChi,
|
||||
@@ -22,10 +22,7 @@ concrete TranslateChi of Translate =
|
||||
QuestCl -- Chi exception
|
||||
],
|
||||
RelativeChi,
|
||||
IdiomChi [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomChi,
|
||||
ConstructionChi,
|
||||
DocumentationChi,
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ concrete TranslateEng of Translate =
|
||||
],
|
||||
ConjunctionEng,
|
||||
VerbEng - [
|
||||
UseCopula, -- just removed
|
||||
SlashV2V, PassV2, ComplVV, -- generalized in Extensions
|
||||
UseCopula, -- just removed: not needed
|
||||
PassV2, -- generalized in Extensions
|
||||
ComplVS, SlashV2S, ComplSlash -- Eng exceptions
|
||||
],
|
||||
AdverbEng,
|
||||
@@ -23,7 +23,7 @@ concrete TranslateEng of Translate =
|
||||
],
|
||||
QuestionEng,
|
||||
RelativeEng - [IdRP],
|
||||
IdiomEng [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP],
|
||||
IdiomEng,
|
||||
ConstructionEng,
|
||||
DocumentationEng,
|
||||
|
||||
|
||||
@@ -15,17 +15,14 @@ concrete TranslateFin of Translate =
|
||||
ConjunctionFin,
|
||||
VerbFin - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbFin,
|
||||
PhraseFin,
|
||||
SentenceFin,
|
||||
QuestionFin,
|
||||
RelativeFin,
|
||||
IdiomFin [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomFin,
|
||||
ConstructionFin,
|
||||
DocumentationFin,
|
||||
|
||||
@@ -41,7 +38,7 @@ flags literal=Symb ; coding = utf8 ;
|
||||
-- the overrides -----
|
||||
lin
|
||||
|
||||
UsePron p = G.UsePron (E.ProDrop p) | G.UsePron p ;
|
||||
PossPron p = E.ProDropPoss p | G.PossPron p ;
|
||||
UsePron p = G.UsePron p | G.UsePron (E.ProDrop p) ;
|
||||
PossPron p = G.PossPron p | E.ProDropPoss p ;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ concrete TranslateFre of Translate =
|
||||
ConjunctionFre,
|
||||
VerbFre - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbFre,
|
||||
PhraseFre,
|
||||
@@ -20,10 +20,7 @@ concrete TranslateFre of Translate =
|
||||
QuestCl,QuestIAdv -- french-specific overrides
|
||||
],
|
||||
RelativeFre,
|
||||
IdiomFre [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomFre,
|
||||
ConstructionFre,
|
||||
DocumentationFre,
|
||||
|
||||
|
||||
@@ -11,17 +11,14 @@ concrete TranslateGer of Translate =
|
||||
ConjunctionGer,
|
||||
VerbGer - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2
|
||||
],
|
||||
AdverbGer,
|
||||
PhraseGer,
|
||||
SentenceGer,
|
||||
QuestionGer,
|
||||
RelativeGer,
|
||||
IdiomGer [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomGer,
|
||||
ConstructionGer,
|
||||
DocumentationGer,
|
||||
|
||||
|
||||
@@ -12,17 +12,14 @@ concrete TranslateHin of Translate =
|
||||
ConjunctionHin,
|
||||
VerbHin - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbHin,
|
||||
PhraseHin,
|
||||
SentenceHin,
|
||||
QuestionHin,
|
||||
RelativeHin,
|
||||
IdiomHin [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomHin,
|
||||
-- ConstructionHin,
|
||||
DocumentationHin,
|
||||
|
||||
|
||||
@@ -11,17 +11,14 @@ concrete TranslateIta of Translate =
|
||||
ConjunctionIta,
|
||||
VerbIta - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbIta,
|
||||
PhraseIta,
|
||||
SentenceIta,
|
||||
QuestionIta,
|
||||
RelativeIta,
|
||||
IdiomIta [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomIta,
|
||||
-- ConstructionIta,
|
||||
DocumentationIta,
|
||||
|
||||
|
||||
@@ -11,17 +11,14 @@ concrete TranslateSpa of Translate =
|
||||
ConjunctionSpa,
|
||||
VerbSpa - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbSpa,
|
||||
PhraseSpa,
|
||||
SentenceSpa,
|
||||
QuestionSpa,
|
||||
RelativeSpa,
|
||||
IdiomSpa [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomSpa,
|
||||
-- ConstructionSpa,
|
||||
DocumentationSpa,
|
||||
|
||||
|
||||
@@ -10,18 +10,15 @@ concrete TranslateSwe of Translate =
|
||||
],
|
||||
ConjunctionSwe,
|
||||
VerbSwe - [
|
||||
UseCopula,
|
||||
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||
UseCopula, -- not needed
|
||||
PassV2 -- generalized in Extensions
|
||||
],
|
||||
AdverbSwe,
|
||||
PhraseSwe,
|
||||
SentenceSwe,
|
||||
QuestionSwe,
|
||||
RelativeSwe,
|
||||
IdiomSwe [
|
||||
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||
neutr, sjalv
|
||||
],
|
||||
IdiomSwe,
|
||||
ConstructionSwe,
|
||||
DocumentationSwe,
|
||||
|
||||
|
||||
@@ -1346,7 +1346,7 @@ lin note_3_N = mkN "not" "noter" ;
|
||||
lin note_2_N = mkN "anmärkning" | mkN "notis" "notiser" ;
|
||||
lin note_1_N = mkN "anteckning" ;
|
||||
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 show_N = mkN "show" "shower" ;
|
||||
lin responsibility_N = mkN "ansvar" neutrum | mkN "tillräknelighet" ; -- SaldoWN -- comment=7
|
||||
|
||||
Reference in New Issue
Block a user