|
Revision 389, 1.6 kB
(checked in by heitor.barbieri, 3 weeks ago)
|
|
essage first commit
|
| Line | |
|---|
| 1 | /* ------------------------------ wt.h ------------------------------------- */ |
|---|
| 2 | |
|---|
| 3 | /* wt.h - header derived from Program WTRIG2: trigrams 1B |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #define FATRAPWT FATRAP |
|---|
| 7 | |
|---|
| 8 | #define MAXPRMS1 128 //32 |
|---|
| 9 | #define HDRPARMSTRING 32000 |
|---|
| 10 | |
|---|
| 11 | #define MAXWTFUN 4 //1024 //MAXNDBX |
|---|
| 12 | #define MAXJDS 51 |
|---|
| 13 | #define MAXJVS 51 |
|---|
| 14 | #define MAXTABCATS 30000 |
|---|
| 15 | #define MAXTABWIDTH 100 |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #define PARMMAXREL 10 |
|---|
| 19 | #define PARMMINSIM 0.7 |
|---|
| 20 | #define PARMMAXSIM 1.0 |
|---|
| 21 | |
|---|
| 22 | #if 00000000 |
|---|
| 23 | //#if !PC |
|---|
| 24 | //#ifndef itoa |
|---|
| 25 | char *itoa(int value, char *xa, int len); |
|---|
| 26 | char *itoa(int value, char *xa, int len) |
|---|
| 27 | { |
|---|
| 28 | if (len) sprintf(xa,"%d",value); |
|---|
| 29 | } |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 32 | #define TAG1 1 |
|---|
| 33 | #define TAG2 2 |
|---|
| 34 | #define TAG3 3 |
|---|
| 35 | #define TAG4 4 |
|---|
| 36 | #define TAG5 5 |
|---|
| 37 | #define TAG33 33 |
|---|
| 38 | |
|---|
| 39 | #define TAG34 34 |
|---|
| 40 | #define TAG35 35 |
|---|
| 41 | |
|---|
| 42 | #define TAG440 440 |
|---|
| 43 | #define TAG999 999 |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | #define MAXPARMWIDTH (LE2+LE2) |
|---|
| 47 | |
|---|
| 48 | #define SHOWV3LEN 3200 /* 400 x 8 */ //200 |
|---|
| 49 | |
|---|
| 50 | typedef struct vectel { |
|---|
| 51 | float weight; |
|---|
| 52 | LONGX hidx; |
|---|
| 53 | } VECTEL; |
|---|
| 54 | |
|---|
| 55 | typedef struct xvector { |
|---|
| 56 | float weight; |
|---|
| 57 | LONGX hidx; |
|---|
| 58 | char *foundp; |
|---|
| 59 | char key[MAXPARMWIDTH+1]; |
|---|
| 60 | FFI keylen; |
|---|
| 61 | } DOCVEC; |
|---|
| 62 | |
|---|
| 63 | typedef struct xlista { |
|---|
| 64 | float sim; |
|---|
| 65 | LONGX mfn; |
|---|
| 66 | LONGX xxx; |
|---|
| 67 | LONGX hit; |
|---|
| 68 | void *prev; |
|---|
| 69 | void *next; |
|---|
| 70 | void *avail; |
|---|
| 71 | } LISTA; |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | typedef struct xlist1a { /* Program WTRIG1: trigrams 1A */ |
|---|
| 75 | float weight; |
|---|
| 76 | LONGX hidx; |
|---|
| 77 | void *prev; |
|---|
| 78 | void *next; |
|---|
| 79 | void *avail; |
|---|
| 80 | } LIST1A; |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | typedef struct xlistjd { /* JD ordered list */ |
|---|
| 84 | LONGX freq; |
|---|
| 85 | float weight; |
|---|
| 86 | LONGX hidx; |
|---|
| 87 | void *prev; |
|---|
| 88 | void *next; |
|---|
| 89 | void *avail; |
|---|
| 90 | } LISTJD; |
|---|
| 91 | |
|---|
| 92 | |
|---|
| 93 | /* ------------------------------ wt.h ------------------------------------- */ |
|---|