|
Last change
on this file since 2ff1f65 was
5f4d9c3,
checked in by Maciej Prill <mprill@…>, 14 years ago
|
|
Rewritten the build system, added lem UTF-8 version.
|
-
Property mode set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | //--------------------------------------------------------------------------- |
|---|
| 2 | #ifndef _corr_hh |
|---|
| 3 | #define _corr_hh |
|---|
| 4 | //--------------------------------------------------------------------------- |
|---|
| 5 | |
|---|
| 6 | #include "../lib/tfti.h" |
|---|
| 7 | #include "../lib/word.h" |
|---|
| 8 | #include "corlist.h" |
|---|
| 9 | #include "../common/common.h" |
|---|
| 10 | |
|---|
| 11 | class Corr : public TFTiv<char,char> |
|---|
| 12 | { |
|---|
| 13 | private: |
|---|
| 14 | Weight H[100][100]; |
|---|
| 15 | char X[100]; // misspelled string |
|---|
| 16 | char Y[100]; // (possibly partial) candidate string |
|---|
| 17 | int m; // length of X |
|---|
| 18 | int n; // maximal length of Y |
|---|
| 19 | |
|---|
| 20 | Weight ed(int,int); |
|---|
| 21 | Weight cuted(int); |
|---|
| 22 | void recomputeH(int); |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | public: |
|---|
| 26 | Weight (*H2)[100]; // moje: zmiana z int na Weight (float) |
|---|
| 27 | int t; // threshold |
|---|
| 28 | CorList CL; // moje |
|---|
| 29 | |
|---|
| 30 | Corr() : H2((Weight(*)[100])&H[2][2]) {}; // moje (int->float) |
|---|
| 31 | Corr(const char* a) : TFTiv<char,char>(a), H2((Weight(*)[100])&H[2][2]) { }; |
|---|
| 32 | |
|---|
| 33 | int correct(const char* w, Words& tab); |
|---|
| 34 | |
|---|
| 35 | int load2(char *Name); // moje |
|---|
| 36 | }; |
|---|
| 37 | |
|---|
| 38 | //--------------------------------------------------------------------------- |
|---|
| 39 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.