Package es.ehu.si.ixa.prebmt.model.inmemory

Provides in-memory implementations of most of the interfaces in the domain model.

See: Description

Package es.ehu.si.ixa.prebmt.model.inmemory Description

Provides in-memory implementations of most of the interfaces in the domain model.

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. WeakObjectPools 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.