示例#1
0
 // check if two word alignments between a phrase pair are the same
 bool PhraseAlignment::equals( const PhraseAlignment& other )
 {
     if (this == &other) return true;
     if (other.GetRuleId() != this->GetRuleId() ) return false;
     if (other.alignedToT != alignedToT) return false;
     if (other.alignedToS != alignedToS) return false;
     return true;
 }
示例#2
0
 // check if two word alignments between a phrase pairs "match"
 // i.e. they do not differ in the alignment of non-termimals
 bool PhraseAlignment::match( const PhraseAlignment& other )
 {
     if (this == &other) return true;
     if(other.GetRuleId() != this->GetRuleId()) return false;
     return true;
 }