FreeLing  3.0
Public Member Functions | Private Attributes
nec Class Reference

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

#include <nec.h>

Inheritance diagram for nec:
Inheritance graph
[legend]
Collaboration diagram for nec:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

fexextractor
 feature extractor
classifierclassif
 adaboost classifier
std::wstring NPtag

Detailed Description

The class nec implements a ML-based NE classificator.


Constructor & Destructor Documentation

nec::nec ( const std::wstring &  necFile)

Constructor.

Create a named entity classification module, loading appropriate files.

References util::absolute(), ERROR_CRASH, nerc_features::functions, util::open_utf8_file(), and TRACE.

nec::~nec ( )

Destructor.

Destructor: delete pointers.


Member Function Documentation

void nec::analyze ( sentence se) [virtual]

analyze given sentence

Classify NEs in given sentence.

Implements processor.

References example::add_feature(), util::double2wstring(), util::int2wstring(), TRACE, and TRACE_SENTENCE.

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

analyze given sentences

Classify NEs in given sentence.

Reimplemented from processor.

References processor::analyze().

sentence nec::analyze ( const sentence s)

analyze sentence, return analyzed copy

Classify NEs in given sentence, return analyzed copy.

Reimplemented from processor.

References processor::analyze().

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

analyze sentences, return analyzed copy

Classify NEs in given sentences, return analyzed copy.

Reimplemented from processor.

References processor::analyze().


Member Data Documentation

adaboost classifier

fex* nec::extractor [private]

feature extractor

std::wstring nec::NPtag [private]

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