librime: abc_segmentor.h Source File

| librime 1.2 Rime Input Method Engine, the core library

abc_segmentor.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2011-05-20 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_ABC_SEGMENTOR_H_
8#define RIME_ABC_SEGMENTOR_H_
9
10#include <rime/segmentor.h>
11
12namespace rime {
13
14 class AbcSegmentor : public Segmentor {
15 public:
16 explicit AbcSegmentor(const Ticket& ticket);
17
18 virtual bool Proceed(Segmentation* segmentation);
19
20 protected:
21 string alphabet_;
22 string delimiter_;
23 string initials_;
24 string finals_;
25 set<string> extra_tags_;
26};
27
28} // namespace rime
29
30#endif // RIME_ABC_SEGMENTOR_H_
segmentor.h
rime
Definition algebra.cc:12
rime::AbcSegmentor::AbcSegmentor
AbcSegmentor(const Ticket &ticket)
Definition abc_segmentor.cc:17
rime::AbcSegmentor::Proceed
virtual bool Proceed(Segmentation *segmentation)
Definition abc_segmentor.cc:39
rime::AbcSegmentor::alphabet_
string alphabet_
Definition abc_segmentor.h:21
rime::AbcSegmentor::extra_tags_
set< string > extra_tags_
Definition abc_segmentor.h:25
rime::AbcSegmentor::finals_
string finals_
Definition abc_segmentor.h:24
rime::AbcSegmentor::initials_
string initials_
Definition abc_segmentor.h:23
rime::AbcSegmentor::delimiter_
string delimiter_
Definition abc_segmentor.h:22
rime::Segmentation
Definition segmentation.h:60
rime::Segmentor::Segmentor
Segmentor(const Ticket &ticket)
Definition segmentor.h:20
rime::Ticket
Definition ticket.h:17