DeSR Dependency Parser

Parser::TrainState Class Reference

Parser training state. More...

#include <State.h>

Inheritance diagram for Parser::TrainState:

Inheritance graph
Collaboration diagram for Parser::TrainState:

Collaboration graph

List of all members.

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


Detailed Description

Parser training state.

Definition at line 195 of file State.h.


Member Function Documentation

bool Parser::TrainState::hasNext (  )  [inline]

Returns:
whether this is a final state.

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]

Returns:
the training event, consisting of features representing the state.

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


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.