src/English/relations/en_ComboRelationFinder.cpp
/** Generate a description of a mention, for debugging purposes. */
Generate a description of a mention, for debugging purposes.
Generate a description of a mention for debugging purposes .
void debugDescribeMention(std::wstring label, const Mention *mention, SentenceTheory *sentTheory, UTF8OutputStream &out) {
		out << label << "\n";
		if (sentTheory) {
			out << "  Character Span: ["
				<< sentTheory->getTokenSequence()->getToken(mention->getNode()->getStartToken())->getStartEDTOffset() << L":"
				<< sentTheory->getTokenSequence()->getToken(mention->getNode()->getEndToken())->getEndEDTOffset()  << L"]\n";
			out << "  DocID: " << sentTheory->getDocID() << L"\n";
		}
		out << L"  Text: " << mention->getNode()->toTextString() << L"\n";
		out << L"  Mention Type: " << mention->getTypeString(mention->getMentionType()) << L"\n";
		out << L"  Entity Type: " << mention->getEntityType().getName().to_string() << L"\n";
		out << L"  Entity Subtype: " << mention->getEntitySubtype().getName().to_string() << L"\n";
	}
void debugDescribeMention ( std :: wstring label , const Mention * mention , SentenceTheory * sentTheory , UTF8OutputStream & out ) { out << label << " \n " ; if ( sentTheory ) { out << " " << sentTheory -> getTokenSequence ( ) -> getToken ( mention -> getNode ( ) -> getStartToken ( ) ) -> getStartEDTOffset ( ) << L" " << sentTheory -> getTokenSequence ( ) -> getToken ( mention -> getNode ( ) -> getEndToken ( ) ) -> getEndEDTOffset ( ) << L" \n " ; out << " " << sentTheory -> getDocID ( ) << L" \n " ; } out << L" " << mention -> getNode ( ) -> toTextString ( ) << L" \n " ; out << L" " << mention -> getTypeString ( mention -> getMentionType ( ) ) << L" \n " ; out << L" " << mention -> getEntityType ( ) . getName ( ) . to_string ( ) << L" \n " ; out << L" " << mention -> getEntitySubtype ( ) . getName ( ) . to_string ( ) << L" \n " ; }
Generate a description of a mention, for debugging purposes.
Generate a description of a mention for debugging purposes .