ModErn Text Analysis
META Enumerates Textual Applications
depth_featurizer.h
Go to the documentation of this file.
1 
10 #ifndef META_DEPTH_FEATURIZER_H_
11 #define META_DEPTH_FEATURIZER_H_
12 
14 #include "util/clonable.h"
15 
16 namespace meta
17 {
18 namespace analyzers
19 {
20 
25  : public util::clonable<tree_featurizer, depth_featurizer>
26 {
27  public:
34  const parser::parse_tree& tree) const override;
35 
37  const static std::string id;
38 };
39 }
40 }
41 
42 #endif
Represents the parse tree for a sentence.
Definition: parse_tree.h:32
void tree_tokenize(corpus::document &doc, const parser::parse_tree &tree) const override
Extracts the height of each parse tree.
Definition: depth_featurizer.cpp:37
Template class to facilitate polymorphic cloning.
Definition: clonable.h:28
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
static const std::string id
Identifier for this featurizer.
Definition: depth_featurizer.h:37
Tokenizes parse trees by extracting depth features.
Definition: depth_featurizer.h:24