ModErn Text Analysis
META Enumerates Textual Applications
unary_chain_remover.h
Go to the documentation of this file.
1 
9 #ifndef META_PARSE_UNARY_CHAIN_REMOVER_H_
10 #define META_PARSE_UNARY_CHAIN_REMOVER_H_
11 
13 
14 namespace meta
15 {
16 namespace parser
17 {
18 
25 {
26  public:
27  std::unique_ptr<node> operator()(const leaf_node&) override;
28  std::unique_ptr<node> operator()(const internal_node&) override;
29 };
30 }
31 }
32 
33 #endif
An internal node in a parse tree.
Definition: internal_node.h:28
Transforms trees by removing any unary X -> X rules.
Definition: unary_chain_remover.h:24
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
Abstract base class for tree transformers.
Definition: tree_transformer.h:25
std::unique_ptr< node > operator()(const leaf_node &) override
Definition: unary_chain_remover.cpp:16
A leaf node (pre-terminal) in a parse tree.
Definition: leaf_node.h:24