public IInteractiveSmtEngine CreateInteractiveEngine() { var engine = new ThotSmtEngine(this); _engines.Add(engine); return(engine); }
public ThotInteractiveTranslationSession(ThotSmtEngine engine, int n, IReadOnlyList <string> sourceSegment, WordGraph wordGraph) { _engine = engine; _sourceSegment = sourceSegment; _n = n; _prefix = new List <string>(); _isLastWordComplete = true; _wordGraphProcessor = new ErrorCorrectionWordGraphProcessor(_engine.ErrorCorrectionModel, _sourceSegment, wordGraph); UpdateInteractiveResults(); }
internal void RemoveEngine(ThotSmtEngine engine) { _engines.Remove(engine); }