src/Generic/theories/Mention.cpp
// This was added for a sanity check in the serialization -- we want to 
// make sure that two mention objects that are different objects actually
// hold identical data.

This was added for a sanity check in the serialization -- we want to
make sure that two mention objects that are different objects actually
hold identical data.
This was added for a sanity check in the serialization -- we want to make sure that two mention objects that are different objects actually hold identical data .
bool Mention::isIdenticalTo(const Mention& other) const {
	return ((_uid == other._uid) && 
		(mentionType == other.mentionType) &&
		(entityType == other.entityType) &&
		(entitySubtype == other.entitySubtype) &&
		(node == other.node) &&
		(_parent_index == other._parent_index) &&
		(_child_index == other._child_index) &&
		(_intendedType == other._intendedType) && 
		(_is_metonymy_mention == other._is_metonymy_mention) &&
		(_confidence == other._confidence) &&
		(_link_confidence == other._link_confidence) &&
		(_next_index == other._next_index) &&
		(_role == other._role));
}
bool Mention :: isIdenticalTo ( const Mention & other ) const { return ( ( _uid == other . _uid ) && ( mentionType == other . mentionType ) && ( entityType == other . entityType ) && ( entitySubtype == other . entitySubtype ) && ( node == other . node ) && ( _parent_index == other . _parent_index ) && ( _child_index == other . _child_index ) && ( _intendedType == other . _intendedType ) && ( _is_metonymy_mention == other . _is_metonymy_mention ) && ( _confidence == other . _confidence ) && ( _link_confidence == other . _link_confidence ) && ( _next_index == other . _next_index ) && ( _role == other . _role ) ) ; }
This was added for a sanity check in the serialization -- we want to
make sure that two mention objects that are different objects actually
hold identical data.
This was added for a sanity check in the serialization -- we want to make sure that two mention objects that are different objects actually hold identical data .
//(startChar == other.startChar) &&
 //(endChar == other.endChar) &&
 //(_mentionSet == other._mentionSet) &&
