1 #ifndef CONCORDIA_SEARCH_RESULT_HDR
2 #define CONCORDIA_SEARCH_RESULT_HDR
4 #include "concordia/common/config.hpp"
5 #include "concordia/matched_pattern_fragment.hpp"
6 #include "concordia/tokenized_sentence.hpp"
8 #include <boost/shared_ptr.hpp>
54 return _tokenizedPattern;
61 return _matchedPatternFragments;
75 return _bestOverlayScore;
78 friend std::ostream & operator << (std::ostream & o,
80 o <<
"Best overlay {" << std::endl;
83 o << fragment << std::endl;
85 o <<
"}" << std::endl;
86 o <<
"All fragments {" << std::endl;
89 o << fragment << std::endl;
97 void _checkPossibleOverlays(
98 std::vector<MatchedPatternFragment> currentOverlay,
99 SUFFIX_MARKER_TYPE lastAddedPos,
100 SUFFIX_MARKER_TYPE patternSize);
104 std::vector<MatchedPatternFragment> _matchedPatternFragments;
106 std::vector<MatchedPatternFragment> _bestOverlay;
108 double _bestOverlayScore;
virtual ~ConcordiaSearchResult()
Definition: concordia_search_result.cpp:12
ConcordiaSearchResult(TokenizedSentence tokenizedPattern)
Definition: concordia_search_result.cpp:6
void addFragment(const MatchedPatternFragment &fragment)
Definition: concordia_search_result.cpp:15
void computeBestOverlay()
Definition: concordia_search_result.cpp:26
void sortFragments()
Definition: concordia_search_result.cpp:20
Definition: tokenized_sentence.hpp:26
std::vector< MatchedPatternFragment > getBestOverlay() const
Definition: concordia_search_result.hpp:67
double getBestOverlayScore() const
Definition: concordia_search_result.hpp:74
Definition: matched_pattern_fragment.hpp:21
std::vector< MatchedPatternFragment > getFragments() const
Definition: concordia_search_result.hpp:60
Definition: concordia_search_result.hpp:24
TokenizedSentence getTokenizedPattern() const
Definition: concordia_search_result.hpp:53