ModErn Text Analysis
META Enumerates Textual Applications
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
parser
analyzers
featurizers
branch_featurizer.h
Go to the documentation of this file.
1
10
#ifndef META_BRANCH_FEATURIZER_H_
11
#define META_BRANCH_FEATURIZER_H_
12
13
#include "
parser/analyzers/featurizers/tree_featurizer.h
"
14
#include "
util/clonable.h
"
15
16
namespace
meta
17
{
18
namespace
analyzers
19
{
20
24
class
branch_featurizer
25
:
public
util::clonable
<tree_featurizer, branch_featurizer>
26
{
27
public
:
33
void
tree_tokenize
(
corpus::document
& doc,
34
const
parser::parse_tree
& tree)
const override
;
35
37
const
static
std::string
id
;
38
};
39
}
40
}
41
42
#endif
meta::parser::parse_tree
Represents the parse tree for a sentence.
Definition:
parse_tree.h:32
meta::analyzers::branch_featurizer
Tokenizes parse trees by extracting branching factor features.
Definition:
branch_featurizer.h: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
tree_featurizer.h
meta::analyzers::branch_featurizer::id
static const std::string id
Identifier for this featurizer.
Definition:
branch_featurizer.h:37
meta::analyzers::branch_featurizer::tree_tokenize
void tree_tokenize(corpus::document &doc, const parser::parse_tree &tree) const override
Keeps track of the branching factor for this document's parse_trees.
Definition:
branch_featurizer.cpp:44
Generated on Tue Mar 3 2015 23:20:16 for ModErn Text Analysis by
1.8.9.1