src/Generic/relations/discmodel/RelationObservation.cpp
// functions added for relation models based on NP chunk

functions added for relation models based on NP chunk
functions added for relation models based on NP chunk
void RelationObservation::findPossessiveRel(){
	int end1 = _m1->getNode()->getEndToken();
	int start2 = _m2->getNode()->getStartToken();
	if (end1+1 == start2 && _m2->getNode()->getFirstTerminal()->getHeadWord() == Symbol(L"'s")){
		_hasPossessiveRel = true;
		_n_offsets_ment2 = SymbolUtilities::fillWordNetOffsets(_stemmedHeadofm2, _wordnetOffsetsofMent2, REL_MAX_WN_OFFSETS);
		_wcMent2 = WordClusterClass(_stemmedHeadofm2, true);
	}
	return;
}
void RelationObservation :: findPossessiveRel ( ) { int end1 = _m1 -> getNode ( ) -> getEndToken ( ) ; int start2 = _m2 -> getNode ( ) -> getStartToken ( ) ; if ( end1 + 1 == start2 && _m2 -> getNode ( ) -> getFirstTerminal ( ) -> getHeadWord ( ) == Symbol ( L" " ) ) { _hasPossessiveRel = true ; _n_offsets_ment2 = SymbolUtilities :: fillWordNetOffsets ( _stemmedHeadofm2 , _wordnetOffsetsofMent2 , REL_MAX_WN_OFFSETS ) ; _wcMent2 = WordClusterClass ( _stemmedHeadofm2 , true ) ; } return ; }
functions added for relation models based on NP chunk
functions added for relation models based on NP chunk
// old implementation, not use stem words
 //_n_offsets_ment2 = SymbolUtilities::fillWordNetOffsets(_m2->getNode()->getHeadWord(), _wordnetOffsetsofMent2, REL_MAX_WN_OFFSETS);
 //_wcMent2 = WordClusterClass(_m2->getNode()->getHeadWord(), true);
 // use stem words
