Package | Description |
---|---|
es.ehu.si.ixa.prebmt.translation |
Provides classes and interfaces for partial text translation.
|
Modifier and Type | Class and Description |
---|---|
class |
ConcurrentTranslator
A wrapper to run any thread-safe
Translator concurrently, making use
of the specified number of threads. |
class |
DefaultTranslator
Default implementation of the
Translator interface. |
Constructor and Description |
---|
ConcurrentTranslator(Translator translator)
Constructs a new translator that will make use of as many threads as this
machine can run concurrently.
|
ConcurrentTranslator(Translator translator,
int nThreads)
Constructs a new translator.
|
ConcurrentTranslator(Translator translator,
int nThreads,
int queueSize)
Constructs a new translator.
|