quantities Class Reference

Class quantities implements a wrapper to transparently create and access a quantities_module monetary expressions detector for the appropriate language. More...

#include <quantities.h>

Collaboration diagram for quantities:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

quantities_modulewho
 remember which module is doing the real work.

Detailed Description

Class quantities implements a wrapper to transparently create and access a quantities_module monetary expressions detector for the appropriate language.


Constructor & Destructor Documentation

quantities::quantities ( const std::string &  Lang,
const std::string &  currFile 
)

Constructor.

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

References who.

quantities::~quantities (  ) 

Destructor.

Destroy the wrapper and the wrapped quantities_module.

References who.


Member Function Documentation

void quantities::annotate ( sentence &  s  ) 

Detect time expressions in sentence using default options.

wrapper methods: just call the wrapped quantities_module.

References automat::annotate(), and who.

Referenced by maco::analyze().


Member Data Documentation

remember which module is doing the real work.

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


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