ModErn Text Analysis
META Enumerates Textual Applications
tree_featurizer.h
Go to the documentation of this file.
1 
9 #ifndef META_TREE_FEATURIZER_H_
10 #define META_TREE_FEATURIZER_H_
11 
12 #include "corpus/document.h"
14 
15 namespace meta
16 {
17 namespace analyzers
18 {
19 
25 {
26  public:
30  virtual ~tree_featurizer() = default;
31 
37  virtual void tree_tokenize(corpus::document& doc,
38  const parser::parse_tree& tree) const = 0;
39 };
40 }
41 }
42 
43 #endif
virtual void tree_tokenize(corpus::document &doc, const parser::parse_tree &tree) const =0
Represents the parse tree for a sentence.
Definition: parse_tree.h:32
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
Base class for featurizers that convert trees into features in a document.
Definition: tree_featurizer.h:24
virtual ~tree_featurizer()=default
Destructor.