public OpenNMTConfDialog(OpenNMTTranslationOptions options, Sdl.LanguagePlatform.Core.LanguagePair[] languagePairs) { string sSourceCulture = languagePairs[0].SourceCultureName.ToLower(); string sTargetCulture = languagePairs[0].TargetCultureName.ToLower(); Options = options; InitializeComponent(); }
/// <summary> /// Instantiates the variables and fills the list file content into /// a Dictionary collection object. /// </summary> /// <param name="provider"></param> /// <param name="languages"></param> #region "ListTranslationProviderLanguageDirection" public OpenNMTTranslationProviderLanguageDirection(OpenNmtProvider provider, LanguagePair languages) { #region "Instantiate" // UT.LogMessageToFile("Init OpenNMTTranslationProviderLanguageDirection"); _provider = provider; _languageDirection = languages; _options = _provider.Options; _visitor = new OpenNMTTranslationProviderElementVisitor(_options); _listOfTranslations = new Dictionary <string, string>(); #endregion }
public OpenNMTTranslationProviderElementVisitor(OpenNMTTranslationOptions options) { _options = options; }
public OpenNmtProvider(OpenNMTTranslationOptions options) { Options = options; }