ModErn Text Analysis
META Enumerates Textual Applications
sequence_extractor.h
Go to the documentation of this file.
1 
9 #include "parser/trees/visitors/visitor.h"
11 #include "parser/trees/leaf_node.h"
12 #include "sequence/sequence.h"
13 
14 namespace meta
15 {
16 namespace parser
17 {
18 
24 class sequence_extractor : public const_visitor<void>
25 {
26  public:
27  void operator()(const leaf_node&) override;
28  void operator()(const internal_node&) override;
29 
38 
39  private:
42 };
43 }
44 }
void operator()(const leaf_node &) override
Definition: sequence_extractor.cpp:15
An internal node in a parse tree.
Definition: internal_node.h:28
Represents a tagged sequence of observations.
Definition: sequence.h:24
sequence::sequence seq_
Storage for the partial sequence thus far.
Definition: sequence_extractor.h:41
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24
sequence::sequence sequence()
Extracts the sequence found.
Definition: sequence_extractor.cpp:30
Abstract base class for visitors over parse trees that do not modify the underlying tree...
Definition: visitor.h:25
This is a visitor that converts a parse tree into a POS-tagged sequence.
Definition: sequence_extractor.h:24
A leaf node (pre-terminal) in a parse tree.
Definition: leaf_node.h:24