source: src/lem/lem.h @ b97a556

Last change on this file since b97a556 was 2ff1f65, checked in by Tomasz Obrebski <to@…>, 13 years ago

lem.h - usuniety b��d, teraz kompiluje si�

  • Property mode set to 100644
File size: 802 bytes
RevLine 
[5f4d9c3]1#include "../lib/tfti.h"
2#include "../lib/word.h"
3#include "../lib/symtab.h"
4#include "../lib/const.h"
5
6class Lem {
7
8 protected:
9  //  Alphabet& _alpha;
10
11  // slownik
12  TFTiv<char,char> _dict;
13
14  void add_to_table(Words& tab, const char* f, long s);
15
16 public:
17
18  Lem() {};
19  Lem(const char* d)
20    : _dict(d) {};
21  virtual int ana(const char* form, Words& tab);
22  int pref(char* form, Words& tab);
23  void prn_dict();
24
25};
26
27
28class AuxLem : public Lem {
29public:
30
31  static const int SIZE=1500000;
32  //  static const int MAXLINE=1000;
33  static const int MAXALT=256;
34
35  AuxLem(const char* filename);
36  ~AuxLem();
37
38//  int ana(const char* form, Grams& tab);
39  int ana(const char* form, Words& tab);
40
41//  operator bool() { return _dict && info; }
42
43private:
[2ff1f65]44  UTT::SymbolTable _dict;
[5f4d9c3]45  char* info[SIZE];
46
47};
48
49
50
Note: See TracBrowser for help on using the repository browser.