ModErn Text Analysis
META Enumerates Textual Applications
|
A tree transformer that removes annotations (currently only Penn Treebank style) from trees. More...
#include <annotation_remover.h>
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 removes annotations (currently only Penn Treebank style) from trees.
This effectively truncates rule names before the first -, =, or |, with a few exceptions (-LRB-, -RRB-, -, etc.).
|
overridevirtual |
Implements meta::parser::tree_transformer.
|
overridevirtual |
Implements meta::parser::tree_transformer.