Tanl Linguistic Pipeline

Tanl::SplitSentenceReader Class Reference
[Dependency Parser]

Read a plain text file, split into tokens and return one sentence at a time. More...

#include <SplitSentenceReader.h>

Inheritance diagram for Tanl::SplitSentenceReader:
Tanl::SentenceReader Tanl::Enumerator< Sentence * > Tanl::Enumerator< Sentence * > Tanl::Disposable Tanl::Disposable Tanl::Disposable Tanl::Disposable

List of all members.

Classes

struct  BoundarySet
 Parameters defininig where to split a sentence. More...

Public Member Functions

 SplitSentenceReader (std::istream *is, Corpus *corpus=0, BoundarySet const *bs=&defaultBS)
 Creates a new SplitSentenceReader.
bool MoveNext ()
 Return true if there is another sentence available.
void reset ()
 Restart.

Static Public Attributes

static BoundarySet const defaultBS

Detailed Description

Read a plain text file, split into tokens and return one sentence at a time.


Constructor & Destructor Documentation

Tanl::SplitSentenceReader::SplitSentenceReader ( std::istream *  is,
Corpus corpus = 0,
BoundarySet const *  bs = &defaultBS 
)

Creates a new SplitSentenceReader.

Parameters:
is the stream containing the sentence to read.
lang the language of the document.

Member Function Documentation

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

Return true if there is another sentence available.

Reimplemented from Tanl::SentenceReader.

References Parser::Tokenizer::Current(), Parser::Tokenizer::MoveNext(), and Tanl::SentenceReader::sentence.


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.