src/Generic/theories/DocumentRelMentionSet.cpp
/* this class is set to hold all the relMentionSet in a document
*/
this class is set to hold all the relMentionSet in a document
this class is set to hold all the relMentionSet in a document
DocumentRelMentionSet::DocumentRelMentionSet(DocTheory *docTheory):	
	_n_relMentions(0), _n_mentions(0),	_n_sentences(0), _docTheory(docTheory)
{
		for (int i = 0; i < docTheory->getNSentences(); i++) {
			SentenceTheory *sentTheory = docTheory->getSentenceTheory(i);
			RelMentionSet *rmSet = sentTheory->getRelMentionSet();
			MentionSet *mentSet = sentTheory->getMentionSet();
			addSentence(mentSet, rmSet);
		}
		_n_sentences = docTheory->getNSentences();;
}
DocumentRelMentionSet :: DocumentRelMentionSet ( DocTheory * docTheory ) : _n_relMentions ( 0 ) , _n_mentions ( 0 ) , _n_sentences ( 0 ) , _docTheory ( docTheory ) { for ( int i = 0 ; i < docTheory -> getNSentences ( ) ; i ++ ) { SentenceTheory * sentTheory = docTheory -> getSentenceTheory ( i ) ; RelMentionSet * rmSet = sentTheory -> getRelMentionSet ( ) ; MentionSet * mentSet = sentTheory -> getMentionSet ( ) ; addSentence ( mentSet , rmSet ) ; } _n_sentences = docTheory -> getNSentences ( ) ; ; }
this class is set to hold all the relMentionSet in a document
this class is set to hold all the relMentionSet in a document