numbers Class Reference

Class numbers implements a wrapper to transparently create and access a numbers_module number recognizer for the appropriate language. More...

#include <numbers.h>

Collaboration diagram for numbers:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 numbers (const std::string &, const std::string &, const std::string &)
 Constructor.
 ~numbers ()
 Destructor.
void annotate (sentence &)
 Detect number expressions in sentence using default options.

Private Attributes

numbers_modulewho
 remember which module is doing the real work.

Detailed Description

Class numbers implements a wrapper to transparently create and access a numbers_module number recognizer for the appropriate language.


Constructor & Destructor Documentation

numbers::numbers ( const std::string &  Lang,
const std::string &  Decimal,
const std::string &  Thousand 
)

Constructor.

Create the appropriate numbers_module (according to received options), and create a wrapper to access it.

References who.

numbers::~numbers (  ) 

Destructor.

Destroy the wrapper and the wrapped numbers_module.

References who.


Member Function Documentation

void numbers::annotate ( sentence &  s  ) 

Detect number expressions in sentence using default options.

wrapper methods: just call the wrapped numbers_module.

References automat::annotate(), and who.

Referenced by maco::analyze().


Member Data Documentation

remember which module is doing the real work.

Referenced by annotate(), numbers(), and ~numbers().


The documentation for this class was generated from the following files:
Generated on Tue Jul 27 16:29:32 2010 for FreeLing by  doxygen 1.6.3