DeSR Dependency Parser |
#include <State.h>
Public Member Functions | |
ParseState (Sentence &sent, GlobalInfo *globalInfo, WordIndex &predIndex) | |
ParseState (ParseState &prev) | |
void | dispose () |
bool | hasNext () |
Tanl::Classifier::Context * | next () |
ParseState * | transition (Action action) |
Perform action represented by string action . | |
TreeToken * | copy (TreeToken *x) |
Public Attributes | |
double | lprob |
log probability | |
Protected Attributes | |
WordIndex & | predIndex |
Tanl::Classifier::Context | context |
int | refCount |
how many alternatives refer to this |
Provides a stream of Tanl::Classifier::Context's from a Sentence.
Definition at line 224 of file State.h.
bool Parser::ParseState::hasNext | ( | ) |
Reimplemented from Parser::State.
Definition at line 868 of file State.cpp.
References Tanl::Token::getPos(), Tanl::TreeToken::id, Tanl::TreeToken::linkHead(), Tanl::TreeToken::linkLabel(), Tanl::Language::rootPos(), Tanl::TreeToken::size(), Parser::State::stack, and Tanl::TreeToken::token.
Referenced by Parser::MlParser::parse(), Parser::MeParser::parse(), and Parser::ApParser::parse().
Context * Parser::ParseState::next | ( | ) | [virtual] |
Implements Parser::Iterator< Tanl::Classifier::Context * >.
Definition at line 907 of file State.cpp.
References Parser::State::predicates().
Referenced by Parser::MlParser::parse(), Parser::MeParser::parse(), and Parser::ApParser::parse().
ParseState * Parser::ParseState::transition | ( | Action | action | ) |
Perform action represented by string action
.
Reimplemented from Parser::State.
Definition at line 921 of file State.cpp.
References Parser::State::extracted, Parser::State::input, Parser::State::ispunct, Tanl::Text::RegExp::Pattern::test(), and Parser::State::transition().
Referenced by Parser::MlParser::parse(), Parser::MeParser::parse(), and Parser::ApParser::parse().