See: Description
Class | Description |
---|---|
InMemoryAlignedEntity |
In-memory implementation of the
AlignedEntity interface. |
InMemoryAlignment |
In-memory implementation of the
Alignment interface that uses a
boolean matrix as its internal representation. |
InMemoryAlignment.Builder |
A builder to create
InMemoryAlignment instances. |
InMemoryEntity |
In-memory implementation of the
Entity interface. |
InMemoryLexicalWeighting |
In-memory implementation of the
LexicalWeighting interface that takes
its entries from the output of an external word aligner. |
InMemoryMonolingualCorpus |
In-memory implementation of the
MonolingualCorpus interface. |
InMemoryMonolingualCorpus.Builder |
A
MonolingualCorpusBuilder to create InMemoryMonolingualCorpus instances. |
InMemoryOptimizedAlignment |
An optimized implementation of the
Alignment interface in that all
the methods take at most a logarithmic time, but with a considerable overhead
to achieve it. |
InMemoryOptimizedAlignment.Builder |
A builder to create
InMemoryOptimizedAlignment instances. |
InMemoryPhrase |
In-memory implementation of the
Phrase interface. |
InMemoryPhrase.Builder |
A builder to create
InMemoryPhrase instances. |
InMemorySentence |
In-memory implementation of the
Sentence interface. |
InMemorySpace |
In-memory implementation of the
Space interface. |
InMemoryText |
In-memory implementation of the
Text interface. |
InMemoryText.Builder |
A builder to create
InMemoryText instances. |
InMemoryToken |
In-memory implementation of the
Token interface. |
All the interfaces under es.ehu.si.ixa.prebmt.model
with the
exception of BilingualCorpus
and CorpusAlignment
are
implemented in this package in such a way that they entirely reside in the
main memory (i.e., don't make use of disk storage). This makes them faster,
but also more memory intensive, which can turn problematic when dealing with
large amount of data. WeakObjectPool
s are used when suitable in order
to reuse instances and partially mitigate this issue, but file-backed
implementations under es.ehu.si.ixa.prebmt.model.filebacked
(which
internally make use of the implementations in this package) should still be
preferred for large structures like corpora.
All the provided implementations are immutable and, therefore, their instances can be freely shared.