const std::string& Summarizer::getBestMatchStr(const std::string& str) const { int pos = getBestMatchIndex(str); assert(pos !=- 1); return strings[pos].str; }
float Summarizer::getPosY(const std::string& str) const { int best = getBestMatchIndex(str); if(best!=-1) { return calcPosY(best); } return calcPosY(0); }