Exemple #1
0
 internal void Shutdown()
 {
     if (this.marianProcess != null)
     {
         this.marianProcess.ShutdownMtPipe();
         this.marianProcess = null;
     }
 }
Exemple #2
0
        internal string Translate(string input)
        {
            if (this.marianProcess == null)
            {
                this.marianProcess = new MarianProcess(this.InstallDir, this.SourceLanguageString, this.TargetLanguageString, this.modelConfig.IncludePlaceholderTags, this.modelConfig.IncludeTagPairs);
            }

            return(this.marianProcess.Translate(input));
        }