FreeLing  3.0
Public Member Functions | Private Attributes
ner Class Reference

Class ner implements a wrapper to transparently create and access a ner_module named entity recognizer. More...

#include <ner.h>

Collaboration diagram for ner:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ner (const std::wstring &)
 Constructor.
 ~ner ()
 Destructor.
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

ner_modulewho
 remember which module is doing the real work.

Detailed Description

Class ner implements a wrapper to transparently create and access a ner_module named entity recognizer.


Constructor & Destructor Documentation

ner::ner ( const std::wstring &  npFile)

Constructor.

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

References ERROR_CRASH, util::lowercase(), and util::open_utf8_file().

ner::~ner ( )

Destructor.

Destroy the wrapper and the wrapped ner_module.


Member Function Documentation

void ner::analyze ( sentence s)

analyze given sentence

wrapper methods: just call the wrapped ner_module.

Referenced by maco::analyze().

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

analyze given sentences

sentence ner::analyze ( const sentence s)

analyze sentence, return analyzed copy

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

analyze sentences, return analyzed copy


Member Data Documentation

ner_module* ner::who [private]

remember which module is doing the real work.


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