1 #ifndef REGEX_ANNOTATION_HDR
2 #define REGEX_ANNOTATION_HDR
5 #include "concordia/common/config.hpp"
6 #include "concordia/tokenized_sentence.hpp"
7 #include "concordia/concordia_exception.hpp"
8 #include <boost/shared_ptr.hpp>
9 #include <boost/regex.hpp>
10 #include <boost/regex/icu.hpp>
11 #include <unicode/unistr.h>
14 typedef boost::error_info<struct my_tag, std::string> my_tag_error_info;
35 bool caseSensitive =
true)
52 boost::u32regex _pattern;
Definition: concordia_exception.hpp:11
RegexRule(std::string patternString, int annotationType, std::string value, bool caseSensitive=true)
Definition: regex_rule.cpp:8
Definition: regex_rule.hpp:23
virtual ~RegexRule()
Definition: regex_rule.cpp:37
Definition: tokenized_sentence.hpp:26
void apply(TokenizedSentence &sentence)
Definition: regex_rule.cpp:40