ModErn Text Analysis
META Enumerates Textual Applications
|
A tree transformer that converts any n-ary productions to binary productions using provided head annotations. More...
#include <binarizer.h>
Classes | |
class | exception |
Public Member Functions | |
std::unique_ptr< node > | operator() (const leaf_node &) override |
std::unique_ptr< node > | operator() (const internal_node &) override |
Additional Inherited Members | |
Public Types inherited from meta::parser::const_visitor< std::unique_ptr< node > > | |
using | result_type = std::unique_ptr< node > |
The result of running the visitor over the tree. | |
A tree transformer that converts any n-ary productions to binary productions using provided head annotations.
This class assumes that its input has its heads annotated by e.g. running a head_finder first.
Implements meta::parser::tree_transformer.
|
overridevirtual |
Implements meta::parser::tree_transformer.