ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | List of all members
meta::parser::empty_remover Class Reference

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>

Inheritance diagram for meta::parser::empty_remover:
meta::parser::tree_transformer meta::parser::const_visitor< std::unique_ptr< node > >

Public Member Functions

std::unique_ptr< nodeoperator() (const leaf_node &) override
 
std::unique_ptr< nodeoperator() (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.
 

Detailed Description

A tree transformer that removes trace elements (like "-NONE-" in the Penn Treebank) as well as nodes with empty yields.

Member Function Documentation

std::unique_ptr< node > meta::parser::empty_remover::operator() ( const leaf_node )
overridevirtual
Returns
the result of running the visitor on the supplied leaf node

Implements meta::parser::tree_transformer.

std::unique_ptr< node > meta::parser::empty_remover::operator() ( const internal_node )
overridevirtual
Returns
the result of running the visitor on the supplied internal node

Implements meta::parser::tree_transformer.


The documentation for this class was generated from the following files: