src/Generic/UTCoref/LinkAllMentions.cpp
/* return the highest non-leaf node that has the same token span as node */
return the highest non-leaf node that has the same token span as node
return the highest non - leaf node that has the same token span as node
const SynNode *LinkAllMentions::move_up(const SynNode &node) {
   const SynNode *n = &node;
   while (n->getParent() != NULL && n->getParent()->getNChildren() == 1) {
	  n = n->getParent();
   }
   return n;
}
const SynNode * LinkAllMentions :: move_up ( const SynNode & node ) { const SynNode * n = & node ; while ( n -> getParent ( ) != NULL && n -> getParent ( ) -> getNChildren ( ) == 1 ) { n = n -> getParent ( ) ; } return n ; }
return the highest non-leaf node that has the same token span as node
return the highest non - leaf node that has the same token span as node