Concordia
token_annotation.hpp
1 #ifndef TOKEN_ANNOTATION_HDR
2 #define TOKEN_ANNOTATION_HDR
3 
4 #include "concordia/common/config.hpp"
5 #include "concordia/interval.hpp"
6 
7 #include <string>
8 
16 class TokenAnnotation : public Interval {
17 public:
24  TokenAnnotation(const SUFFIX_MARKER_TYPE start,
25  const SUFFIX_MARKER_TYPE end,
26  const int annotationType,
27  const std::string & value);
28 
31  virtual ~TokenAnnotation();
32 
36  int getType() const {
37  return _annotationType;
38  }
39 
43  std::string getValue() const {
44  return _value;
45  }
46 
49  static int NE;
50 
53  static int WORD;
54 
57  static int HTML_TAG;
58 
61  static int STOP_WORD;
62 
63 protected:
64  int _annotationType;
65 
66  std::string _value;
67 };
68 
69 #endif
static int HTML_TAG
Definition: token_annotation.hpp:57
static int WORD
Definition: token_annotation.hpp:53
int getType() const
Definition: token_annotation.hpp:36
Definition: interval.hpp:16
static int NE
Definition: token_annotation.hpp:49
TokenAnnotation(const SUFFIX_MARKER_TYPE start, const SUFFIX_MARKER_TYPE end, const int annotationType, const std::string &value)
Definition: token_annotation.cpp:4
virtual ~TokenAnnotation()
Definition: token_annotation.cpp:13
static int STOP_WORD
Definition: token_annotation.hpp:61
Definition: token_annotation.hpp:16
std::string getValue() const
Definition: token_annotation.hpp:43