コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: PhaseProgress.cs プロジェクト: Andrewdt97/machine
 internal PhaseProgress(PhasedProgressReporter reporter, Phase phase)
 {
     _reporter = reporter;
     Phase     = phase;
 }