Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
void | run () |
Package Functions | |
RequestHandler (TranslationRequest request, Translations response) | |
Private Attributes | |
final TranslationRequest | request |
final Translations | response |
This class is responsible for getting sentences from the TranslationRequest and procuring a DecoderThreadRunner to translate it. Each call to decodeAll(TranslationRequest) launches a thread that will read the request's sentences, obtain a DecoderThread to translate them, and then place the Translation in the appropriate place.
joshua.decoder.Decoder.RequestHandler.RequestHandler | ( | TranslationRequest | request, |
Translations | response | ||
) | [package] |
final TranslationRequest joshua.decoder.Decoder.RequestHandler.request [private] |
final Translations joshua.decoder.Decoder.RequestHandler.response [private] |