experimenting with exclusion of some functions to gain speed in Translate

This commit is contained in:
aarne
2014-04-02 14:04:48 +00:00
parent 086085b9a3
commit 8fc7add8a8
3 changed files with 22 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ abstract Translate =
Numeral, Numeral,
Conjunction, Conjunction,
Verb - [ Verb - [
SlashV2V, PassV2, ComplVV, -- to be generalized ----- SlashV2V, PassV2, ComplVV, -- to be generalized
UseCopula ---- overgenerating ?? UseCopula ---- overgenerating ??
], ],
Adverb, Adverb,
@@ -19,10 +19,10 @@ abstract Translate =
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 - [VPS,VPI], Chunk,
Construction, Construction,
Extensions, Extensions - [VPI,VPS,PredFrontVQ,PredFrontVS,SlashSlashV2V,SlashV2V,SlashVPIV2V,ComplVV,PassVPSlash,PassAgentVPSlash],
Dictionary, Dictionary,
Documentation Documentation

View File

@@ -12,12 +12,15 @@ concrete TranslateEng of Translate =
], ],
ConjunctionEng, ConjunctionEng,
VerbEng - [ VerbEng - [
SlashV2V, PassV2, UseCopula, ComplVV, -- generalized in Extensions UseCopula,
ComplVS, SlashV2S, ComplSlash -- have variants in Eng -- SlashV2V, PassV2, ComplVV, -- generalized in Extensions
ComplVS, SlashV2S, ComplSlash, -- have variants in Eng
SlashV2VNP, SlashVV, AdVVPSlash,AdvVPSlash,VPSlashPrep -----
], ],
AdverbEng, AdverbEng,
PhraseEng, PhraseEng,
SentenceEng - [ SentenceEng - [
SlashVS, -----
---- PredVP, -- to be replaced by PredVPS, QuestVPS, QuestIAdvVPS in Extensions ---- PredVP, -- to be replaced by PredVPS, QuestVPS, QuestIAdvVPS in Extensions
UseCl -- replaced by UseCl | ContractedUseCl UseCl -- replaced by UseCl | ContractedUseCl
], ],
@@ -27,9 +30,11 @@ concrete TranslateEng of Translate =
ConstructionEng, ConstructionEng,
DocumentationEng, DocumentationEng,
ChunkEng - [VPS,VPI], ChunkEng,
ExtensionsEng, ExtensionsEng - [
VPI,VPS,PredFrontVQ,PredFrontVS,SlashSlashV2V,SlashV2V,SlashVPIV2V,ComplVV,PassVPSlash,PassAgentVPSlash
],
DictionaryEng ** DictionaryEng **
open MorphoEng, ResEng, ParadigmsEng, (G = GrammarEng), (E = ExtraEng), Prelude in { open MorphoEng, ResEng, ParadigmsEng, (G = GrammarEng), (E = ExtraEng), Prelude in {

View File

@@ -9,10 +9,14 @@ concrete TranslateSwe of Translate =
PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP PN, Symb, String, CN, Card, NP, MkSymb, SymbPN, CNNumNP
], ],
ConjunctionSwe, ConjunctionSwe,
VerbSwe - [SlashV2V, PassV2, UseCopula, ComplVV], VerbSwe - [
UseCopula,
-- SlashV2V, PassV2, ComplVV, -- generalized in Extensions
SlashV2VNP, SlashVV, AdVVPSlash,AdvVPSlash,VPSlashPrep -----
],
AdverbSwe, AdverbSwe,
PhraseSwe, PhraseSwe,
SentenceSwe, SentenceSwe - [SlashVS],
QuestionSwe, QuestionSwe,
RelativeSwe, RelativeSwe,
IdiomSwe [ IdiomSwe [
@@ -22,9 +26,11 @@ concrete TranslateSwe of Translate =
ConstructionSwe, ConstructionSwe,
DocumentationSwe, DocumentationSwe,
ChunkSwe - [VPS,VPI], ChunkSwe,
ExtensionsSwe, ExtensionsSwe - [
VPI,VPS,PredFrontVQ,PredFrontVS,SlashSlashV2V,SlashV2V,SlashVPIV2V,ComplVV,PassVPSlash,PassAgentVPSlash
],
DictionarySwe ** DictionarySwe **
open MorphoSwe, ResSwe, ParadigmsSwe, SyntaxSwe, CommonScand, (E = ExtraSwe), Prelude in { open MorphoSwe, ResSwe, ParadigmsSwe, SyntaxSwe, CommonScand, (E = ExtraSwe), Prelude in {