comparison Wnn/jserver/fzk.h @ 0:bbc77ca4def5

initial import
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 13 Dec 2007 04:30:14 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bbc77ca4def5
1 /*
2 * $Id: fzk.h,v 1.6 2003/05/11 18:29:20 hiroo Exp $
3 */
4
5 /*
6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
7 * This file is part of FreeWnn.
8 *
9 * Copyright Kyoto University Research Institute for Mathematical Sciences
10 * 1987, 1988, 1989, 1990, 1991, 1992
11 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
12 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
13 * Copyright FreeWnn Project 1999, 2000, 2003
14 *
15 * Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 */
31
32 #ifndef JSERVER_FZK_H
33 #define JSERVER_FZK_H 1
34
35 #include "ddefine.h"
36
37 #define YOMI_L 8 /* 付属語の読みの長さの最大値 */
38
39 #define STRK_L 128 /* 付属語解析のための作業領域の大きさ */
40 /* これが、付属語文字列の長さの最大値 */
41
42 /*
43 * Don't know why word_vector (former kangovect) and fzkvect
44 * should differ. Can not they be merged? (2003.04.06 Hiroo Ono)
45 */
46 /* 幹語・付属語ベクトル */
47 typedef struct
48 {
49 int vector[VECT_L]; /* 付属語ベクトル */
50 } word_vector;
51
52 /* 付属語ベクトルの構造 */
53 typedef struct fzkvect
54 {
55 int no; /* 付属語ベクトルの番号 */
56 int vector[VECT_L]; /* 付属語ベクトル */
57 } fzkvect;
58
59 /* 付属語エントリーの構造 */
60 struct fzkentry
61 {
62 w_char yomi[YOMI_L]; /* 付属語の読みの文字列 */
63 int yomi_su; /* 付属語の読みの文字列の長さ */
64 int kosu; /* 付属語ベクトルの個数 */
65 struct fzkvect *pter; /* 付属語ベクトルへのポインタ */
66 struct fzkentry *link; /* 次の付属語エントリーへのポインタ */
67 };
68
69 /* 付属語の検索結果の情報の構造 */
70 struct fzkken
71 {
72 struct fzkentry *ent_ptr; /* 次の付属語エントリーへのポインタ */
73 int vector[VECT_L]; /* 付属語ベクトル */
74 };
75
76 /*
77 structure of FZK TABLE
78 */
79 struct FT
80 {
81 #ifndef NO_FZK
82 struct fzkvect *vect_area;
83 #endif
84 word_vector *kango_vect_area;
85 #ifndef NO_FZK
86 struct fzkentry *tablefuzokugo;
87 #endif
88 int *kango_hinsi_area;
89 int fzkvect_l; /* 接続ベクタの長さ * 32 bit */
90 int kango_vect_l; /* 幹語ベクタの長さ * 32 bit */
91 #ifndef NO_FZK
92 int fzklength; /* 付属語数 */
93 #endif
94 };
95
96 #endif /* JSERVER_FZK_H */
97