FreeLing
4.0
|
Abstract class to define the common API of any FreeLing processing module. More...
#include <processor.h>
Public Member Functions | |
processor () | |
constructor | |
virtual | ~processor () |
destructor | |
virtual void | analyze (sentence &) const =0 |
analyze sentence/document. Pure virtual, must be provided by instance | |
virtual void | analyze (std::list< sentence > &ls) const |
analyze list of sentences (paragraph) | |
virtual void | analyze (document &doc) const |
analyze document | |
virtual sentence | analyze (const sentence &s) const |
analyze sentence/document, return analyzed copy | |
virtual std::list< sentence > | analyze (const std::list< sentence > &ls) const |
analyze list of sentences, return analyzed copy | |
virtual document | analyze (const document &d) const |
analyze document, return analyzed copy |
Abstract class to define the common API of any FreeLing processing module.
Template parameter is base class that the procesor deals with (e.g. sentence or document). Instance need to define basic analyze(T) method, and inherit methods to process list<T> and to return analyzed copies instead of modifying input parameter.
freeling::processor::processor | ( | ) | [inline] |
constructor
virtual freeling::processor::~processor | ( | ) | [inline, virtual] |
destructor
virtual void freeling::processor::analyze | ( | sentence & | ) | const [pure virtual] |
analyze sentence/document. Pure virtual, must be provided by instance
Implemented in freeling::automat< T >, freeling::automat< dates_status >, freeling::automat< ner_status >, freeling::automat< numbers_status >, freeling::automat< locutions_status >, freeling::automat< quantities_status >, freeling::dep_txala, freeling::dictionary, freeling::probabilities, freeling::phonetics, freeling::alternatives, freeling::maco, freeling::RE_map, freeling::relaxcor, freeling::bioner, freeling::POS_tagger, freeling::dep_treeler, freeling::nec, freeling::senses, freeling::ukb, freeling::chart_parser, freeling::punts, and freeling::dependency_parser.
virtual void freeling::processor::analyze | ( | std::list< sentence > & | ls | ) | const [inline, virtual] |
analyze list of sentences (paragraph)
virtual void freeling::processor::analyze | ( | document & | doc | ) | const [inline, virtual] |
analyze document
Reimplemented in freeling::relaxcor, and freeling::coref.
virtual sentence freeling::processor::analyze | ( | const sentence & | s | ) | const [inline, virtual] |
analyze sentence/document, return analyzed copy
virtual std::list<sentence> freeling::processor::analyze | ( | const std::list< sentence > & | ls | ) | const [inline, virtual] |
analyze list of sentences, return analyzed copy
virtual document freeling::processor::analyze | ( | const document & | d | ) | const [inline, virtual] |
analyze document, return analyzed copy