Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
void | run () |
Package Functions | |
DecoderThreadRunner (DecoderThread thread, Sentence sentence, Translations translations) | |
Private Attributes | |
final DecoderThread | decoderThread |
final Sentence | sentence |
final Translations | translations |
This class handles running a DecoderThread (which takes care of the actual translation of an input Sentence, returning a Translation object when its done). This is done in a thread so as not to tie up the RequestHandler that launched it, freeing it to go on to the next sentence in the TranslationRequest, in turn permitting parallelization across the sentences of a request.
When the decoder thread is finshed, the Translation object is placed in the correct place in the corresponding Translations object that was returned to the caller of Decoder.decodeAll(TranslationRequest).
joshua.decoder.Decoder.DecoderThreadRunner.DecoderThreadRunner | ( | DecoderThread | thread, |
Sentence | sentence, | ||
Translations | translations | ||
) | [package] |
final Sentence joshua.decoder.Decoder.DecoderThreadRunner.sentence [private] |
final Translations joshua.decoder.Decoder.DecoderThreadRunner.translations [private] |