source: app/src/kor/corr.hh @ 6b3be72

help
Last change on this file since 6b3be72 was ac7d970, checked in by pawelk <pawelk@…>, 17 years ago

Uaktualnilismy kora.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@23 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100755
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
11class Corr : public TFTiv<char,char>
12{
13private:
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
25public:
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.