public void Train(IProgress <ProgressStatus> progress = null) { CheckDisposed(); var reporter = new PhasedProgressReporter(progress, new Phase("Training direct alignment model"), new Phase("Training inverse alignment model")); using (PhaseProgress phaseProgress = reporter.StartNextPhase()) _directWordAlignmentModel.Train(phaseProgress); using (PhaseProgress phaseProgress = reporter.StartNextPhase()) _inverseWordAlignmentModel.Train(phaseProgress); }
internal PhaseProgress(PhasedProgressReporter reporter, Phase phase) { _reporter = reporter; Phase = phase; }