Exemplo n.º 1
0
        public OpenNMTConfDialog(OpenNMTTranslationOptions options, Sdl.LanguagePlatform.Core.LanguagePair[] languagePairs)
        {
            string sSourceCulture = languagePairs[0].SourceCultureName.ToLower();
            string sTargetCulture = languagePairs[0].TargetCultureName.ToLower();

            Options = options;
            InitializeComponent();
        }
Exemplo n.º 2
0
        /// <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
        }
Exemplo n.º 3
0
 public OpenNMTTranslationProviderElementVisitor(OpenNMTTranslationOptions options)
 {
     _options = options;
 }
Exemplo n.º 4
0
        public OpenNmtProvider(OpenNMTTranslationOptions options)
        {
            Options = options;

        }