nec Class Reference

The class nec implements a ML-based NE classificator. More...

#include <nec.h>

List of all members.

Public Member Functions

 nec (const std::string &, const std::string &)
 Constructor.
 ~nec ()
 Destructor.
void analyze (std::list< sentence > &) const
 Classify NEs in given sentence.
std::list< sentence > analyze (const std::list< sentence > &) const
 Return annotated copy (useful for perl/python/java APIs).

Private Attributes

fex * extractor
 feature extractor
std::map< std::string, int > lexicon
 lexicon to translate symbolic features to integer indexes
adaboost * classifier
 adaboost classifier
std::string NPtag

Detailed Description

The class nec implements a ML-based NE classificator.


Constructor & Destructor Documentation

nec::nec ( const std::string &  tag,
const std::string &  filepref 
)

Constructor.

Create a named entity classification module, loading appropriate files.

References classifier, extractor, and TRACE.

nec::~nec (  ) 

Destructor.

Destructor: delete pointers.

References classifier, and extractor.


Member Function Documentation

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

Return annotated copy (useful for perl/python/java APIs).

void nec::analyze ( std::list< sentence > &  ls  )  const

Classify NEs in given sentence.

References classifier, extractor, NPtag, TRACE, and TRACE_SENTENCE.


Member Data Documentation

adaboost* nec::classifier [private]

adaboost classifier

Referenced by analyze(), nec(), and ~nec().

fex* nec::extractor [private]

feature extractor

Referenced by analyze(), nec(), and ~nec().

std::map<std::string,int> nec::lexicon [private]

lexicon to translate symbolic features to integer indexes

std::string nec::NPtag [private]

Referenced by analyze().


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