Package | Description |
---|---|
es.ehu.si.ixa.prebmt.dictionary |
Provides classes and interfaces for working with bilingual
Entity
dictionaries. |
es.ehu.si.ixa.prebmt.model |
Contains the interfaces that represent the domain model of the application.
|
es.ehu.si.ixa.prebmt.model.filebacked |
Provides file-backed implementations of those interfaces in the domain model
that typically require of large structures of data.
|
es.ehu.si.ixa.prebmt.translation |
Provides classes and interfaces for partial text translation.
|
Modifier and Type | Class and Description |
---|---|
class |
MultiDictionary
A
Dictionary that takes its entries from other dictionaries. |
class |
NumberDictionary
A
Dictionary that (virtually) contains every number and their
corresponding translations for some specific thousands and decimal separators. |
class |
TextDictionary
A
Dictionary that takes its entries from plain text. |
class |
WikipediaDictionary
A
Dictionary that takes its entries from Wikipedia. |
Modifier and Type | Field and Description |
---|---|
static Dictionary |
Dictionary.DUMMY_DICTIONARY
A dummy implementation of a
Dictionary that doesn't contain any
entry. |
Modifier and Type | Method and Description |
---|---|
MultiDictionary.Builder |
MultiDictionary.Builder.add(Dictionary dictionary)
Appends a dictionary to the end of the list contained by this builder.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
BilingualCorpus.translate(java.util.List<PhraseElement> fragment,
Dictionary dictionary,
Generator generator,
boolean tokenize)
Returns the translation of the given text fragment in this bilingual
corpus.
|
Modifier and Type | Method and Description |
---|---|
static FileBackedBilingualCorpus |
FileBackedBilingualCorpus.getInstance(FileBackedMonolingualCorpus src,
FileBackedMonolingualCorpus trg,
CorpusAlignment alignments,
LexicalWeighting srcToTrgWeights,
LexicalWeighting trgToSrcWeights,
Dictionary dictionary)
Creates a bilingual corpus by aligning the given
FileBackedMonolingualCorpus pair. |
java.lang.String |
FileBackedBilingualCorpus.translate(java.util.List<PhraseElement> fragment,
Dictionary dictionary,
Generator generator,
boolean tokenize) |
Constructor and Description |
---|
DefaultTranslator(BilingualCorpus corpus,
Analyzer analyzer,
boolean sentencePerLine,
Dictionary dictionary,
Generator generator,
boolean tokenize,
int minTokens)
Constructs a new translator.
|