librime 1.2
Rime Input Method Engine, the core library
affix_segmentor.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2011-10-28 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_AFFIX_SEGMENTOR_H_
8#define RIME_AFFIX_SEGMENTOR_H_
9
10#include <rime/segmentor.h>
11
12namespace rime {
13
14class AffixSegmentor : public Segmentor {
15 public:
16 explicit AffixSegmentor(const Ticket& ticket);
17
18 virtual bool Proceed(Segmentation* segmentation);
19
20 protected:
21 string tag_;
22 string prefix_;
23 string suffix_;
24 string tips_;
26 set<string> extra_tags_;
27};
28
29} // namespace rime
30
31#endif // RIME_AFFIX_SEGMENTOR_H_
Definition algebra.cc:12
AffixSegmentor(const Ticket &ticket)
Definition affix_segmentor.cc:15
set< string > extra_tags_
Definition affix_segmentor.h:26
string tips_
Definition affix_segmentor.h:24
virtual bool Proceed(Segmentation *segmentation)
Definition affix_segmentor.cc:35
string prefix_
Definition affix_segmentor.h:22
string suffix_
Definition affix_segmentor.h:23
string tag_
Definition affix_segmentor.h:21
string closing_tips_
Definition affix_segmentor.h:25
Definition segmentation.h:60
Segmentor(const Ticket &ticket)
Definition segmentor.h:20
Definition ticket.h:17