Concordia
RegexRule Class Reference

#include <regex_rule.hpp>

Public Member Functions

 RegexRule (std::string patternString, int annotationType, std::string value, bool caseSensitive=true) throw (ConcordiaException)
 
virtual ~RegexRule ()
 
void apply (TokenizedSentence &sentence)
 

Detailed Description

Class for representing a regular expression annotation rule. Holds regex pattern string for matching and default value to assign to the annotations. Rule also has a type, given to all annotations produced by it.

Constructor & Destructor Documentation

RegexRule::RegexRule ( std::string  patternString,
int  annotationType,
std::string  value,
bool  caseSensitive = true 
)
throw (ConcordiaException
)

Constructor.

Parameters
patternStringregex pattern to match
annoationTypetype of annotation
valuevalue to be assigned to the annotation
caseSensitivecase sensitivity of the pattern
RegexRule::~RegexRule ( )
virtual

Destructor.

Member Function Documentation

void RegexRule::apply ( TokenizedSentence sentence)

Applies regex annotation on tokenized sentence.

Parameters
sentencethe input sentence

Here is the call graph for this function:

Here is the caller graph for this function:


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