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).
- Author:
- Matt Post post@.nosp@m.cs.j.nosp@m.hu.ed.nosp@m.u