File: zemberek.h

package info (click to toggle)
mozzemberek 0.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 168 kB
  • ctags: 111
  • sloc: cpp: 686; makefile: 111
file content (35 lines) | stat: -rw-r--r-- 710 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
  Copyright (c) 2004, TUBITAK/UEKAE

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  Please read the COPYING file.
*/

#ifndef ZEMBEREK_H
#define ZEMBEREK_H

#include "zsconn.h"

using namespace std;

class Zemberek
{
public:
    Zemberek();
    Zemberek(char *host, int port);
    ~Zemberek();

    int getSuggestions(char ***suggestions, const char *word) const;
    int spellCheck(const char *word) const;
    char *get_dic_encoding();

private:
    const short maxSug;
    ZSConn *zsconn;
};

#endif