ModErn Text Analysis
META Enumerates Textual Applications
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
analyzers
multi_analyzer.h
Go to the documentation of this file.
1
10
#ifndef META_MULTI_ANALYZER_
11
#define META_MULTI_ANALYZER_
12
13
#include <vector>
14
#include <memory>
15
16
#include "
analyzers/analyzer.h
"
17
#include "
util/clonable.h
"
18
19
namespace
meta
20
{
21
namespace
analyzers
22
{
23
32
class
multi_analyzer
:
public
util::clonable
<analyzer, multi_analyzer>
33
{
34
public
:
39
multi_analyzer
(std::vector<std::unique_ptr<analyzer>>&& toks);
40
45
multi_analyzer
(
const
multi_analyzer
& other);
46
51
virtual
void
tokenize
(
corpus::document
& doc)
override
;
52
53
private
:
55
std::vector<std::unique_ptr<analyzer>>
analyzers_
;
56
};
57
}
58
}
59
60
#endif
meta::analyzers::multi_analyzer
The multi_analyzer class contains more than one analyzer.
Definition:
multi_analyzer.h:32
analyzer.h
meta::analyzers::multi_analyzer::tokenize
virtual void tokenize(corpus::document &doc) override
Tokenizes a file into a document.
Definition:
multi_analyzer.cpp:24
meta::util::multilevel_clonable
Template class to facilitate polymorphic cloning.
Definition:
clonable.h:28
clonable.h
meta::corpus::document
Represents an indexable document.
Definition:
document.h:31
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::multi_analyzer::multi_analyzer
multi_analyzer(std::vector< std::unique_ptr< analyzer >> &&toks)
Constructs a multi_analyzer from a vector of other analyzers.
Definition:
multi_analyzer.cpp:12
meta::analyzers::multi_analyzer::analyzers_
std::vector< std::unique_ptr< analyzer > > analyzers_
Holds all the analyzers in this multi_analyzer.
Definition:
multi_analyzer.h:55
Generated on Tue Mar 3 2015 23:20:16 for ModErn Text Analysis by
1.8.9.1