예제 #1
0
        private void initMachineTranslation()
        {
            //MyMemmory
            machineTranslationBase mymemory = new machineTranslationMyMemory();

            listMachine.Add(mymemory);

            machineTranslationBase openNMT = new machineTranslationOpenNMT();

            listMachine.Add(openNMT);
        }
예제 #2
0
        public machineTranslationBase getMachineOpenNMT()
        {
            machineTranslationBase machineOpenNMT = new machineTranslationMyMemory();

            foreach (machineTranslationBase machine in listMachine)
            {
                if (machine is machineTranslationOpenNMT)
                {
                    machineOpenNMT = machine;
                }
            }
            return(machineOpenNMT);
        }
예제 #3
0
        public machineTranslationBase getMachineMymemory()
        {
            machineTranslationBase machineMymemory = new machineTranslationMyMemory();

            foreach (machineTranslationBase machine in listMachine)
            {
                if (machine is machineTranslationMyMemory)
                {
                    machineMymemory = machine;
                }
            }
            return(machineMymemory);
        }