src/MentionMapper/mentionMapperMain.cpp
/*! TEMP - has nothing to do with the project: check if all mentions in an entity have the same 
	entity type as the entity itself
*/
has nothing to do with the project: check if all mentions in an entity have the same
entity type as the entity itself
has nothing to do with the project : check if all mentions in an entity have the same entity type as the entity itself
bool checkMentionETypes(DocTheory* dt) {
	bool toret=true;
	EntitySet* es=dt->getEntitySet();
	for ( int i=0; i < es->getNEntities(); i++ ) {
		Entity* ent=es->getEntity(i);
		std::wstring etype=ent->getType().getName().to_string();
		for ( int k=0; k < ent->getNMentions(); k++ ) {
			Mention* men=es->getMention(ent->getMention(k));
			std::wstring metype=men->getEntityType().getName().to_string();
			std::wstring mname=men->getHead()->toTextString();
			if ( mname.find(L"forces") != mname.npos ) {
				std::wcout << "doc=" << dt->getSentenceTheory(0)->getDocID().to_string() 
					<< ", ent=" << ent->getCanonicalNameOneWord() << "(" << etype << "), men=" 
					<< men->getNode()->toTextString() << "(" << metype << ")\n";
			}
		}
	}
	return toret;
}
bool checkMentionETypes ( DocTheory * dt ) { bool toret = true ; EntitySet * es = dt -> getEntitySet ( ) ; for ( int i = 0 ; i < es -> getNEntities ( ) ; i ++ ) { Entity * ent = es -> getEntity ( i ) ; std :: wstring etype = ent -> getType ( ) . getName ( ) . to_string ( ) ; for ( int k = 0 ; k < ent -> getNMentions ( ) ; k ++ ) { Mention * men = es -> getMention ( ent -> getMention ( k ) ) ; std :: wstring metype = men -> getEntityType ( ) . getName ( ) . to_string ( ) ; std :: wstring mname = men -> getHead ( ) -> toTextString ( ) ; if ( mname . find ( L" " ) != mname . npos ) { std :: wcout << " " << dt -> getSentenceTheory ( 0 ) -> getDocID ( ) . to_string ( ) << " " << ent -> getCanonicalNameOneWord ( ) << " " << etype << " " << men -> getNode ( ) -> toTextString ( ) << " " << metype << " \n " ; } } } return toret ; }
TEMP - has nothing to do with the project: check if all mentions in an entity have the same
entity type as the entity itself
TEMP - has nothing to do with the project : check if all mentions in an entity have the same entity type as the entity itself
/*if ( metype != etype ) {
				toret = false;
				std::wcout << "doc=" << dt->getSentenceTheory(0)->getDocID().to_string() 
					<< ", ent=" << ent->getCanonicalNameOneWord() << "(" << etype << "), men=" 
					<< men->getNode()->toTextString() << "(" << metype << ")\n";
			}*/