src/PredFinder/inference/EIUtils.cpp
// Add orphan dates that are close to this mention

Add orphan dates that are close to this mention
Add orphan dates that are close to this mention
BOOST_FOREACH(const ValueMention* orphan, orphanedDates){
				if((orphan->getEndToken() == ment->getNode()->getEndToken()) &&
					orphan->getStartToken() == ment->getNode()->getStartToken()){
					dateMentions.insert(orphan);
				} 
				else if((ment->getNode()->getParent() != 0) &&
					(ment->getNode()->getParent()->getTag() == Symbol(L"PP")) &&
					(orphan->getStartToken() == (ment->getNode()->getEndToken()+2))){
					dateMentions.insert(orphan);
				} 
			}
BOOST_FOREACH ( const ValueMention * orphan , orphanedDates ) { if ( ( orphan -> getEndToken ( ) == ment -> getNode ( ) -> getEndToken ( ) ) && orphan -> getStartToken ( ) == ment -> getNode ( ) -> getStartToken ( ) ) { dateMentions . insert ( orphan ) ; } else if ( ( ment -> getNode ( ) -> getParent ( ) != 0 ) && ( ment -> getNode ( ) -> getParent ( ) -> getTag ( ) == Symbol ( L" " ) ) && ( orphan -> getStartToken ( ) == ( ment -> getNode ( ) -> getEndToken ( ) + 2 ) ) ) { dateMentions . insert ( orphan ) ; } }
Add orphan dates that are close to this mention
Add orphan dates that are close to this mention
//std::wcout<<"\torphan: "<<orphan->getDocValue()->getTimexVal().to_string()<<" --"<<orphan->getStartToken()<<", "<<orphan->getEndToken()<<std::endl;
 //std::wcout<<"\t***inserted"<<std::endl;
 //std::wcout<<"\t***inserted"<<std::endl;
