FreeLing  3.0
Public Member Functions | Private Attributes
RE_map Class Reference

Class tag_map implements a mapping from a regexps to an associated data string. More...

#include <RE_map.h>

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

List of all members.

Public Member Functions

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

std::list< RE_map_ruleregexps
 list of regex with associated information

Detailed Description

Class tag_map implements a mapping from a regexps to an associated data string.

Regexps are sequentially checked until a match is found. This module allows the user application to directly assign tags to certain words or patterns.


Constructor & Destructor Documentation

RE_map::RE_map ( const std::wstring &  puntFile)

Constructor.

Create a RegExp mapping module.

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


Member Function Documentation

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

analyze given sentence

Check words in given sentence for regexp matches.

Implements processor.

References TRACE.

Referenced by maco::analyze().

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

analyze given sentences

Reimplemented from processor.

analyze sentence, return analyzed copy

Check words in given sentence for regexp matches.

Return copy

Reimplemented from processor.

References processor::analyze().

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

analyze sentences, return analyzed copy

Reimplemented from processor.


Member Data Documentation

std::list<RE_map_rule> RE_map::regexps [private]

list of regex with associated information


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