source: src/lem/lem.h @ 5f4d9c3

Last change on this file since 5f4d9c3 was 5f4d9c3, checked in by Maciej Prill <mprill@…>, 12 years ago

Rewritten the build system, added lem UTF-8 version.

  • Property mode set to 100644
File size: 800 bytes
Line 
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:
44  UTTSymbolTable _dict;
45  char* info[SIZE];
46
47};
48
49
50
Note: See TracBrowser for help on using the repository browser.