ModErn Text Analysis
META Enumerates Textual Applications
|
This is a visitor that converts a parse tree into a POS-tagged sequence. More...
#include <sequence_extractor.h>
Public Member Functions | |
void | operator() (const leaf_node &) override |
void | operator() (const internal_node &) override |
sequence::sequence | sequence () |
Extracts the sequence found. More... | |
Private Attributes | |
sequence::sequence | seq_ |
Storage for the partial sequence thus far. | |
Additional Inherited Members | |
Public Types inherited from meta::parser::const_visitor< void > | |
using | result_type = void |
The result of running the visitor over the tree. | |
This is a visitor that converts a parse tree into a POS-tagged sequence.
This is currently used to extract test data from a treebank for the parser.
|
overridevirtual |
Implements meta::parser::const_visitor< void >.
|
overridevirtual |
Implements meta::parser::const_visitor< void >.
sequence::sequence meta::parser::sequence_extractor::sequence | ( | ) |
Extracts the sequence found.
This moves the sequence out of the extractor.