示例#1
0
        public IInteractiveSmtEngine CreateInteractiveEngine()
        {
            var engine = new ThotSmtEngine(this);

            _engines.Add(engine);
            return(engine);
        }
示例#2
0
 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();
 }
示例#3
0
 internal void RemoveEngine(ThotSmtEngine engine)
 {
     _engines.Remove(engine);
 }