|
FreeLing
4.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 | annotate_word (word &) const |
| annotate given word | |
| void | analyze (sentence &) const |
| analyze given sentence | |
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.
| freeling::RE_map::RE_map | ( | const std::wstring & | puntFile | ) |
| void freeling::RE_map::analyze | ( | sentence & | se | ) | const [virtual] |
analyze given sentence
Check words in given sentence for regexp matches.
Implements freeling::processor.
| void freeling::RE_map::annotate_word | ( | word & | w | ) | const |
annotate given word
Check given word for regexp matches.
References freeling::word::add_analysis(), freeling::word::get_form(), freeling::word::lock_analysis(), and TRACE.
std::list<RE_map_rule> freeling::RE_map::regexps [private] |
list of regex with associated information
1.7.6.1