ModErn Text Analysis
META Enumerates Textual Applications
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
index
ranker
pivoted_length.h
Go to the documentation of this file.
1
9
#ifndef META_PIVOTED_LENGTH_H_
10
#define META_PIVOTED_LENGTH_H_
11
12
#include "
index/ranker/ranker.h
"
13
#include "
index/ranker/ranker_factory.h
"
14
15
namespace
meta
16
{
17
namespace
index
18
{
19
25
class
pivoted_length
:
public
ranker
26
{
27
public
:
29
const
static
std::string
id
;
30
32
const
static
constexpr
double
default_s
= 0.20;
33
37
pivoted_length
(
double
s = default_s);
38
42
double
score_one
(
const
score_data
& sd)
override
;
43
44
private
:
46
const
double
s_
;
47
};
48
53
template
<>
54
std::unique_ptr<ranker>
make_ranker<pivoted_length>
(
const
cpptoml::table&);
55
}
56
}
57
#endif
meta::index::make_ranker< pivoted_length >
std::unique_ptr< ranker > make_ranker< pivoted_length >(const cpptoml::table &)
Specialization of the factory method used to create pivoted_length rankers.
Definition:
pivoted_length.cpp:34
ranker.h
meta::index::ranker
A ranker scores a query against all the documents in an inverted index, returning a list of documents...
Definition:
ranker.h:41
ranker_factory.h
meta::index::pivoted_length::score_one
double score_one(const score_data &sd) override
Definition:
pivoted_length.cpp:22
meta::index::pivoted_length::id
static const std::string id
Identifier for this ranker.
Definition:
pivoted_length.h:29
meta
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition:
analyzer.h:24
meta::index::pivoted_length::s_
const double s_
s parameter for pivoted_length normalization
Definition:
pivoted_length.h:46
meta::index::pivoted_length
The pivoted document length normalization ranking function.
Definition:
pivoted_length.h:25
meta::index::score_data
A score_data object contains information needed to evaluate a ranking function.
Definition:
score_data.h:39
meta::index::pivoted_length::default_s
static const constexpr double default_s
Default value of s parameter.
Definition:
pivoted_length.h:32
meta::index::pivoted_length::pivoted_length
pivoted_length(double s=default_s)
Definition:
pivoted_length.cpp:17
Generated on Tue Mar 3 2015 23:20:16 for ModErn Text Analysis by
1.8.9.1