librime: affix_segmentor.h Source File

| 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
14 class 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_;
25 string closing_tips_;
26 set<string> extra_tags_;
27};
28
29} // namespace rime
30
31#endif // RIME_AFFIX_SEGMENTOR_H_
segmentor.h
rime
Definition algebra.cc:12
rime::AffixSegmentor::AffixSegmentor
AffixSegmentor(const Ticket &ticket)
Definition affix_segmentor.cc:15
rime::AffixSegmentor::extra_tags_
set< string > extra_tags_
Definition affix_segmentor.h:26
rime::AffixSegmentor::tips_
string tips_
Definition affix_segmentor.h:24
rime::AffixSegmentor::Proceed
virtual bool Proceed(Segmentation *segmentation)
Definition affix_segmentor.cc:35
rime::AffixSegmentor::prefix_
string prefix_
Definition affix_segmentor.h:22
rime::AffixSegmentor::suffix_
string suffix_
Definition affix_segmentor.h:23
rime::AffixSegmentor::tag_
string tag_
Definition affix_segmentor.h:21
rime::AffixSegmentor::closing_tips_
string closing_tips_
Definition affix_segmentor.h:25
rime::Segmentation
Definition segmentation.h:60
rime::Segmentor::Segmentor
Segmentor(const Ticket &ticket)
Definition segmentor.h:20
rime::Ticket
Definition ticket.h:17