Mercurial > freewnn
comparison Wnn/man/3.libwnn/js_lib/param_get.man @ 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: param_get.man,v 1.3 2001/06/14 18:08:34 ura Exp $ | |
3 .\" | |
4 .\" | |
5 .\" FreeWnn is a network-extensible Kana-to-Kanji conversion system. | |
6 .\" This file is part of FreeWnn. | |
7 .\" | |
8 .\" Copyright Kyoto University Research Institute for Mathematical Sciences | |
9 .\" 1987, 1988, 1989, 1990, 1991, 1992 | |
10 .\" Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 | |
11 .\" Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 | |
12 .\" Copyright FreeWnn Project 1999, 2000 | |
13 .\" | |
14 .\" Maintainer: FreeWnn Project <freewnn@tomo.gr.jp> | |
15 .\" | |
16 .\" This program is free software; you can redistribute it and/or modify | |
17 .\" it under the terms of the GNU General Public License as published by | |
18 .\" the Free Software Foundation; either version 2 of the License, or | |
19 .\" (at your option) any later version. | |
20 .\" | |
21 .\" This program is distributed in the hope that it will be useful, | |
22 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 .\" GNU General Public License for more details. | |
25 .\" | |
26 .\" You should have received a copy of the GNU General Public License | |
27 .\" along with this program; if not, write to the Free Software | |
28 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
29 .\" | |
30 .TH JS_PARAM_GET \ "30 September 1991" | |
31 .SH 名称 | |
32 .sv 1 | |
33 .nf | |
34 .ta 0.1i 2i | |
35 js_param_get() 変換パラメータを取り出す。 | |
36 js_param_set() 変換パラメータを設定する。 | |
37 .fi | |
38 .SH 形式 | |
39 .sv 1 | |
40 .nf | |
41 .ta 0.1i 3i | |
42 #include "jslib.h" | |
43 | |
44 int | |
45 js_param_get(env,para) | |
46 struct wnn_env *env; /* 環境 */ | |
47 struct wnn_param *para; /* パラメータ */ | |
48 | |
49 int | |
50 js_param_set(env,para) | |
51 struct wnn_env *env; /* 環境 */ | |
52 struct wnn_param *para; /* パラメータ */ | |
53 | |
54 struct wnn_param { | |
55 .ta 0.3i 0.8i 1.3i | |
56 int n; /* N(大)文節解析のN */ | |
57 int nsho; /* 大文節中の小文節の最大数 */ | |
58 int p1; /* 幹語の頻度のパラメータ */ | |
59 int p2; /* 小文節長のパラメータ */ | |
60 int p3; /* 幹語長のパラメータ */ | |
61 int p4; /* 今使ったよビットのパラメータ */ | |
62 int p5; /* 辞書のパラメータ */ | |
63 int p6; /* 小文節の評価値のパラメータ */ | |
64 int p7; /* 大文節長のパラメータ */ | |
65 int p8; /* 小文節数のパラメータ */ | |
66 int p9; /* 疑似品詞 数字の頻度 */ | |
67 int p10; /* 疑似品詞 カナの頻度 */ | |
68 int p11; /*疑似品詞 英数の頻度*/ | |
69 int p12; /*疑似品詞 記号の頻度*/ | |
70 int p13; /*疑似品詞 閉括弧の頻度*/ | |
71 int p14; /*疑似品詞 付属語の頻度*/ | |
72 int p15; /*疑似品詞 開括弧の頻度*/ | |
73 }; | |
74 .fi | |
75 .SH 機能 | |
76 .HP 0 | |
77 .IP | |
78 js_param_get は、env で示される環境の変換パラメータを取り出す。 | |
79 | |
80 js_param_set は、env で示される環境の変換パラメータ para に設定する。 | |
81 | |
82 .nf | |
83 .ta 0.1i 1.7i | |
84 <小文節の評価値> = p1 * <頻度> + | |
85 p2 * <小文節長> + | |
86 p3 * <自立語長さ> + | |
87 p4 * <今使ったよBIT> + | |
88 p5 * <辞書プライオリティ> | |
89 | |
90 <大文節の評価値> = p6 * <小文節の評価値の合計> / <小文節数> + | |
91 p7 * <大文節長> + | |
92 p8 * <小文節数> + | |
93 | |
94 で評価値を求め、変換候補の順位を決定する。 | |
95 | |
96 n, nsho は 1 以上の整数でなければならない。 | |
97 p1, p2, p3, p4, p5, p6, p7, p8, p9,...,p15 は任意の整数である。 | |
98 .fi | |
99 .SH リターンバリュー | |
100 .sv 1 | |
101 .nf | |
102 正常終了時には 0 を返す。 | |
103 異常終了時には、-1 を返す。 | |
104 .fi | |
105 | |
106 | |
107 | |
108 |