private void initMachineTranslation() { //MyMemmory machineTranslationBase mymemory = new machineTranslationMyMemory(); listMachine.Add(mymemory); machineTranslationBase openNMT = new machineTranslationOpenNMT(); listMachine.Add(openNMT); }
public machineTranslationBase getMachineOpenNMT() { machineTranslationBase machineOpenNMT = new machineTranslationMyMemory(); foreach (machineTranslationBase machine in listMachine) { if (machine is machineTranslationOpenNMT) { machineOpenNMT = machine; } } return(machineOpenNMT); }
public machineTranslationBase getMachineMymemory() { machineTranslationBase machineMymemory = new machineTranslationMyMemory(); foreach (machineTranslationBase machine in listMachine) { if (machine is machineTranslationMyMemory) { machineMymemory = machine; } } return(machineMymemory); }