|
FreeLing
3.0
|
Class tag_map implements a mapping from a regexps to an associated data string. More...
#include <RE_map.h>


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< sentence > | analyze (const std::list< sentence > &) |
| analyze sentences, return analyzed copy | |
Private Attributes | |
| std::list< RE_map_rule > | regexps |
| list of regex with associated information | |
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.
| RE_map::RE_map | ( | const std::wstring & | puntFile | ) |
Constructor.
Create a RegExp mapping module.
References ERROR_CRASH, util::open_utf8_file(), and TRACE.
| 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.
| sentence RE_map::analyze | ( | const sentence & | s | ) |
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.
std::list<RE_map_rule> RE_map::regexps [private] |
list of regex with associated information
1.7.6.1