コード例 #1
0
ファイル: tfidf.cpp プロジェクト: zddhub/opensse
float IDF_simple::operator() (const InvertedIndex &index, uint termId, uint listId, uint /*docId*/) const
{
    float f_dt = index.invertedList()[termId][listId].second;
    return 1 + std::log(f_dt);
}