ModErn Text Analysis
META Enumerates Textual Applications
|
A tree transformer that removes trace elements (like "-NONE-" in the Penn Treebank) as well as nodes with empty yields. More...
#include <empty_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 trace elements (like "-NONE-" in the Penn Treebank) as well as nodes with empty yields.
|
overridevirtual |
Implements meta::parser::tree_transformer.
|
overridevirtual |
Implements meta::parser::tree_transformer.