ModErn Text Analysis
META Enumerates Textual Applications
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
analyzers
ngram
ngram_analyzer.h
Go to the documentation of this file.
1
9
#ifndef META_NGRAM_ANALYZER_H_
10
#define META_NGRAM_ANALYZER_H_
11
12
#include <deque>
13
14
#include "
analyzers/analyzer.h
"
15
#include "
util/clonable.h
"
16
17
namespace
meta
18
{
19
namespace
analyzers
20
{
21
27
class
ngram_analyzer
:
public
analyzer
28
{
29
public
:
34
ngram_analyzer
(uint16_t n);
35
39
virtual
uint16_t
n_value
()
const
;
40
41
protected
:
47
virtual
std::string
wordify
(
const
std::deque<std::string>& words)
const
;
48
49
private
:
51
uint16_t
n_val_
;
52
};
53
}
54
}
55
56
#endif
analyzer.h
meta::analyzers::ngram_analyzer::n_val_
uint16_t n_val_
The value of n for this ngram analyzer.
Definition:
ngram_analyzer.h:51
meta::analyzers::ngram_analyzer::n_value
virtual uint16_t n_value() const
Definition:
ngram_analyzer.cpp:18
clonable.h
meta::analyzers::ngram_analyzer::ngram_analyzer
ngram_analyzer(uint16_t n)
Constructor.
Definition:
ngram_analyzer.cpp:13
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::analyzers::analyzer
An class that provides a framework to produce token counts from documents.
Definition:
analyzer.h:41
meta::analyzers::ngram_analyzer::wordify
virtual std::string wordify(const std::deque< std::string > &words) const
Turns a list of words into an ngram string.
Definition:
ngram_analyzer.cpp:23
meta::analyzers::ngram_analyzer
Analyzes documents based on an ngram word model, where the value for n is supplied by the user...
Definition:
ngram_analyzer.h:27
Generated on Tue Mar 3 2015 23:20:16 for ModErn Text Analysis by
1.8.9.1