forked from GitHub/gf-core
Make for Translate10
This commit is contained in:
@@ -146,6 +146,14 @@ GFMKT=mkdir -p ../translator && gf $S -make -literal=Symb -probs=$(TPROBSFILE) -
|
|||||||
TRANSLATE8=TranslateEng.pgf TranslateBul.pgf TranslateChi.pgf TranslateGer.pgf TranslateSwe.pgf TranslateHin.pgf TranslateFin.pgf TranslateFre.pgf
|
TRANSLATE8=TranslateEng.pgf TranslateBul.pgf TranslateChi.pgf TranslateGer.pgf TranslateSwe.pgf TranslateHin.pgf TranslateFin.pgf TranslateFre.pgf
|
||||||
TRANSLATE10=TranslateEng.pgf TranslateBul.pgf TranslateChi.pgf TranslateGer.pgf TranslateSwe.pgf TranslateHin.pgf TranslateFin.pgf TranslateFre.pgf TranslateIta.pgf TranslateSpa.pgf
|
TRANSLATE10=TranslateEng.pgf TranslateBul.pgf TranslateChi.pgf TranslateGer.pgf TranslateSwe.pgf TranslateHin.pgf TranslateFin.pgf TranslateFre.pgf TranslateIta.pgf TranslateSpa.pgf
|
||||||
|
|
||||||
|
# Without dependencies:
|
||||||
|
Translate10:
|
||||||
|
$(GFMKT) -name=Translate10 $(TRANSLATE8) +RTS -K32M
|
||||||
|
|
||||||
|
# With dependencies:
|
||||||
|
Translate8.pgf: $(TRANSLATE10)
|
||||||
|
$(GFMKT) -name=Translate8 $(TRANSLATE10) +RTS -K32M
|
||||||
|
|
||||||
# Without dependencies:
|
# Without dependencies:
|
||||||
Translate8:
|
Translate8:
|
||||||
$(GFMKT) -name=Translate8 $(TRANSLATE8) +RTS -K32M
|
$(GFMKT) -name=Translate8 $(TRANSLATE8) +RTS -K32M
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
--# -path=.:../chinese:../abstract
|
--# -path=.:src/chunk:alltenses
|
||||||
|
|
||||||
concrete TranslateChi of Translate =
|
concrete TranslateChi of Translate =
|
||||||
TenseChi,
|
TenseChi,
|
||||||
NounChi - [PPartNP],
|
NounChi - [PPartNP],
|
||||||
AdjectiveChi,
|
AdjectiveChi,
|
||||||
NumeralChi,
|
NumeralChi,
|
||||||
SymbolChi [PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP],
|
SymbolChi [
|
||||||
|
PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
|
||||||
|
],
|
||||||
ConjunctionChi,
|
ConjunctionChi,
|
||||||
|
|
||||||
VerbChi - [
|
VerbChi - [
|
||||||
UseCopula, -- just removed
|
UseCopula, -- just removed
|
||||||
SlashV2V, PassV2, ComplVV, -- generalized
|
SlashV2V, PassV2, ComplVV, -- generalized
|
||||||
@@ -19,11 +22,18 @@ concrete TranslateChi of Translate =
|
|||||||
QuestCl -- Chi exception
|
QuestCl -- Chi exception
|
||||||
],
|
],
|
||||||
RelativeChi,
|
RelativeChi,
|
||||||
IdiomChi [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP],
|
IdiomChi [
|
||||||
|
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||||
|
neutr, sjalv
|
||||||
|
],
|
||||||
ConstructionChi,
|
ConstructionChi,
|
||||||
ExtensionsChi,
|
DocumentationChi,
|
||||||
DictionaryChi
|
|
||||||
**
|
ChunkChi,
|
||||||
|
ExtensionsChi [CompoundCN,AdAdV,UttAdV,ApposNP,MkVPI, MkVPS, PredVPS, that_RP, who_RP],
|
||||||
|
|
||||||
|
DictionaryChi **
|
||||||
|
|
||||||
open ResChi, ParadigmsChi, SyntaxChi, Prelude, (G = GrammarChi), (E = ExtraChi) in {
|
open ResChi, ParadigmsChi, SyntaxChi, Prelude, (G = GrammarChi), (E = ExtraChi) in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
@@ -34,10 +44,11 @@ flags
|
|||||||
-- Chinese-specific overrides
|
-- Chinese-specific overrides
|
||||||
|
|
||||||
lin
|
lin
|
||||||
CompAP = G.CompAP | E.CompBareAP ; -- he is good | he good
|
CompAP = E.CompBareAP | G.CompAP ; -- he good | he is good
|
||||||
|
|
||||||
AdvVP vp adv = E.TopicAdvVP vp adv | G.AdvVP vp adv ; -- he *today* here sleeps | *today* he here sleeps
|
AdvVP vp adv = G.AdvVP vp adv | E.TopicAdvVP vp adv ; -- he *today* here sleeps | *today* he here sleeps
|
||||||
|
|
||||||
QuestCl cl = G.QuestCl cl | E.QuestRepV cl ; -- he comes 'ma' | he come not come
|
QuestCl cl = G.QuestCl cl | E.QuestRepV cl ; -- he comes 'ma' | he come not come
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,39 @@
|
|||||||
--# -path=.:../finnish/stemmed:../finnish:../abstract:../common:../finnish/kotus:../api
|
--# -path=.:src/chunk:src/finnish/stemmed:src/finnish:src/api
|
||||||
|
|
||||||
concrete TranslateFin of Translate =
|
concrete TranslateFin of Translate =
|
||||||
TenseX, ---- TODO add potential forms
|
TenseX,
|
||||||
CatFin,
|
CatFin,
|
||||||
NounFin - [
|
NounFin - [
|
||||||
PPartNP,
|
PPartNP
|
||||||
UsePron, PossPron -- Fin specific: replaced by variants with prodrop
|
,UsePron, PossPron -- Fin specific: replaced by variants with prodrop
|
||||||
],
|
],
|
||||||
AdjectiveFin,
|
AdjectiveFin,
|
||||||
NumeralFin,
|
NumeralFin,
|
||||||
SymbolFin [PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP],
|
SymbolFin [
|
||||||
|
PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
|
||||||
|
],
|
||||||
ConjunctionFin,
|
ConjunctionFin,
|
||||||
VerbFin - [
|
VerbFin - [
|
||||||
SlashV2V, PassV2, UseCopula, ComplVV,
|
UseCopula,
|
||||||
VPSlashPrep -- with empty prepositions, a cyclic rule that leads to overgeneration
|
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||||
],
|
],
|
||||||
AdverbFin,
|
AdverbFin,
|
||||||
PhraseFin,
|
PhraseFin,
|
||||||
SentenceFin,
|
SentenceFin,
|
||||||
QuestionFin,
|
QuestionFin,
|
||||||
RelativeFin,
|
RelativeFin,
|
||||||
IdiomFin [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP],
|
IdiomFin [
|
||||||
|
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||||
|
neutr, sjalv
|
||||||
|
],
|
||||||
ConstructionFin,
|
ConstructionFin,
|
||||||
DocumentationFin,
|
DocumentationFin,
|
||||||
-- ExtensionsFin,
|
|
||||||
DictionaryFin
|
ChunkFin,
|
||||||
**
|
ExtensionsFin [CompoundCN,AdAdV,UttAdV,ApposNP,MkVPI, MkVPS, PredVPS, that_RP, who_RP],
|
||||||
|
|
||||||
|
DictionaryFin **
|
||||||
|
|
||||||
open MorphoFin, ResFin, ParadigmsFin, SyntaxFin, StemFin, (E = ExtraFin), (G = GrammarFin), Prelude in {
|
open MorphoFin, ResFin, ParadigmsFin, SyntaxFin, StemFin, (E = ExtraFin), (G = GrammarFin), Prelude in {
|
||||||
|
|
||||||
flags literal=Symb ; coding = utf8 ;
|
flags literal=Symb ; coding = utf8 ;
|
||||||
|
|||||||
@@ -1,21 +1,35 @@
|
|||||||
--# -path=.:../French:../abstract:../romance:alltenses
|
--# -path=.:src/chunk:alltenses
|
||||||
|
|
||||||
concrete TranslateFre of Translate =
|
concrete TranslateFre of Translate =
|
||||||
TenseFre,
|
TenseFre,
|
||||||
NounFre - [PPartNP],
|
NounFre - [PPartNP],
|
||||||
AdjectiveFre,
|
AdjectiveFre,
|
||||||
NumeralFre,
|
NumeralFre,
|
||||||
SymbolFre [PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP],
|
SymbolFre [
|
||||||
|
PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
|
||||||
|
],
|
||||||
ConjunctionFre,
|
ConjunctionFre,
|
||||||
VerbFre - [SlashV2V, PassV2, UseCopula, ComplVV],
|
VerbFre - [
|
||||||
|
UseCopula,
|
||||||
|
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||||
|
],
|
||||||
AdverbFre,
|
AdverbFre,
|
||||||
PhraseFre,
|
PhraseFre,
|
||||||
SentenceFre,
|
SentenceFre,
|
||||||
QuestionFre - [QuestCl, QuestIAdv], -- more variants here
|
QuestionFre - [
|
||||||
|
QuestCl,QuestIAdv -- french-specific overrides
|
||||||
|
],
|
||||||
RelativeFre,
|
RelativeFre,
|
||||||
IdiomFre [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP],
|
IdiomFre [
|
||||||
|
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||||
|
neutr, sjalv
|
||||||
|
],
|
||||||
ConstructionFre,
|
ConstructionFre,
|
||||||
DocumentationFre,
|
DocumentationFre,
|
||||||
ExtensionsFre,
|
|
||||||
|
ChunkFre,
|
||||||
|
ExtensionsFre [CompoundCN,AdAdV,UttAdV,ApposNP,MkVPI, MkVPS, PredVPS, that_RP, who_RP],
|
||||||
|
|
||||||
DictionaryFre **
|
DictionaryFre **
|
||||||
open PhonoFre, MorphoFre, ResFre, CommonRomance, ParadigmsFre, SyntaxFre, Prelude, (G = GrammarFre) in {
|
open PhonoFre, MorphoFre, ResFre, CommonRomance, ParadigmsFre, SyntaxFre, Prelude, (G = GrammarFre) in {
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,37 @@
|
|||||||
--# -path=alltenses:.:../german:../abstract
|
--# -path=.:src/chunk:alltenses
|
||||||
|
|
||||||
concrete TranslateGer of Translate =
|
concrete TranslateGer of Translate =
|
||||||
TenseGer,
|
TenseGer,
|
||||||
NounGer - [PPartNP],
|
NounGer - [PPartNP],
|
||||||
AdjectiveGer,
|
AdjectiveGer,
|
||||||
NumeralGer,
|
NumeralGer,
|
||||||
SymbolGer [PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP],
|
SymbolGer [
|
||||||
|
PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
|
||||||
|
],
|
||||||
ConjunctionGer,
|
ConjunctionGer,
|
||||||
VerbGer - [SlashV2V, PassV2, UseCopula, ComplVV],
|
VerbGer - [
|
||||||
|
UseCopula,
|
||||||
|
SlashV2V, PassV2, ComplVV -- generalized in Extensions
|
||||||
|
],
|
||||||
AdverbGer,
|
AdverbGer,
|
||||||
PhraseGer,
|
PhraseGer,
|
||||||
SentenceGer,
|
SentenceGer,
|
||||||
QuestionGer,
|
QuestionGer,
|
||||||
RelativeGer,
|
RelativeGer,
|
||||||
IdiomGer [NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP, geben],
|
IdiomGer [
|
||||||
|
NP, VP, Tense, Cl, ProgrVP, ExistNP, SelfAdvVP, SelfAdVVP, SelfNP,
|
||||||
|
neutr, sjalv
|
||||||
|
],
|
||||||
ConstructionGer,
|
ConstructionGer,
|
||||||
DocumentationGer,
|
DocumentationGer,
|
||||||
ExtensionsGer,
|
|
||||||
|
ChunkGer,
|
||||||
|
ExtensionsGer [CompoundCN,AdAdV,UttAdV,ApposNP,MkVPI, MkVPS, PredVPS, that_RP, who_RP],
|
||||||
|
|
||||||
DictionaryGer **
|
DictionaryGer **
|
||||||
open MorphoGer, ResGer, ParadigmsGer, SyntaxGer, Prelude in {
|
open MorphoGer, ResGer, ParadigmsGer, SyntaxGer, CommonScand, (E = ExtraGer), Prelude in {
|
||||||
|
|
||||||
flags
|
flags
|
||||||
literal=Symb ;
|
literal=Symb ;
|
||||||
coding = utf8 ;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user