FreeLing  4.0
Public Member Functions
freeling::processor Class Reference

Abstract class to define the common API of any FreeLing processing module. More...

#include <processor.h>

Inheritance diagram for freeling::processor:
Inheritance graph
[legend]

List of all members.

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< sentenceanalyze (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

Detailed Description

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.


Constructor & Destructor Documentation

constructor

virtual freeling::processor::~processor ( ) [inline, virtual]

destructor


Member Function Documentation

virtual void freeling::processor::analyze ( sentence ) const [pure virtual]
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


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