source: app/src/lem/lem.h @ 25ae32e

help
Last change on this file since 25ae32e was 25ae32e, checked in by obrebski <obrebski@…>, 16 years ago

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

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