Class numbers implements a punctuation sign recognizer. More...
#include <punts.h>
Public Member Functions | |
punts (const std::string &) | |
Constructor. | |
void | annotate (sentence &) |
Detect numbers in sentence with default options. | |
Private Attributes | |
std::map< std::string, std::string > | punct |
map of punctuation signs and corresponding parole tags |
Class numbers implements a punctuation sign recognizer.
punts::punts | ( | const std::string & | puntFile | ) |
void punts::annotate | ( | sentence & | se | ) |
Detect numbers in sentence with default options.
Detect and annotate punctuation signs in given sentence, using given options.
References OTHER, punct, TRACE, and TRACE_SENTENCE.
Referenced by maco::analyze().
std::map<std::string,std::string> punts::punct [private] |
map of punctuation signs and corresponding parole tags
Referenced by annotate(), and punts().