Tanl Linguistic Pipeline

Tanl::SentenceReader Class Reference
[ClassifierDependency Parser]

Inheritance diagram for Tanl::SentenceReader:
Tanl::Enumerator< Sentence * > Tanl::Enumerator< Sentence * > Tanl::Disposable Tanl::Disposable Tanl::Disposable Tanl::Disposable Tanl::ConllXSentenceReader Tanl::DgaSentenceReader Tanl::SplitSentenceReader Tanl::TaggedSentenceReader Tanl::TokenSentenceReader

List of all members.

Public Member Functions

 SentenceReader (std::istream *is, Corpus *corpus)
 Creates a new SentenceReader.
virtual bool MoveNext ()
virtual SentenceCurrent ()
 the next sentence from the stream
virtual void reset ()
 Restart.
 SentenceReader (std::istream *is, Corpus *corpus)
 Creates a new SentenceReader.
virtual bool MoveNext ()
 ------------------------------------------------------------ Enumerator<Sentence*>
virtual SentenceCurrent ()
 the next sentence from the stream
virtual void Reset ()
 Restart.
virtual ~SentenceReader ()
 ------------------------------------------------------------

Public Attributes

Corpuscorpus

Protected Attributes

Sentencesentence
 the sentence read
std::istream * is
 stream where to read from
std::string line
 input line read

Constructor & Destructor Documentation

Tanl::SentenceReader::SentenceReader ( std::istream *  is,
Corpus corpus 
)

Creates a new SentenceReader.

Parameters:
is the stream containing the annotated sentences.
corpus Corpus to which the sentences belong.
Tanl::SentenceReader::SentenceReader ( std::istream *  is,
Corpus corpus 
)

Creates a new SentenceReader.

Parameters:
is the stream containing the annotated sentences.
corpus Corpus to which the sentences belong.

Member Function Documentation

virtual bool Tanl::SentenceReader::MoveNext (  )  [virtual]

------------------------------------------------------------ Enumerator<Sentence*>

Returns:
true if there is another sentence available

Implements Tanl::Enumerator< Sentence * >.

Reimplemented in Tanl::ConllXSentenceReader, Tanl::DgaSentenceReader, Tanl::TokenSentenceReader, Tanl::TaggedSentenceReader, and Tanl::SplitSentenceReader.

bool Tanl::SentenceReader::MoveNext (  )  [virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.