src/LearnIt/MatchInfo.cpp
/** Search for any matches of a given pattern in a given sentence.  Return a
  * vector of PatternMatch's, where each PatternMatch is a vector of SlotFillers.
  * For RELATION targets, each of these vectors will have two elements (for
  * slotx and sloty).  For CONCEPT targets, each of these vectors will have one
  * element (for slotx).
  */
Search for any matches of a given pattern in a given sentence.  Return a
vector of PatternMatch's, where each PatternMatch is a vector of SlotFillers.
For RELATION targets, each of these vectors will have two elements (for
slotx and sloty).  For CONCEPT targets, each of these vectors will have one
element (for slotx).
Search for any matches of a given pattern in a given sentence . Return a vector of PatternMatch ' s where each PatternMatch is a vector of SlotFillers . For RELATION targets each of these vectors will have two elements ( for slotx and sloty ) . For CONCEPT targets each of these vectors will have one element ( for slotx ) .
MatchInfo::PatternMatches MatchInfo::findPatternInSentence(const DocTheory* dt, 
			const SentenceTheory *sent_theory, LearnItPattern_ptr pattern) 
{
	AlignedDocSet_ptr doc_set = boost::shared_ptr<AlignedDocSet>();
	doc_set->loadDocTheory(LanguageVariant::getLanguageVariant(),dt);
	return findPatternInSentence(doc_set,sent_theory,pattern);
}
MatchInfo :: PatternMatches MatchInfo :: findPatternInSentence ( const DocTheory * dt , const SentenceTheory * sent_theory , LearnItPattern_ptr pattern ) { AlignedDocSet_ptr doc_set = boost :: shared_ptr < AlignedDocSet > ( ) ; doc_set -> loadDocTheory ( LanguageVariant :: getLanguageVariant ( ) , dt ) ; return findPatternInSentence ( doc_set , sent_theory , pattern ) ; }
Search for any matches of a given pattern in a given sentence.
Search for any matches of a given pattern in a given sentence .