| DeSR Dependency Parser |
#include <State.h>


Public Member Functions | |
| TrainState (Sentence const &sent, GlobalInfo *info) | |
| bool | hasNext () |
| Tanl::Classifier::Event * | next () |
Protected Member Functions | |
| Action | nextAction () |
| Compute next parse action. | |
Protected Attributes | |
| Sentence | annotated |
| the annotated sentence | |
| std::vector< int > | dependents |
| count of dependents of each node | |
Definition at line 195 of file State.h.
| bool Parser::TrainState::hasNext | ( | ) | [inline] |
Reimplemented from Parser::State.
Definition at line 201 of file State.h.
Referenced by Parser::EventStream::EoS(), and Parser::EventStream::hasNext().
| Event * Parser::TrainState::next | ( | ) | [virtual] |
Implements Parser::Iterator< Tanl::Classifier::Event * >.
Definition at line 857 of file State.cpp.
References nextAction(), and Parser::State::predicates().
Referenced by Parser::EventStream::next().
| Action Parser::TrainState::nextAction | ( | ) | [protected] |
Compute next parse action.
Determines the action (LRSEI) required to build the dependency tree.
Definition at line 739 of file State.cpp.
References annotated, dependents, Parser::State::extracted, Tanl::TreeToken::id, Parser::State::input, and Parser::State::stack.
Referenced by next().