diff options
-rw-r--r-- | phrase-extract/ExtractionPhrasePair.cpp | 4 | ||||
-rw-r--r-- | phrase-extract/score-main.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/phrase-extract/ExtractionPhrasePair.cpp b/phrase-extract/ExtractionPhrasePair.cpp index e2814f33c..a975b4126 100644 --- a/phrase-extract/ExtractionPhrasePair.cpp +++ b/phrase-extract/ExtractionPhrasePair.cpp @@ -47,8 +47,8 @@ ExtractionPhrasePair::ExtractionPhrasePair( const PHRASE *phraseSource, m_count(count), m_pcfgSum(pcfgSum) { - assert(phraseSource.empty()); - assert(phraseTarget.empty()); + assert(phraseSource->empty()); + assert(phraseTarget->empty()); m_count = count; m_pcfgSum = pcfgSum; diff --git a/phrase-extract/score-main.cpp b/phrase-extract/score-main.cpp index 65a12d176..a54433448 100644 --- a/phrase-extract/score-main.cpp +++ b/phrase-extract/score-main.cpp @@ -506,7 +506,7 @@ void outputPhrasePair(const ExtractionPhrasePair &phrasePair, const ScoreFeatureManager& featureManager, const MaybeLog& maybeLogProb ) { - assert(phrasePair.isValid()); + assert(phrasePair.IsValid()); const ALIGNMENT *bestAlignmentT2S = phrasePair.FindBestAlignmentTargetToSource(); float count = phrasePair.GetCount(); |