ModErn Text Analysis
META Enumerates Textual Applications
binarizer.h
Go to the documentation of this file.
1 
9 #ifndef META_PARSER_BINARIZER_H_
10 #define META_PARSER_BINARIZER_H_
11 
12 #include <stdexcept>
14 
15 namespace meta
16 {
17 namespace parser
18 {
19 
26 {
27  public:
28  std::unique_ptr<node> operator()(const leaf_node&) override;
29  std::unique_ptr<node> operator()(const internal_node&) override;
30 
31  class exception : public std::runtime_error
32  {
33  public:
34  using std::runtime_error::runtime_error;
35  };
36 };
37 }
38 }
39 
40 #endif
An internal node in a parse tree.
Definition: internal_node.h:28
std::unique_ptr< node > operator()(const leaf_node &) override
Definition: binarizer.cpp:48
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
A tree transformer that converts any n-ary productions to binary productions using provided head anno...
Definition: binarizer.h:25
Definition: binarizer.h:31
A leaf node (pre-terminal) in a parse tree.
Definition: leaf_node.h:24