ModErn Text Analysis
META Enumerates Textual Applications
tag_featurizer.h
Go to the documentation of this file.
1 
10 #ifndef META_TAG_FEATURIZER_H_
11 #define META_TAG_FEATURIZER_H_
12 
14 #include "util/clonable.h"
15 
16 namespace meta
17 {
18 namespace analyzers
19 {
20 
24 class tag_featurizer : public util::clonable<tree_featurizer, tag_featurizer>
25 {
26  public:
33  const parser::parse_tree& tree) const override;
34 
36  const static std::string id;
37 };
38 }
39 }
40 
41 #endif
Represents the parse tree for a sentence.
Definition: parse_tree.h:32
Template class to facilitate polymorphic cloning.
Definition: clonable.h:28
Tokenizes parse trees by looking at labels of leaf and interior nodes.
Definition: tag_featurizer.h:24
Represents an indexable document.
Definition: document.h:31
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
void tree_tokenize(corpus::document &doc, const parser::parse_tree &tree) const override
Counts occurrences of leaf and interior node labels.
Definition: tag_featurizer.cpp:46
static const std::string id
Identifier for this featurizer.
Definition: tag_featurizer.h:36