DeSR Dependency Parser

Parser::ParseState Class Reference

Parse state. More...

#include <State.h>

Inheritance diagram for Parser::ParseState:

Inheritance graph
Collaboration diagram for Parser::ParseState:

Collaboration graph

List of all members.

Public Member Functions

 ParseState (Sentence &sent, GlobalInfo *globalInfo, WordIndex &predIndex)
 ParseState (ParseState &prev)
void dispose ()
bool hasNext ()
Tanl::Classifier::Context * next ()
ParseStatetransition (Action action)
 Perform action represented by string action.
TreeTokencopy (TreeToken *x)

Public Attributes

double lprob
 log probability

Protected Attributes

WordIndexpredIndex
Tanl::Classifier::Context context
int refCount
 how many alternatives refer to this


Detailed Description

Parse state.

Provides a stream of Tanl::Classifier::Context's from a Sentence.

Definition at line 224 of file State.h.


Member Function Documentation

bool Parser::ParseState::hasNext (  ) 

Context * Parser::ParseState::next (  )  [virtual]

ParseState * Parser::ParseState::transition ( Action  action  ) 

Perform action represented by string action.

Returns:
next ParseState if action was succesfully performed.

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().


The documentation for this class was generated from the following files:
 
Copyright © 2005-2007 G. Attardi. Generated on 13 Aug 2009 by doxygen 1.5.7.1.