public interface BilingualCorpus
MonolingualCorpus
es that form a bilingual corpus from
which partial translations can be generated.Modifier and Type | Method and Description |
---|---|
MonolingualCorpus |
getSrc()
Returns the source
MonolingualCorpus of this bilingual corpus. |
MonolingualCorpus |
getTrg()
Returns the target
MonolingualCorpus of this bilingual corpus. |
java.lang.String |
translate(java.util.List<PhraseElement> fragment,
Dictionary dictionary,
Generator generator,
boolean tokenize)
Returns the translation of the given text fragment in this bilingual
corpus.
|
MonolingualCorpus getSrc()
MonolingualCorpus
of this bilingual corpus.MonolingualCorpus
of this bilingual corpus.MonolingualCorpus getTrg()
MonolingualCorpus
of this bilingual corpus.MonolingualCorpus
of this bilingual corpus.java.lang.String translate(java.util.List<PhraseElement> fragment, Dictionary dictionary, Generator generator, boolean tokenize)
null
.fragment
- the text fragment to translate.dictionary
- the Dictionary
with which to translate entities.generator
- the Generator
with which to inflect the translated entities.tokenize
- whether the resulting translation should be tokenized or not.null
if no match is found.