1 #include "cgen.h" // -*- tab-width: 2 -*-
5 void CGen::init(const vector
<uint
> &_limit
)
8 nr_limit
= limit
.size();
10 for (uint i
= 0;i
< nr_limit
;i
++)
20 Generate every possible 3-misspelled-positions.
21 Then call WFST::generate_misspelled_words.
24 bool CGen::step(vector
<uint
> &_pos
)
28 if (cur
== nr_limit
-1) {
30 while (cur
>= 0 && iter
[cur
] == limit
[cur
]-1)