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
14class 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_
Definition algebra.cc:12
AbcSegmentor(const Ticket &ticket)
Definition abc_segmentor.cc:17
virtual bool Proceed(Segmentation *segmentation)
Definition abc_segmentor.cc:39
string alphabet_
Definition abc_segmentor.h:21
set< string > extra_tags_
Definition abc_segmentor.h:25
string finals_
Definition abc_segmentor.h:24
string initials_
Definition abc_segmentor.h:23
string delimiter_
Definition abc_segmentor.h:22
Definition segmentation.h:60
Segmentor(const Ticket &ticket)
Definition segmentor.h:20
Definition ticket.h:17