FreeLing  3.0
Public Member Functions | Private Attributes
punts Class Reference

Class numbers implements a punctuation sign recognizer. More...

#include <punts.h>

Inheritance diagram for punts:
Inheritance graph
[legend]
Collaboration diagram for punts:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 punts (const std::wstring &)
 Constructor.
virtual ~punts ()
void analyze (sentence &)
 analyze given sentence
void analyze (std::list< sentence > &)
 analyze given sentences
sentence analyze (const sentence &)
 analyze sentence, return analyzed copy
std::list< sentenceanalyze (const std::list< sentence > &)
 analyze sentences, return analyzed copy

Private Attributes

std::wstring tagOthers

Detailed Description

Class numbers implements a punctuation sign recognizer.


Constructor & Destructor Documentation

punts::punts ( const std::wstring &  puntFile)

Constructor.

Create a punctuation sign recognizer.

References database::access_database(), OTHER, and tagOthers.

virtual punts::~punts ( ) [inline, virtual]

Member Function Documentation

void punts::analyze ( sentence se) [virtual]

analyze given sentence

Detect and annotate punctuation signs in given sentence, using given options.

Implements processor.

References database::access_database(), util::has_alphanum(), tagOthers, TRACE, and TRACE_SENTENCE.

Referenced by analyze(), and maco::analyze().

void punts::analyze ( std::list< sentence > &  )

analyze given sentences

Reimplemented from processor.

analyze sentence, return analyzed copy

Check words in given sentence for punctuation.

Return copy

Reimplemented from processor.

References analyze().

std::list<sentence> punts::analyze ( const std::list< sentence > &  )

analyze sentences, return analyzed copy

Reimplemented from processor.


Member Data Documentation

std::wstring punts::tagOthers [private]

Referenced by analyze(), and punts().


The documentation for this class was generated from the following files: