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