Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.decoder.Decoder.DecoderThreadRunner Class Reference
Collaboration diagram for joshua.decoder.Decoder.DecoderThreadRunner:
[legend]

List of all members.

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

Detailed Description

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

Constructor & Destructor Documentation


Member Function Documentation

Here is the call graph for this function:


Member Data Documentation