Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3847812B2 - Character processing method and apparatus - Google Patents
[go: Go Back, main page]

JP3847812B2 - Character processing method and apparatus - Google Patents

Character processing method and apparatus Download PDF

Info

Publication number
JP3847812B2
JP3847812B2 JP16977695A JP16977695A JP3847812B2 JP 3847812 B2 JP3847812 B2 JP 3847812B2 JP 16977695 A JP16977695 A JP 16977695A JP 16977695 A JP16977695 A JP 16977695A JP 3847812 B2 JP3847812 B2 JP 3847812B2
Authority
JP
Japan
Prior art keywords
semantic
word
individual
combination
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP16977695A
Other languages
Japanese (ja)
Other versions
JPH0922410A (en
Inventor
雄二 小林
大記 鈴木
和世 池田
英一朗 戸島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP16977695A priority Critical patent/JP3847812B2/en
Publication of JPH0922410A publication Critical patent/JPH0922410A/en
Application granted granted Critical
Publication of JP3847812B2 publication Critical patent/JP3847812B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、文字処理方法とその装置、特に、日本語文を対象として対象文の文節構造を絞り込み、文節の係り受けによる句構造、文節を構成する単語をチェックする機能を備えた文字処理方法とその装置に関する。
【0002】
【従来の技術】
従来、日本語文を対象として、その入力文の文節構造を解析する機能を備えた文字処理装置として、仮名読みを入力し、その文節構造を解析して、適切な漢字文字列に変換を行うかな漢字変換装置がある。
かな漢字変換では、入力の読み列を解析して、可能な文節候補を作成し、その組合わせの中から変換候補を決定し、尤もらしい順に提示する。提示された変換候補の中からオペレータが望む候補を選択する。第1候補として提示される変換候補の尤もらしさを高めるため、従来、品詞の異同により変換候補を絞り込む手法や単語の頻度順に並べる手法が実施されてきた。
【0003】
また、「本を 読む」のように対になって表れる用例を、予め用例辞書に登録しておき、変換時に用例辞書を参照して、第1候補を用例辞書中の用例にしたがって決定する用例変換という手法が実施されてきた。「本を 読む」のように単語と単語の関係を記述した用例だけでなく、単語を意味的にグループ化してまとめた意味分類との関係を記述した用例というものも提案されている。例えば、「[具象物]に 書く」という用例を登録しておくと、[具象物]である「紙」についても、この用例が適用され、「紙に 書く」という第1変換候補を得ることができる。用例辞書に登録する用例として、意味的に可能な単語対を選ぶとともに、この用例変換の仕組みを利用することによって、正しい変換結果を得る可能性が高まった。
【0004】
更に、あらかじめ登録されていない用例関係にある単語に対しても、その関係とともに記憶することで、入力者の入力に則した用例学習をする方法(特公平5−63831)が提案されている。これによれば、例えば、「海底資源」なる単語の組合わせを用例として記憶でき、「改定資源」の様な誤った解析を回避することができる。
【0005】
【発明が解決しようとする課題】
しかしながら、従来の用例学習においては、単に個別の単語対の組合わせを学習するにすぎないため、記憶に要するメモリ容量は莫大なものとなり、学習結果の全てを保持しておくのが困難であった。
また、用例学習による文節間の関係解析に効果を発揮できるのは、学習された個別単語関係事例のみに限定され、同様の関係が成り立つ他の単語については、その効果が得られなかった。
【0006】
さらに、記憶した用例数が多いほど、その検索時間が増大し、文節間の関係を解析するための処理時間の増大を招くこととなり、低コストで精度の高い解析効率を実現することが難しかった。
本発明は、上記従来例に鑑みてなされたもので、変換精度が高く、高速に文章変換が可能な文字処理方法とその装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
上記目的を達成するため、本発明の文字処理方法とその装置は以下の構成を備える。即ち、単語と単語と親和性のある単語の組み合わせ情報を個別用例として記憶する個別用例辞書と、単語と、単語と親和性のある単語の意味概念との組み合わせを意味用例として、該組み合わせに対する確信度とともに記憶する意味用例辞書と、前記意味用例辞書の意味用例に関して、前記個別用例辞書の個別用例の中で当該意味用例の単語と意味概念との組み合わせに該当する用例と当該意味用例の単語の同音語と意味概念との組み合わせに該当する反用例を抽出する用例抽出手段と、前記抽出された用例と反用例の数の割合において、前記用例の割合が所定の閾値より大きければ、前記意味用例辞書の前記意味用例に対応する確信度を下げる確信度調整手段と、前記確信度調整手段による調整の結果、確信度が所定値以下となった意味用例を無効化する用例無効化手段と、
入力された文節列に適用可能な個別用例または意味用例に基づいて、前記文節列を、個別用例が適用可能な場合は該個別用例に該当する単語の組み合わせを用いた変換候補に変換し、意味用例が適用可能な場合は該意味用例の単語と意味概念との組み合わせに該当する単語の組み合わせを用いた変換候補に変換する変換手段とを備える。
【0008】
また、別の発明は、単語と該単語と親和性のある単語の組み合わせ情報を個別用例として記憶する個別用例辞書記憶手段と、
単語と、該単語と親和性のある単語の意味概念との組み合わせを意味用例として、該組み合わせに対する確信度とともに記憶する意味用例辞書記憶手段と、プログラムに基づいて各種処理を実行する処理手段と、前記プログラムが記憶されたプログラム記憶手段とを備え、かつ前記処理手段と前記プログラム記憶手段とが協働することによって実現される用例抽出手段、確信度調整手段、用例無効化手段及び変換手段とを備えた文字処理装置において文字の処理を行う文字処理方法であって、
前記用例抽出手段が、前記意味用例辞書記憶手段に記憶された意味用例に関して、前記個別用例辞書記憶手段に記憶された個別用例の中から、当該意味用例の単語と意味概念との組み合わせに該当する用例と当該意味用例の単語の同音語と意味概念との組み合わせに該当する反用例とを抽出する用例抽出工程と、
前記確信度調整手段が、前記抽出された用例と反用例の数の割合において、前記反用例の割合が所定の閾値より大きければ、前記意味用例辞書記憶手段に前記意味用例に対応して記憶された確信度を下げる確信度調整工程と、
前記用例無効化手段が、前記確信度調整工程における調整の結果、前記意味用例辞書記憶手段において確信度が所定値以下となった意味用例を無効化する用例無効化工程と、
前記変換手段が、入力された文節列に適用可能な個別用例または意味用例を個別用例辞書記憶手段及び前記意味用例辞書記憶手段から検索して、前記文節列を、個別用例が適用可能な場合は該個別用例に該当する単語の組み合わせを用いた変換候補に変換し、意味用例が適用可能な場合は該意味用例の単語と意味概念との組み合わせに該当する単語の組み合わせを用いた変換候補に変換する変換工程とを備える。
【0009】
【発明の実施の形態】
本実施の形態のポイントは、文節間の関係データとして学習した個別の用例を、共通の意味分類を持つ用例毎に抽象化して、意味分類用例として登録し、なおかつ、抽象化した意味分類用例を適用して解析された結果が覆されたとき、その意味分類不適用文節対を反例用例として登録し、反例用例の数によって抽象化用例の信頼性指標値を求め、さらに、反例用例を個別用例抽象化起動条件変更の指標値として用いることで、意味分類用例への抽象化を動的に変化させていくことが可能なように制御を行う文字処理装置を提供することにある。
【0010】
以下、本発明に係る一実施の形態の文字処理方法とその装置のポイントの一つをまず要約してから、その詳細な説明に入る。
本実施の形態の文字処理方法では、学習した個別用例を意味分類用例として抽象化して登録して、登録された意味分類用例が成立するかどうかを文節間依存関係を解析することによって決定する。
【0011】
このため、個別用例として登録されていない場合であっても、意味的に妥当な文節構造を選択することができる。
また、文節間依存関係の解析精度を向上させることができる。
さらに、意味分類用例として抽象化して登録することでメモリ容量を削減し、低コストでこれを実現することができる。
【0012】
また、抽象化して登録した意味分類用例にそぐわない文節対を反例として登録し、反例の数によって抽象化処理を行うタイミングを入力に対して動的に変化させていくことができる。
以下、本実施の形態の文字処理方法とその装置において、特に、入力対象を日本語の仮名読み列としてかな漢字変換を行う場合を一例として、図面を参照しながら詳細に説明する。
【0013】
図1は、本発明の全体構成の一例である。
図示の構成において、CPUは、マイクロプロセッサであり、文字処理のための演算、論理判断等を行い、アドレスバスAB、コントロールバスCB、データバスDBを介して、それらのバスに接続された各構成要素を制御する。
アドレスバスABはマイクロプロセッサCPUの制御の対象とする構成要素を指示するアドレス信号を転送する。コントロールバスCBはマイクロプロセッサCPUの制御の対象とする各構成要素にコントロール信号を送る。データバスDBは、各構成機器相互間のデータの転送を行う。
【0014】
次に、ROMは、読み出し専用の固定メモリである。PAは、図8〜図23につき後述するマイクロプロセッサCPUの制御手順等を記憶させたプログラムエリアである。
また、RAMは、1ワード16ビットの構成の書き込み可能のランダムアクセスメモリであって、各構成要素のための各種のデータの一時記憶に用いる。
【0015】
WDICは、カナ漢字変換を行うための単語辞書である。図6にその構成を示す。
YRTBL、は文節と文節との組合わせを格納した用例辞書である。図7にその構成を示す。
YBUFは、キーボードKBより入力された読みを格納する入力読みバッファ・メモリである。
【0016】
TBUFは、文書バッファであり、キーボードKBより入力された文書情報を蓄えるためのメモリである。
BCTは、カナ漢字変換途中の文節候補を記憶する文節候補テーブルである。図3にその構成を示す。
DBFは、カナ漢字変換の未確定文節候補を蓄える同音語バッファメモリである。図4にその構成を示す。
【0017】
DBPは、DBFに対応するカナ漢字変換の他の候補を蓄える同音語プールメモリである。図5にその構成を示す。
T、およびKはカウンタメモリである。
KBはキーボードであって、アルファベットキー、ひらがなキー、カタカナキー等の文字記号入力キー、および、変換を指示する変換キー等の各種のファンクションキーを備えている。図1において、YOMIは読みを入力するためのキー、CONは入力した読みを変換するための変換指示キー、NXTは変換候補を変更して次候補に変換するための次候補変換指示キー、SELは現在の同音語表示候補に確定し同時に用例として学習することを指示するための選択キーである。
【0018】
DISKは、定型文書を記憶するための外部メモリで、作成された文書の保管を行い、保管された文書はキーボードの指示により、必要な時呼び出される。
CRは、カーソルレジスタである。CPUにより、カーソルレジスタの内容を読み書きできる。後述するCRTコントローラ(CRTC)は、ここに蓄えられたアドレスに対する表示装置(CRT)上の位置にカーソルを表示する。
【0019】
DBUFは、表示用バッファメモリで、TBUFに蓄えられた文書情報等に対応する表示パターンを蓄える。
CRTCは、カーソルレジスタ(CR)およびバッファ(DBUF)に蓄えられた内容を表示器CRTに表示する役割を担う。
また、CRTは、陰極線管等を用いた表示装置であり、その表示装置CRTにおけるドット構成のパターンおよびカーソルの表示をCRTコントローラで制御する。
【0020】
さらに、CGは、キャラクタジェネレータであって、表示装置(CRT)に表示する文字、記号のパターンを記憶するものである。
かかる各構成要素からなる本実施の形態の文字処理装置においては、キーボードKBからの各種の入力に応じて作動するものであって、キーボードKBからの入力が供給されると、まず、インタラプト信号がマイクロプロセッサ(CPU)に送られ、そのマイクロプロセッサ(CPU)がROM内に記憶してある各種の制御信号を読み出し、それらの制御信号にしたがって、各種の制御が行われる。
【0021】
図2は、本実施の形態の文字処理装置における入力読みバッファYBUFの構成を示した図である。
YBUFは、KBから入力された読みを格納するバッファ・メモリである。本実施の形態では、1文字2バイトのJISコードで512文字まで格納できる。読みが入力されていないあまりの領域には未入力を示す空白コードとして0を格納する。
【0022】
図3は、本実施の形態の文字処理装置における文節候補テーブルBCTの例である。文節候補テーブルは、入力読み列の先頭から末尾までで解析可能な文節の列を、ひとつの文節候補をノードとする木構造で表現したテーブルであり、5フィールドから構成されている。
図3において、BCIDは、それぞれの文節候補をユニークにするID(識別)番号である。
【0023】
BCJWは、文節候補の自立部単語を表わし、その自立部単語の存在する単語辞書WDICヘのポインタを格納する。
BCFWは、文節候補の付属部を構成する付属語列を格納する。付属語列は、付属語の開始位置と付属語末尾位置を入力読みバッファYBUF上のインデックスで格納する。
【0024】
図3において、「φ」は付属語列が存在しないことを意味する。
SLNKは、その文節候補と文節開始読み位置が同じである別の文節候補をリンクするもので、リンク先の文節候補IDを格納する。SLNKの値が存在しない文節候補IDである「−1」となっているものは終端コードを意味し、それ以上同読み開始位置文節が存在しないことを表している。
【0025】
DLNKは、その文節候補に引き続く文節候補をリンクするもので、SLNKと同じくリンク先の文節候補IDを格納する。DLNKの値が−1となっているものは、SLNKにおけると同様に、それ以上後続する文節候補が存在しないことを意味する。
例えば、文節候補IDが「0」の「乳に」は、同読み開始位置の文節候補として、「父に」や「遅々に」を持ち、後続の文節候補として、「挨拶する」を持つ。
【0026】
図4は、本実施の形態の文字処理装置における同音語バッファDBFの例である。同音語バッファDBFは、文節候補テーブルBCTから得られた変換結果を貯えておくバッファメモリである。
図4において、HIDは同音語IDで、文節単位に作られる同音語のひとつひとつをユニークにするID番号である。
【0027】
JWは、その同音語の第1変換候補を図5に示す同音語プールDBFの先頭からの番号HNを格納する。後述する適用用例連番APYRが適用された自立語を示す。
CWはこの同音語の次候補変更によって、変更された現在選択された状態にある候補を図5に示す同音語プールDBFの先頭からの番号HNを格納する。
【0028】
CWが「0」である時、この同音語は第1変換候補のまま、次候補変更を受けていないことを示す。
PHIDは、この同音語と係り受け関係のある(用例が検索された場合は用例のペアとなる)係り先のペア同音語の同音語IDを格納する。
PHIDが「−1」である時は、係り先のペア同音語が存在しないことを意味する。
【0029】
ARYRは、第1候補を決定する際に、係り受け関係のあるペア同音語との間で適用された用例を用例辞書YRTBLの通し連番YSNを格納する。図4において、同音語「父に」は、用例連番“2”の「(*人間)に挨拶する」の用例が適用されたことを示している。
図5は、本実施の形態の文字処理装置における同音語プールDBPの例である。同音語プールは、第1候補の情報のみ格納する同音語バッファに対して、その同音語の候補として可能なすべての単語候補を格納する。
【0030】
図5において、HNは同音語の連番である。1から連番番号が割り付けられる。 HIDは、どの同音語に対する候補であるかを、対応する同音語バッファDBFの同音語IDで格納する。
JWPは、該当文節の同音語として可能な自立部単語を単語辞書WDICヘのポインタを格納する。
【0031】
JWSは、JWPに格納される単語の意味分類コードを格納する。意味分類コードは、当該単語が辞書WDICのWIMIにおいて持つコードである。
FWPは、自立部単語JWPに対する付属語列を格納する。例えば、同音語IDが「10」である文節は、「父に」と「乳に」と「遅々に」の3つの同音語候補を持つ。
【0032】
図6は、本実施の形態の文字処理装置における単語辞書DICの構成を示した図である。
DICは、1単語につき読みWYOM、表記WHYOKI、品詞WHIN、T難語意味コードWIMI、単語頻度WFRQの5項目より構成される。
意味コードWIMIは、単語が本来的に持っていない意味的属性を示す分類コードである。意味コードを特に持たない場合は、不定記号として“¥”を格納する。
【0033】
図7A、図7B、図7C、図7Dは、本実施の形態の文字処理装置における依存関係のある文節の組を記憶させた用例テーブルYRTBLの構成を示した図である。
用例テーブルは、後述するように、あらかじめ記憶させておいた標準個別用例と標準意味用例、および操作者の学習により蓄えられていく学習個別用例、学習反例用例、学習個別用例から自動的に抽象化して構築した学習意味用例のそれぞれを格納することができる。
【0034】
図7Aは、用例テーブルYRTBLの全体構成を示した図である。YRTBLは、用例テーブルヘッドTBLHD、用例テーブル本体TBLBDより構成される。
図7Bは、用例テーブルヘッダTBLHDの構成を示した図である。TBLHDは用例テーブルの格納状況を示す情報格納領域である。
【0035】
LYRCは、学習用例の格納数を示し初期値は0である。
LYRSは、学習用例の使用する領域サイズの総和が格納され、初期値は0である。
LYRPは、操作者の学習により格納可能な学習用例の残りサイズを格納する。初期状態では用例テーブル本体サイズから標準個別用例と標準意味用例と学習反例用例サイズの合計サイズを減じた値が格納される。LHRCは学習意味用例と合致しない反例である学習反例用例の格納数を格納する。初期値は0である。
【0036】
JHRSは、学習反例用例の残りサイズを格納する。学習反例用例は初期状態で必ず1個以上の反例を格納可能であるように定される。
用例テーブルの余り領域は、予備の未格納領域として「0」を埋める。
図7Cは、用例テーブル本体の構成を示した図である。
YSNは、用例の通番であり、用例テーブル先頭に格納された用例を1とし、順次1ずつ増やした連続番号が付けられる。
【0037】
USNは、後述する用例の見出しとなる受け付け側文節の連番である。
SUNは、同一見出しの用例内における連番で、同じ見出し単語情報を持つ用例の先頭を1とし、順次1ずつ増やした連番番号がつけられる。
YRTYPは、格納された用例の種別を表わし、以下の5値をとりうる。
標準個別
標準意味
学習個別
学習意味
学習反例
KBCNTは、ひとつの受け側見出し文節UBINFに係る係り文節KBINFの数を格納する。受け文節に係る文節が1個のみのときは“1”が入り、
「包丁で 肉を 切る」
のように、受け文節「切る」に「包丁で」と「肉を」の2つの係り文節が存在する時は、“2”が入る。本構成では、この係り先文節を格納できる。すなわち、ひとつの用例データは、最大(N+1)個の文節から構成される。
【0038】
YCFは、当該用例の信頼性を示す確信値を格納する。確信値は、
0≦YCF≦1.0
の値を取り、大きいほど信頼性のある用例であることを示す。
【0039】
UBINFは、用例の見出しとなる受け側文節条件を格納する。UBINFは、図7Dの構成をとる。
KBINF(i)は、受け文節条件UBINFに係る用例の係り側文節条件を格納する。本実施の形態においては、最大N個の係り側文節条件を格納することができる固定長構成とし、余った係り側文節条件には未使用領域として“¥”を入れる。KBINF(i)の構造はUBINFと同じ図7Dに示す構成をとる。
【0040】
なお、UBINFに入る受け側文節条件は、図7Dに示す単語読みYMYOMに格納される読みの昇順に従い、テーブル内でソートされる。
図7Dは、用例構成文節条件の構成を示した図であり、図7Cにおける受け側文節条件および係り側文節条件の詳細構成となる。
YMYOMは文節条件を構成する単語の読みを、YMHYOは単語の表記を、YMHINは単語の品詞を、YMIMIは単語の意味コードを格納する領域で、それぞれ、図6に示す単語辞書DICのWYOMI、WHYOKI、WHIN、WIMIに格納された値に対応している。
【0041】
YMCONは文節条件を構成する単語の文節末尾形を格納するもので、係り側文節条件の場合は、受け側文節条件に対する接続のしかたを決める情報を格納する。そして、以下の値を取りうる。
活用語の未然形
活用語の連用形
活用語の終止形
活用語の連体形
活用語の仮定形
活用語の命令形
助詞「が」
助詞「を」
助詞「に」
助詞「の」
助詞「と」
助詞「で」
助詞「から」
助詞「より」
助詞「まで」
図7C、図7Dに示された用例のテーブルの記述例では、
「自然を愛する」
「(*人間)に挨拶する」
「(*人間)に会う」
「駅員さんに挨拶する」
「先生に挨拶する」
「叔父さんに挨拶する」
「ご近所に挨拶する」
という用例を記述している。但し記号“(* )”は単語でなく、意味分類コードであることを示すものとする。
【0042】
次に、上述の実施の形態の処理手順をフローに従って説明する。
図8は本実施の形態の文字処理装置の動作を示すフローチャートである。
尚、以下のフローチャートの処理を説明するにあたって、各種の変数名が登場するが、これらは、予めRAM(図1)の所定の領域に割り当てられているものとする。
【0043】
ステップS8−1において、キーボードよりキーが押下され、割り込みが発生するのを待つ。キーが入力されるとステップS8−2においてキー判別し、キーの種類に応じて、ステップS8−3、ステップS8−4、ステップS8−5、ステップS8−6、ステップS8−7の何れかのステップに分岐する。
ステップS8−3は、読み入力キーYOMIが押下された時の処理であり、押下された読みのコードは入力読みバッファ・メモリYBUFに蓄える。
【0044】
ステップS8−4は、変換キーCONが押下された時の処理であり、ステップS8−3で入力されてYBUFに蓄えれらている、カナ漢字変換の対象となる文字列を漢字に変換し、出力バッファに出力する。
ステップS8−5は、次候補変換キーNXTが押下された時の処理であり、ステップS8−4によって出力された同音語バッファに対応する同音語プール中の同音語の別の候補を表示する。
【0045】
ステップS8−6は、選択キーSELが押下された時の処理であり、画面に表示されている出力バッファ中の同音語を確定し、確定された文字列を文書中に出力する。さらに、選択された単語が用例を構成している場合、個別用例を共通の意味分類によって表現した意味分類用例に抽象化することが可能かどうかを判定し、必要ならば意味分類用例として記憶する動作を行う。
【0046】
ステップS8−7は、YOMI、CON、NXT、SEL以外のキー(例えば、カーソル異同キー等の文書編集で用いるキー等)が押下された場合の処理であり、同種の文字処理装置において一般に行なわれている処理であり、公知であるので特に記述しない。
図9は、ステップS8−4の「変換処理」を詳細化したフローチャートである。
【0047】
ステップS9−1において、図10に詳述する文節候補作成処理を行い、文節候補テーブルBCTを作成する。
ステップS9−2において、図11に詳述する第1候補決定処理を行う。文節候補テーブルBCTに格納された文節候補の中から第1変換候補として相応しい候補を絞り込む。
【0048】
ステップS9−3は、ステップS9−2で決定された第1候補に基づいて、変換結果を同音語バッファDBFに作成して出力する。同時に第1候補にならなかった同じ読み開始位置、文節長の他の候補を同音語プールDBFに格納する。
図10は、ステップS9−1の「文節候補作成処理」を詳細化したフローチャートである。
【0049】
ステップS10−1において、入力の読みバッファYBUF上の文節候補作成開始インデックスi、文節候補テーブルBCTのインデックスjを「0」に初期設定する。
ステップS10−2において、iの示す入力バッファYBUF中の読みに基づき、単語辞書WDICを検索し、単語候補を求める。
【0050】
ステップS10−3において、見つかった単語候補対して接続する付属語列を解析する文節接続検定処理を行う。この結果、文節候補が得られる。
ステップS10−4において、得られた文節候補を文節候補テーブルBCTに格納する。単語検索、文節接続検定の結果得られた自立語単語、付属語列の情報をそれぞれ、BCJW、BCFWフィールドに格納し、SLNK、DLNKにこの文節候補を持ち得る他の文節候補についても設定する。すべての情報を文節候補テーブルBCTに格納後、ステップS10−5で文節候補テーブルインデックスjをカウントアップする。
【0051】
ステップS10−6において、文節候補開始位置がiである単語を、すなわち読み開始位置が同じである単語を全て検索し終えたかどうかを判定し、同じ開始位置の単語がまだ残っていれば、ステップS10−2ヘループし、検索を続行する。同じ読み開始位置の単語をすべて検索し終えていれば、ステップS10−7において、文節候補テーブルBCTに記述された付属語読み列の示す文節終了位置を、後続開始位置としてiにセットする。この時、すべての文節候補が終端していたならば、すなわち、文節候補テーブルBCTのDLNKの値が「−1」であったならば、入力読みの末尾に達しているので、文節候補作成処理を終了する。そうでなければ、セットしたiでステップS10−2ヘループし、後続の文節候補作成処理を続行する。
【0052】
図11は、ステップS9−2の「第1候補決定処理」を詳細化したフローチャートである。
ステップS11−1において、第1候補決定の指標値となるカウンタメモリmaxを「0」で初期設定する。maxは、すべての文節候補の中の最大尤度を示すもので、尤度「0」は最小の値である。
【0053】
ステップS11−2において、文節候補テーブルBCTより文節候補列をひとつ取り出す。
ステップS11−3において、取り出した文節候補列の文節尤度を算出する。文節対尤度の算出は、以下のように行う。
(文節対尤度)={(単語尤度)の操作}+{(文節間尤度)の総和}
単語尤度は単語辞書WDICのFQフィールドの値を用いる。
【0054】
文節間尤度は、文節間の接続の尤らしさを示す値であり、本実施の形態においては値を「0」に固定する。
ステップS11−4において、図12に詳述するように、取り出された文節候補列に適用可能な用例を用例テーブルYRTBLから検索し、用例適用尤度を文節対尤度に加算する。
【0055】
ステップS11−4において、図12に詳述するように、取り出された文節候補列を適用可能な用例を用例テーブルYRTBLから検索し、用例適用尤度を文節対尤度に加算する。
ステップS11−5において、算出された文節尤度が最大尤度maxより大きいかを判定し、大きい時はステップS11−6において最大尤度を算出された文節対尤度に更新する。また、ステップS11−7において、最大尤度に対応した文節候補列をRAM(図1)の不図示のワークメモリ領域didに格納する。ワークメモリ領域didは、文節候補テーブルBCTと同じ構成を持つが、SLNK、DLNKの値が、最大尤度を持つ文節候補列に対応した文節候補をリンクするようにユニークとなるように設定される。
【0056】
ステップS11−8において、文節候補テーブルBCTから別の文節候補列を取り出せるかどうかを判定し、取り出せる時はステップS11−2ヘループする。すべての文節候補列を処理し終えて、それ以上文節候補列を取り出せない時はリターンする。
図12は、ステップS11−4の「用例辞書検索」を詳細化したフローチャートである。
【0057】
ステップS12−1において、用例適用尤度yydを「0」で初期化し、用例が見つかっていない状態を初期状態とする。
ステップS12−2において、ステップS11−2で取り出された文節候補列より、用例検索注目文節を取り出し、用例を構成するペア文節候補があるかどうかを用例辞書YRTBLを検索する。
【0058】
ステップS12−3において、用例を構成するペア文節候補があるかどうかを判定し、見つからなければ、ステップS12−9ヘ進む。見つかれば、ステップS12−4以下の処理を行う。
ステップS12−4において見つかった用例のタイプをチェックする。見つかった用例が「学習個別用例」であったならば、ステップS12−5で用例適用尤度yydにyydの値と、1024のどちらか大きい方の値を再セットする。同様に、「学習意味用例」であれば、ステップS12−6でyydの値と、512のどちらか大きい法の値を再セットする。以下、「標準個別用例」である場合はステップS12−7でyydと256の大きい方、「標準意味用例」の場合はステップS12−8でyydと128の大きい方の値を再セットする。見つかった用例タイプによる用例適用尤度yydのセットを行なった後、他に用例が見つからないか検索するため、ステップS12−2ヘ戻る。
【0059】
すべての用例を検索し終えたら、ステップS12−9で、文節対尤度に文節尤度+yydをセットし、リターンする。すなわち、同じ文節候補に適用可能な用例が種類毎に複数個存在する場合、「学習意味用例」、「学習個別用例」、「標準個別用例」、「標準意味用例」の順で優先度が高くなる。
図13は、ステップS8−5の「次候補表示」を詳細化したフローチャートである。
【0060】
ステップS13−1において、次候補を表示させたい同音語の同音IDを取得する。
ステップS13−2において、同音語プールDBPの同じ同音IDを持つ次候補を、同音語プールの自立語JWPと付属語列FWPより取り出し、同音語バッファDBFの対応するJWおよびFWフィールドに格納し、これを表示する。
【0061】
図14は、ステップS8−6の「選択処理」を詳細化したフローチャートである。
ステップS14−1において、選択処理を行う同音語の同音IDを持つ同音語バッファDBFを取り出し、個別用例学習の対象となるかどうかを判定する。個別用例学習可能と判断されたならば、ステップS14−2で個別用例学習処理を行い、ステップS14−3へ進む。逆に、個別用例学習可能でないと判断されたならば、リターンする。
【0062】
ステップS14−3において、個別用例の集合から意味分類による用例パターンの置き換えを行う用例抽象化が可能かどうかを判定する。用例抽象化が可能であればステップS14−4で個別用例抽象化を行い、リターンする。用例抽象化が不可能であれば、そのままリターンする。
図15は、ステップS14−1の個別用例学習の要否の判定を詳細かしたフローチャートである。
【0063】
ステップS15−1において取り出された同音語バッファDBFのPHIDフィールドの値を参照し、この値が−1であるかどうかで係り受け関係の有無を判定する。PHIDの値が−1であれば係り先の文節無として、用例学習不要として値ターンする。そうでなければ、ステップS15−2で同音語バッファDBFのAPYRフィールドの適用用例を参照し、この値が「0」かどうかによって、用例が適用されているかどうかを判定する。用例が適用されていれば「用例学習不要」と判定し、用例が適用されていなければ、「用例学習要」と判断してリターンする。
【0064】
図16は、ステップS14−2の個別用例学習を詳細化したフローチャートである。
ステップS16−1において、個別用例学習の対象となっている文節対が学習意味用例の反例となっているかを図17に示す手順で判定する。反例となっているならば、図18に詳述するステップS16−3において反例用例として用例テーブルYRTBLに登録して、リターンする。反例ではないならば、ステップS16−2において、学習個別用例として対象文節対を用例テーブルYRTBLに登録する。
【0065】
図17は、ステップS16−1の学習意味用例の反例判定を詳細化したフローチャートである。
ステップS17−1において、対象文節に適用された用例連番APYRをGETする。
ステップS17−2において、APYRが示す用例のタイプが学習意味用例であるかどうかを用例テーブルYRTBLのYRTYPと照合し判定する。学習意味用例がなければ、ステップS17−5にて反例ではないとしてリターンする。
【0066】
APYRが示す用例の対応が学習意味用例であった場合、ステップS17−3において、対象文節の変更後候補CWの示す意味分類JWSをGETする。
ステップS17−4において、CWが持つ意味分類JWSがAPYRの示すYRTBLの意味分類と一致するかどうか照合する。一致するならば、ステップS17−5にて学習意味用例の反例であると判定してリターンする。一致しなければ、反例ではないと判定してリターンする。
【0067】
図18は、ステップS16−3の反例用例登録を詳細化したフローチャートである。
ステップS18−1において用例テーブルYRTBLに対象文節対を反例用例として登録する。
ステップS18−2において、反例を登録したことにより、図19に詳述する手順で、学習意味用例の妥当性を再評価する。妥当性あると評価されたならばリターンするが、妥当性なしと評価された場合は、ステップS18−3で学習意味用例の確信度を更新し、さらにステップS18−4において学習個別用例から学習意味用例への抽象化処理起動条件を更新してリターンする。
【0068】
図19は、ステップS18−2の学習意味用例妥当性再評価判定を詳細化したフローチャートである。
ステップS19−1において、対象となる学習意味用例に対して反例となる反例用例を用例テーブルYRTBLより検索し、その数をカウントする。
ステップS19−2にて、対象となる学習意味用例を満足させる学習個別用例を用例テーブルYRTBLより検索し、その数をカウントする。
【0069】
ステップS19−3において、ステップS19−1で得られた反例数とステップS19−2で得られた個別用例数とを比較し、反例数の方が多ければステップS19−4で妥当性少と判定し、そうでなければステップS19−5で妥当性ありとしてリターンする。
図20は、ステップS18−3の学習意味用例確信度更新を詳細化したフローチャートである。
【0070】
ステップS20−1において、学習意味用例の確信度を用例テーブルYRTBLのYCFよりCFにセットする。
ステップS20−2において、CFから0.1を減じる。
ステップS20−3において、CFが0より大きいかどうかチェックし、「0」以下であれば、学習意味用例としての信頼性を棄却し、ステップS20−5で学習意味用例を用例テーブルYRTBLより削除する。そうでなければ、ステップS20−4において、用例テーブルYRTBLの確信度YCFにCFの値をセットする。
【0071】
図21は、ステップS18−4の個別用例抽象化起動条件更新を詳細化したフローチャートである。
ステップS21−1において、抽象化起動個別用例定数Tを獲得する。
ステップS21−2においてTに10を加え、抽象化起動条件を更新してリターンする。
【0072】
図22は、ステップS14−3の個別用例抽象化判定を詳細化したフローチャートである。
ステップS22−1において、用例テーブルYRTBLにおいて、登録された学習個別用例の受け側文節UBINFが同一で、かつ、係り側文節KBINFに同一の意味分類を持つ個別用例をカウントし、カウンタメモリKにセットする。
【0073】
ステップS22−2において、個別用例数Kと抽象化起動個別用例定数Tを比較し、K≧Tであるならば、ステップS22−3にて、個別用例抽象化起動可能と判定し、そうでなければ、ステップS22−4にて抽象化不可能と判定してリターンする。
図23は、ステップS14−4の個別用例抽象化を詳細化したフローチャートである。
【0074】
ステップS23−1において、対象となる文節の同音語プールより意味分類JWSをGETする。
ステップS23−2において、ステップS14−2で登録した学習個別用例の係り側文節データを意味する分類JWSで格納した学習意味用例として用例テーブルYRTBLに格納する。
(他の実施の形態)
以上の説明において、本発明の実施形である文節間依存関係解析を行う文字処理装置として、入力対象文を仮名文字として仮名漢字変換装置を例に上げたが、本発明の実施形としては、仮名漢字変換装置に限定するものではない。文節間依存関係を解析し、文節間の関係を学習登録した意味用例に基づいて、学習意味用例に合致する文節候補を優先する処理を行う本発明の本旨を逸脱するものでなければよい。例えば、日本語文の文節構造を解析する文字処理装置として、漢字仮名混じり文を入力対象として、文節構造を解析し、文の意味的整合性をチェックし、誤り指摘を行う文書校正装置として本発明を実施することが可能である。
【0075】
また、以上の説明において、用例辞書にはペアで出現する単語の組み合わせとして、2単語(あるいは意味分類)のペアであるとしたが、単語のペアは3つ組あるいは、一般的にn個のペア(nは2以上の整数)であっても同様に処理することができる。
さらにまた、以上の説明において、個別用例を意味分類用例に抽象化する起動条件として、個別用例の絶対数が格納されたことをもって、抽象化するとしたが、図21に示す抽象化起動条件更新フローチャートを図24に示すフローチャートのようにし、図22に示す個別用例抽象化判定フローチャートを図25に示すフローチャートのように処理することもできる。その場合、以下のように動作する。
【0076】
図24は、ステップS18−4の個別用例抽象化起動条件更新を詳細化したフローチャートである。
ステップS24−1において、抽象化起動個別用例割合定数Rを獲得する。抽象化起動個別用例割合定数Rは、図1におけるRAMに確保されるものとする。
ステップS24−2においてRに0.1を加え、抽象化起動条件を更新するリターンする。
【0077】
図25は、ステップS14−3の個別用例抽象化判定を詳細化したフローチャートである。
ステップS25−1において、用例テーブルYRTBLにおいて、登録された学習個別用例の受け側文節UBINFが同一で、かつ、係り側文節KBINFに同一の意味分類を持つ個別用例数をカウントし、カウンタメモリKにセットする。
【0078】
ステップS25−2において、用例テーブルYRTBLにおいて、登録された学習個別用例の受け側文節UBINFが同一である個別用例数をカウントし、カウンタメモリSにセットする。カウンタメモリSは図1におけるRAMに確保されるものとする。
ステップS25−3にて、K/S、すなわち、同じ受け側文節UBINFを持つ全個別用例数における、係り側文節KBINFに同一の意味分類を持つ個別用例数の割合を求め、抽象化起動個別用例割合定数Rを比較し、
K/S≧Rであるならば、ステップS25−4にて、個別用例抽象化起動可能と判定し、そうでなければ、ステップS25−5にて抽象化不可能と判定してリターンする。
【0079】
上記のように、個別用例から意味分類用例への抽象化起動条件を個別用例の絶対数ではなく、意味分類用例化した場合に成立する用例数の割合で判定することができる。
また、図19において、学習意味用例の妥当性を判定する手段として、学習意味用例に対する反例数が、学習意味用例を満足させる個別用例数より絶対数が大きいかどうかで判定するようにしたが、図19におけるステップS19−3で、絶対数による比較でなく、反例数の個別用例数に占める割合を求め、その割合が所定の妥当性判定係数より大きいかどうかで判定することもできる。
【0080】
尚、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器から成る装置に適用しても良い。また、本発明はシステム或は装置にプログラムを供給することによって達成される場合にも適用できることはいうまでもない。
上述したように、本実施の形態によれば、学習した個別用例を意味分類用例として抽象化して自動的に登録した後にも、その意味分類用例に従わない反例数に基づき、意味分類用例の信頼性評価値としての確信度を更新することができ、入力の変化に随時対応したデータの信頼性を得ることができる。
【0081】
そのため、解析精度のよい操作性のよい日本語解析文字処理装置を提供することができる。
また、反例数が多すぎる時は、個別用例から意味分類用例への抽象化を行う起動条件を自動的に更新していくことができるため、信頼性のない意味分類用例の増殖を抑制することができ、メモリ使用効率を上げることができる。
【0082】
【発明の効果】
以上説明したように本発明によれば、変換精度が高く、高速に文章変換が可能となる。
【図面の簡単な説明】
【図1】本実施の形態の文字処理装置の全体構成を示すブロック図である。
【図2】本実施の形態の文字処理装置における入力読みバッファの構成の例を示した図である。
【図3】本実施の形態の文節候補テーブルの構成の例を示した図である。
【図4】本実施の形態の文字処理装置における同音語バッファの構成の例を示した図である。
【図5】本実施の形態の文字処理装置における同音語プールの構成の例を示した図である。
【図6】本実施の形態の文字処理装置における単語辞書の構成の例を示した図である。
【図7A】本実施の形態の文字処理装置における用例辞書テーブルの構成の例を示した図である。
【図7B】本実施の形態の文字処理装置における用例辞書テーブルの構成の例を示した図である。
【図7C】本実施の形態の文字処理装置における用例辞書テーブルの構成の例を示した図である。
【図7D】本実施の形態の文字処理装置における用例辞書テーブルの構成の例を示した図である。
【図8】本実施の形態の動作全体の処理手順の一例を示すフローチャートである。
【図9】本実施の形態の変換処理の処理手順の一例を示すフローチャートである。
【図10】本実施の形態の文節候補作成処理の処理手順の一例を示すフローチャートである。
【図11】本実施の形態の第1候補決定処理の処理手順の一例を示すフローチャートである。
【図12】本実施の形態の用例辞書検索処理の処理手順の一例を示すフローチャートである。
【図13】本実施の形態の次候補表示処理の処理手順の一例を示すフローチャートである。
【図14】本実施の形態の選択処理の処理手順の一例を示すフローチャートである。
【図15】本実施の形態の個別用例学習要否判定の処理手順の一例を示すフローチャートである。
【図16】本実施の形態の個別用例学習の処理手順の一例を示すフローチャートである。
【図17】本実施の形態の反例判定の処理手順の一例を示すフローチャートである。
【図18】本実施の形態の反例登録の処理手順の一例を示すフローチャートである。
【図19】本実施の形態の学習意味用例妥当性判定の処理手順の一例を示すフローチャートである。
【図20】本実施の形態の学習意味用例確信度更新の処理手順の一例を示すフローチャートである。
【図21】本実施の形態の抽象化起動条件更新の処理手順の一例を示すフローチャートである。
【図22】本実施の形態の個別用例抽象化判定の処理手順の一例を示すフローチャートである。
【図23】本実施の形態の個別用例抽象化学習の処理手順の一例を示すフローチャートである。
【図24】他の実施の形態における抽象化起動条件更新の処理手順の一例を示すフローチャートである。
【図25】他の実施の形態における個別用例抽象化判定の処理手順の一例を示すフローチャートである。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a character processing method and apparatus, and in particular, a character processing method having a function of narrowing down the phrase structure of a target sentence for Japanese sentences and checking the phrase structure by phrase dependency and the words constituting the phrase It relates to the device.
[0002]
[Prior art]
Conventionally, as a character processing device with a function to analyze the phrase structure of an input sentence for Japanese sentences, Kana-kanji that inputs kana reading, analyzes the phrase structure, and converts it into an appropriate kanji character string There is a conversion device.
In kana-kanji conversion, input reading sequences are analyzed to create possible phrase candidates, conversion candidates are determined from the combinations, and presented in the most likely order. A candidate desired by the operator is selected from the presented conversion candidates. In order to increase the likelihood of conversion candidates presented as the first candidate, conventionally, a method of narrowing down conversion candidates by using different parts of speech or a method of arranging them in the order of word frequencies have been implemented.
[0003]
In addition, an example in which a pair of examples such as “read a book” is registered in the example dictionary in advance, and the first candidate is determined according to the example in the example dictionary by referring to the example dictionary at the time of conversion. The technique of conversion has been implemented. In addition to examples that describe the relationship between words such as “read a book”, examples that describe relationships with semantic classifications that group words together are proposed. For example, if the example of “write on [concrete object]” is registered, this example is applied to “paper” which is [concrete object], and the first conversion candidate “write on paper” is obtained. Can do. By selecting a semantically possible word pair as an example to be registered in the example dictionary and using this example conversion mechanism, the possibility of obtaining a correct conversion result has increased.
[0004]
Furthermore, a method (Japanese Patent Publication No. 5-63831) has been proposed in which example words that have not been registered in advance and are stored together with the relationship are learned according to the input of the input person. According to this, for example, a combination of the words “submarine resources” can be stored as an example, and erroneous analysis such as “revised resources” can be avoided.
[0005]
[Problems to be solved by the invention]
However, in the conventional example learning, only the combination of individual word pairs is learned, so the memory capacity required for storage becomes enormous and it is difficult to hold all of the learning results. It was.
Moreover, the effect of analyzing the relationship between clauses by example learning is limited to only the learned individual word relationship examples, and the effect was not obtained for other words having the same relationship.
[0006]
In addition, as the number of stored examples increases, the search time increases and processing time for analyzing the relationship between clauses increases, which makes it difficult to achieve high-precision analysis efficiency at low cost. .
The present invention has been made in view of the above conventional example, and an object of the present invention is to provide a character processing method and apparatus capable of high-speed text conversion with high conversion accuracy.
[0007]
[Means for Solving the Problems]
  In order to achieve the above object, a character processing method and apparatus according to the present invention comprise the following arrangement. That is, with wordsTheCombination information of words that have affinity with wordsMemorize as individual exampleDoIndividualExample dictionary, word,TheWord and affinityThe meaning concept of a wordCombination withAs a semantic example, the combinationConfidence inMeaning to remember togetherExample dictionary and the abovemeaningExample dictionaryFor example meaning ofSaidIndividualExample dictionaryIn individual examples of,Corresponds to the combination of the semantic example word and semantic conceptExamples andCorresponds to a combination of homophones and semantic concepts of the word in the semantic exampleCounter-use exampleWhenIn the ratio of the number of the extracted example and the counter example, the example extracting means for extractingAntiIf the proportion of examples is greater than a predetermined threshold,meaningThe example dictionarySemantic examplesCertainty corresponding toLowerConfidence adjustment means,As a result of the adjustment by the certainty factor adjusting unit, the example invalidating unit for invalidating the semantic example in which the certainty factor is equal to or less than a predetermined value;
Individual applicable to the phrase sequence enteredexampleOr semantic examplesBased on the phrase sequence,When an individual example is applicable, it is converted into a conversion candidate using a combination of words corresponding to the individual example. When a semantic example is applicable, a word corresponding to a combination of a word of the semantic example and a semantic concept is converted. Convert to conversion candidate using combinationConversion means.
[0008]
  Further, another invention is an individual example dictionary storage means for storing, as an individual example, combination information of a word and a word having affinity with the word,
  A semantic example dictionary storing means for storing a combination of a word and a semantic concept of a word having affinity with the word as a semantic example, and a processing means for executing various processes based on a program;An example extracting means, a certainty factor adjusting means, an example invalidating means, and a converting means, which are realized by cooperation of the processing means and the program storing means.A character processing method for processing characters in a character processing device comprising:
  SaidThe example extraction meansWith respect to the semantic examples stored in the semantic example dictionary storage means, among the individual examples stored in the individual example dictionary storage means, examples corresponding to combinations of words and semantic concepts of the semantic examples and the semantic examples An example extraction step for extracting a reusal example corresponding to a combination of a word homophone and a semantic concept;
  SaidThe confidence adjustment meansIn the ratio of the number of extracted examples and counterexamples, if the ratio of the counterexamples is larger than a predetermined threshold, the certainty factor that lowers the certainty factor stored in the semantic example dictionary storage unit corresponding to the semantic example Adjustment process;
  SaidExample invalidation meansAs a result of the adjustment in the certainty factor adjustment step, an example invalidation step of invalidating a semantic example whose certainty factor is equal to or less than a predetermined value in the semantic example dictionary storage unit;
  SaidConversion meansIndividual examples or semantic examples applicable to the input phrase string are retrieved from the individual example dictionary storage means and the semantic example dictionary storage means, and the phrase string corresponds to the individual example when the individual examples are applicable Converting to a conversion candidate using a combination of words, and when a semantic example is applicable, converting to a conversion candidate using a word combination corresponding to the combination of the word of the semantic example and the semantic concept, Prepare.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
The point of this embodiment is that each example learned as relation data between clauses is abstracted for each example having a common semantic classification, registered as a semantic classification example, and an abstract semantic classification example When the result analyzed by application is reversed, the semantic category non-applicable phrase pair is registered as a counterexample, the reliability index value of the abstract example is obtained by the number of counterexamples, and the counterexamples are individually used. It is an object of the present invention to provide a character processing device that performs control so that abstraction to a semantic classification example can be dynamically changed by using it as an index value for changing an abstraction activation condition.
[0010]
In the following, a character processing method according to an embodiment of the present invention and one of the points of the apparatus will be summarized first and then will be described in detail.
In the character processing method of the present embodiment, the learned individual examples are abstracted and registered as semantic classification examples, and whether or not the registered semantic classification examples are satisfied is determined by analyzing the inter-phrase dependency.
[0011]
For this reason, even if it is not registered as an individual example, a semantically valid phrase structure can be selected.
In addition, it is possible to improve the analysis accuracy of inter-phrase dependency.
Furthermore, by abstracting and registering as semantic classification examples, the memory capacity can be reduced, and this can be realized at low cost.
[0012]
In addition, phrase pairs that do not match the abstracted semantic classification examples can be registered as counterexamples, and the timing of abstraction processing can be dynamically changed with respect to the input depending on the number of counterexamples.
Hereinafter, in the character processing method and apparatus of the present embodiment, in particular, a case where Kana-Kanji conversion is performed using an input target as a Japanese kana reading sequence will be described in detail with reference to the drawings.
[0013]
FIG. 1 is an example of the overall configuration of the present invention.
In the configuration shown in the figure, the CPU is a microprocessor that performs operations for character processing, logical determination, and the like, and is connected to these buses via an address bus AB, a control bus CB, and a data bus DB. Control elements.
The address bus AB transfers an address signal indicating a component to be controlled by the microprocessor CPU. The control bus CB sends a control signal to each component to be controlled by the microprocessor CPU. The data bus DB transfers data between the component devices.
[0014]
Next, the ROM is a read-only fixed memory. PA is a program area in which a control procedure of a microprocessor CPU, which will be described later with reference to FIGS.
The RAM is a writable random access memory having a configuration of 16 bits per word, and is used for temporary storage of various data for each component.
[0015]
WDIC is a word dictionary for performing kana-kanji conversion. FIG. 6 shows the configuration.
YRTBL is an example dictionary that stores combinations of clauses. FIG. 7 shows the configuration.
YBUF is an input reading buffer memory for storing readings input from the keyboard KB.
[0016]
TBUF is a document buffer and is a memory for storing document information input from the keyboard KB.
BCT is a phrase candidate table that stores phrase candidates in the middle of kana-kanji conversion. FIG. 3 shows the configuration.
DBF is a homophone buffer memory that stores unconfirmed phrase candidates for Kana-Kanji conversion. FIG. 4 shows the configuration.
[0017]
DBP is a homonym pool memory that stores other candidates for kana-kanji conversion corresponding to DBF. FIG. 5 shows the configuration.
T and K are counter memories.
KB is a keyboard, and includes various function keys such as character symbol input keys such as alphabet keys, hiragana keys and katakana keys, and conversion keys for instructing conversion. In FIG. 1, YOMI is a key for inputting a reading, CON is a conversion instruction key for converting the input reading, NXT is a next candidate conversion instruction key for changing a conversion candidate and converting it to a next candidate, SEL Is a selection key for instructing to confirm the current homophone display candidate and learn as an example at the same time.
[0018]
The DISK is an external memory for storing a standard document, and the created document is stored. The stored document is called when necessary by an instruction from the keyboard.
CR is a cursor register. The contents of the cursor register can be read and written by the CPU. A CRT controller (CRTC), which will be described later, displays a cursor at a position on the display device (CRT) corresponding to the address stored here.
[0019]
The DBUF is a display buffer memory and stores display patterns corresponding to document information and the like stored in the TBUF.
The CRTC plays a role of displaying the contents stored in the cursor register (CR) and the buffer (DBUF) on the display CRT.
The CRT is a display device using a cathode ray tube or the like, and the dot configuration pattern and cursor display on the display device CRT are controlled by a CRT controller.
[0020]
Further, the CG is a character generator and stores a pattern of characters and symbols to be displayed on a display device (CRT).
The character processing apparatus according to the present embodiment composed of such components operates in response to various inputs from the keyboard KB. When an input from the keyboard KB is supplied, an interrupt signal is first generated. Various control signals sent to the microprocessor (CPU) and stored in the ROM are read out, and various controls are performed in accordance with these control signals.
[0021]
FIG. 2 is a diagram showing the configuration of the input reading buffer YBUF in the character processing device of this embodiment.
YBUF is a buffer memory for storing readings input from KB. In the present embodiment, up to 512 characters can be stored with a JIS code of 2 bytes per character. 0 is stored as a blank code indicating no input in an area where no reading is input.
[0022]
FIG. 3 is an example of the phrase candidate table BCT in the character processing device of this embodiment. The phrase candidate table is a table expressing a string of phrases that can be analyzed from the beginning to the end of the input reading string in a tree structure with one phrase candidate as a node, and is composed of five fields.
In FIG. 3, BCID is an ID (identification) number that makes each phrase candidate unique.
[0023]
BCJW represents a self-supporting part word of a phrase candidate and stores a pointer to the word dictionary WDIC in which the self-supporting part word exists.
BCFW stores an attached word string that constitutes an attached part of a phrase candidate. The attached word string stores the attached word start position and attached word end position as an index on the input reading buffer YBUF.
[0024]
In FIG. 3, “φ” means that there is no attached word string.
SLNK links another phrase candidate having the same phrase start reading position as that phrase candidate, and stores a phrase candidate ID of a link destination. The phrase candidate ID “−1” having no SLNK value means a termination code, and indicates that there is no more same reading start position phrase.
[0025]
DLNK links phrase candidates subsequent to the phrase candidate, and stores the phrase candidate ID of the link destination similar to SLNK. A DLNK value of -1 means that there are no more phrase candidates that follow, as in SLNK.
For example, the phrase candidate ID “0” “milk” has “father” or “slowly” as the phrase candidate at the same reading start position, and “greeting” as the subsequent phrase candidate. .
[0026]
FIG. 4 is an example of the homophone buffer DBF in the character processing device of this embodiment. The homophone buffer DBF is a buffer memory for storing the conversion result obtained from the phrase candidate table BCT.
In FIG. 4, HID is a homophone ID and is an ID number that makes each of the homophones created for each phrase unique.
[0027]
The JW stores the number HN from the top of the homophone pool DBF shown in FIG. 5 as the first conversion candidate of the homophone. An independent word to which an application example serial number APYR described later is applied is shown.
The CW stores the number HN from the head of the homophone word pool DBF shown in FIG. 5 for the candidate currently changed by the next candidate change of the homophone.
[0028]
When CW is “0”, it indicates that this homophone remains the first conversion candidate and has not undergone the next candidate change.
The PHID stores a homophone ID of a pair homophone with a dependency relationship (which becomes a pair of an example when an example is searched) having a dependency relationship with the homophone.
When PHID is “−1”, it means that there is no related pair homophone.
[0029]
When determining the first candidate, the ARYR stores the serial number YSN of the example dictionary YRTBL applied to the pair homophones having a dependency relationship. In FIG. 4, the homophone “Father to Father” indicates that the example of “greeting (* human)” of the example serial number “2” is applied.
FIG. 5 is an example of the homophone pool DBP in the character processing device according to the present embodiment. The homologous word pool stores all possible word candidates as candidates for the homologous word for the homologous word buffer that stores only the information of the first candidate.
[0030]
In FIG. 5, HN is a sequence number of homophones. A serial number is assigned from 1. The HID stores which homophone is a candidate with the homophone ID of the corresponding homophone buffer DBF.
The JWP stores a pointer to the word dictionary WDIC for possible independent words that can be used as homophones of the corresponding phrase.
[0031]
JWS stores the semantic classification code of the word stored in JWP. The semantic classification code is a code that the word has in the WIMI of the dictionary WDIC.
The FWP stores an attached word string for the independent part word JWP. For example, a phrase having a homophone ID “10” has three homophone candidates “father”, “milk”, and “slowly”.
[0032]
FIG. 6 is a diagram showing a configuration of the word dictionary DIC in the character processing device according to the present embodiment.
The DIC is composed of five items: reading YYOM, notation WHYOKI, part of speech WHIN, T difficult word meaning code WIMI, and word frequency WFRQ per word.
The semantic code WIMI is a classification code indicating a semantic attribute that a word does not originally have. If there is no semantic code, “¥” is stored as an indefinite symbol.
[0033]
FIG. 7A, FIG. 7B, FIG. 7C, and FIG. 7D are diagrams showing the configuration of an example table YRTBL that stores a set of clauses having a dependency relationship in the character processing device according to the present embodiment.
As will be described later, the example table is automatically abstracted from pre-stored standard individual examples and standard semantic examples, and learning individual examples, learning counterexamples, and learning individual examples that are stored by the operator's learning. Each of the learning semantic examples constructed in this way can be stored.
[0034]
FIG. 7A is a diagram showing an overall configuration of the example table YRTBL. The YRTBL is composed of an example table head TBLHD and an example table body TBLBD.
FIG. 7B is a diagram illustrating a configuration of the example table header TBLHD. TBLHD is an information storage area indicating the storage status of the example table.
[0035]
LYRC indicates the number of learning examples stored, and the initial value is zero.
LYRS stores the total area size used in the learning example, and the initial value is zero.
LYRP stores the remaining size of the learning example that can be stored by the learning of the operator. In the initial state, a value obtained by subtracting the total size of the standard individual example, standard semantic example, and learning counterexample example size from the example table body size is stored. The LHRC stores the number of stored learning counterexamples that are counterexamples that do not match the learning semantic examples. The initial value is 0.
[0036]
JHRS stores the remaining size of the learning counterexample. The learning counterexample is determined so that at least one counterexample can be stored in the initial state.
The remainder area of the example table is filled with “0” as a spare unstored area.
FIG. 7C is a diagram illustrating a configuration of the example table body.
YSN is a serial number of the example, and the example stored in the head of the example table is 1, and a serial number incremented by 1 is added.
[0037]
The USN is a serial number of the accepting clause that becomes a headline of an example to be described later.
SUN is a serial number in the example of the same heading, and the example of the same heading word information is set to 1 at the beginning, and a serial number that is sequentially increased by one is assigned.
YRTYP represents the type of the stored example, and can take the following five values.
Standard individual
Standard meaning
Individual learning
Learning meaning
Learning counterexample
KBCNT stores the number of dependency clauses KBINF related to one receiving header clause UBINF. When there is only one clause related to the receiving clause, “1” is entered.
“Cut meat with a knife”
As shown in the above, when there are two dependency clauses of “cutting knife” and “meat” in the receiving clause “cut”, “2” is entered. In this configuration, this dependency clause can be stored. That is, one example data is composed of a maximum of (N + 1) clauses.
[0038]
YCF stores a certainty value indicating the reliability of the example. The confidence value is
0 ≦ YCF ≦ 1.0
The larger the value, the more reliable the example.
[0039]
UBINF stores the receiver clause condition that is the headline of the example. UBINF has the configuration shown in FIG. 7D.
KBINF (i) stores the dependency clause condition of the example relating to the receiving clause condition UBINF. In the present embodiment, a fixed-length configuration capable of storing a maximum of N dependency-side clause conditions is used, and “¥” is entered as an unused area in the remaining dependency-side clause conditions. The structure of KBINF (i) is the same as that of UBINF shown in FIG. 7D.
[0040]
Note that the receiver clause conditions that enter UBINF are sorted in the table according to the ascending readings stored in the word reading YMYOM shown in FIG. 7D.
FIG. 7D is a diagram illustrating the configuration of the example configuration clause condition, which is a detailed configuration of the receiving-side clause condition and the dependency-side clause condition in FIG. 7C.
YMYOM is an area for storing a word constituting the phrase condition, YMHYO is a word notation, YMHIN is a word part of speech, and YMIMI is an area for storing a word semantic code. WYOMI of the word dictionary DIC shown in FIG. This corresponds to the values stored in WHYOKI, WHIN, and WIMI.
[0041]
YMCON stores the phrase end form of the words constituting the phrase condition. In the case of a dependency-side phrase condition, YMCON stores information for determining how to connect to the receiver-side phrase condition. And the following values can be taken.
Introductory form of words
Conjugated word usage
Termination form of words
Conjunctive form of words
Assumptions of usage words
Imperative form of words
The particle "ga"
Particle "O"
The particle "ni"
The particle "no"
The particle "to"
The particle "de"
The particle "kara"
Particle "Yor"
The particle "until"
In the example table description example shown in FIGS. 7C and 7D,
"Love nature"
“Greeting to (* human)”
"Meet (* human)"
“Greeting to station staff”
"Greeting to the teacher"
"Greeting to my uncle"
“Greeting to the neighborhood”
The example is described. However, the symbol “(*)” indicates not a word but a semantic classification code.
[0042]
Next, the processing procedure of the above-described embodiment will be described according to the flow.
FIG. 8 is a flowchart showing the operation of the character processing apparatus of this embodiment.
In describing the processing of the following flowchart, various variable names appear, but these are assumed to be assigned in advance to a predetermined area of the RAM (FIG. 1).
[0043]
In step S8-1, the process waits for an interrupt to be generated by pressing a key from the keyboard. When a key is input, the key is determined in step S8-2, and any one of step S8-3, step S8-4, step S8-5, step S8-6, and step S8-7 is selected according to the type of the key. Branch to step.
Step S8-3 is processing when the reading input key YOMI is pressed, and the code of the pressed reading is stored in the input reading buffer memory YBUF.
[0044]
Step S8-4 is processing when the conversion key CON is pressed, and converts the character string to be kana-kanji conversion target input in step S8-3 and stored in YBUF into kanji, Output to the output buffer.
Step S8-5 is processing when the next candidate conversion key NXT is pressed, and displays another candidate for the homophone in the homophone pool corresponding to the homophone buffer output in step S8-4.
[0045]
Step S8-6 is processing when the selection key SEL is pressed, confirms the homophone in the output buffer displayed on the screen, and outputs the confirmed character string in the document. Further, when the selected word constitutes an example, it is determined whether it is possible to abstract the individual example into a semantic classification example expressed by a common semantic classification, and if necessary, it is stored as a semantic classification example. Perform the action.
[0046]
Step S8-7 is processing when a key other than YOMI, CON, NXT, SEL (for example, a key used for document editing such as a cursor difference key) is pressed, and is generally performed in the same type of character processing apparatus. Since it is a known process, it is not particularly described.
FIG. 9 is a detailed flowchart of the “conversion process” in step S8-4.
[0047]
In step S9-1, the phrase candidate creation process detailed in FIG. 10 is performed to create a phrase candidate table BCT.
In step S9-2, the first candidate determination process detailed in FIG. 11 is performed. The candidates suitable as the first conversion candidates are narrowed down from the phrase candidates stored in the phrase candidate table BCT.
[0048]
In step S9-3, based on the first candidate determined in step S9-2, a conversion result is created and output to the homophone buffer DBF. At the same time, other candidates for the same reading start position and phrase length that have not become the first candidate are stored in the homonym pool DBF.
FIG. 10 is a detailed flowchart of the “sentence candidate creation process” in step S9-1.
[0049]
In step S10-1, the phrase candidate creation start index i on the input reading buffer YBUF and the index j of the phrase candidate table BCT are initialized to “0”.
In step S10-2, the word dictionary WDIC is searched based on the reading in the input buffer YBUF indicated by i to obtain word candidates.
[0050]
In step S10-3, a phrase connection verification process for analyzing an attached word string connected to the found word candidate is performed. As a result, phrase candidates are obtained.
In step S10-4, the obtained phrase candidates are stored in the phrase candidate table BCT. Information on independent words and adjunct word strings obtained as a result of word search and phrase connection verification is stored in the BCJW and BCFW fields, respectively, and other phrase candidates that can have this phrase candidate in SLNK and DLNK are also set. After all the information is stored in the phrase candidate table BCT, the phrase candidate table index j is counted up in step S10-5.
[0051]
In step S10-6, it is determined whether or not all the words having the same phrase starting position, i.e., the words having the same reading starting position, have been searched. Loop to S10-2 and continue the search. If all the words at the same reading start position have been searched, in step S10-7, the phrase end position indicated by the attached word reading sequence described in the phrase candidate table BCT is set to i as the subsequent start position. At this time, if all the phrase candidates are terminated, that is, if the DLNK value of the phrase candidate table BCT is “−1”, the end of the input reading has been reached, so the phrase candidate creation process Exit. Otherwise, the set i is looped to step S10-2, and the subsequent phrase candidate creation process is continued.
[0052]
FIG. 11 is a detailed flowchart of the “first candidate determination process” in step S9-2.
In step S11-1, a counter memory max that is an index value for determining the first candidate is initially set to “0”. max indicates the maximum likelihood among all the phrase candidates, and the likelihood “0” is the minimum value.
[0053]
In step S11-2, one phrase candidate string is extracted from the phrase candidate table BCT.
In step S11-3, the phrase likelihood of the extracted phrase candidate string is calculated. The phrase pair likelihood is calculated as follows.
(Phrase pair likelihood) = {(word likelihood) operation} + {sum of (inter-phrase likelihood)}
The word likelihood uses the value of the FQ field of the word dictionary WDIC.
[0054]
The phrase likelihood is a value indicating the likelihood of connection between phrases, and is fixed to “0” in the present embodiment.
In step S11-4, as will be described in detail with reference to FIG. 12, an example applicable to the extracted phrase candidate string is searched from the example table YRTBL, and the example application likelihood is added to the phrase pair likelihood.
[0055]
In step S11-4, as will be described in detail with reference to FIG. 12, an example that can apply the extracted phrase candidate string is searched from the example table YRTBL, and the example application likelihood is added to the phrase pair likelihood.
In step S11-5, it is determined whether the calculated phrase likelihood is larger than the maximum likelihood max. If it is larger, the maximum likelihood is updated to the calculated phrase pair likelihood in step S11-6. In step S11-7, the phrase candidate string corresponding to the maximum likelihood is stored in a work memory area did not shown in the RAM (FIG. 1). The work memory area did has the same configuration as the phrase candidate table BCT, but the values of SLNK and DLNK are set to be unique so as to link the phrase candidates corresponding to the phrase candidate string having the maximum likelihood. .
[0056]
In step S11-8, it is determined whether another phrase candidate string can be extracted from the phrase candidate table BCT, and if it can be extracted, the process loops to step S11-2. When all the phrase candidate strings have been processed and no more phrase candidate strings can be extracted, the process returns.
FIG. 12 is a detailed flowchart of the “example dictionary search” in step S11-4.
[0057]
In step S12-1, the example application likelihood yyd is initialized with “0”, and a state where no example is found is set as an initial state.
In step S12-2, an example search attention phrase is extracted from the phrase candidate string extracted in step S11-2, and the example dictionary YRTBL is searched for a pair phrase candidate constituting the example.
[0058]
In step S12-3, it is determined whether there is a pair clause candidate constituting the example. If not found, the process proceeds to step S12-9. If found, the process of step S12-4 and subsequent steps is performed.
The type of example found in step S12-4 is checked. If the found example is the “learning individual example”, the value yyd and the value of 1024, whichever is larger, are reset to the example application likelihood yyd in step S12-5. Similarly, in the case of “learning meaning example”, the yyd value and 512, whichever is larger, are reset in step S12-6. In the case of “standard individual example”, the larger value of yyd and 256 is reset in step S12-7, and in the case of “standard meaning example”, the larger value of yyd and 128 is reset in step S12-8. After setting the example application likelihood yyd according to the found example type, the process returns to step S12-2 to search for another example.
[0059]
When all the examples have been searched, in step S12-9, the phrase likelihood + yd is set as the phrase pair likelihood, and the process returns. In other words, when there are multiple examples applicable to the same phrase candidate for each type, the priority is higher in the order of “learning semantic examples”, “learning individual examples”, “standard individual examples”, and “standard semantic examples”. Become.
FIG. 13 is a detailed flowchart of the “next candidate display” in step S8-5.
[0060]
In step S13-1, the homophone ID of the homophone for which the next candidate is to be displayed is acquired.
In step S13-2, the next candidate having the same sound ID in the sound word pool DBP is extracted from the independent word JWP and the attached word string FWP of the sound word pool, and stored in the corresponding JW and FW fields of the sound word buffer DBF. Display this.
[0061]
FIG. 14 is a detailed flowchart of the “selection process” in step S8-6.
In step S14-1, the homophone buffer DBF having the homophone ID of the homophone for which the selection process is performed is taken out, and it is determined whether or not it becomes a target for individual example learning. If it is determined that individual example learning is possible, an individual example learning process is performed in step S14-2, and the process proceeds to step S14-3. Conversely, if it is determined that individual example learning is not possible, the process returns.
[0062]
In step S14-3, it is determined whether or not an example abstraction for replacing an example pattern by semantic classification from a set of individual examples is possible. If example abstraction is possible, individual example abstraction is performed in step S14-4, and the process returns. If example abstraction is not possible, return as is.
FIG. 15 is a flowchart detailing the determination of necessity of individual example learning in step S14-1.
[0063]
With reference to the value of the PHID field of the homophone buffer DBF extracted in step S15-1, whether or not there is a dependency relationship is determined by whether or not this value is -1. If the value of PHID is −1, it is determined that there is no clause at the destination, and value turn is performed so that no example learning is necessary. Otherwise, in step S15-2, the application example of the APYR field of the homophone buffer DBF is referred to, and it is determined whether the example is applied depending on whether this value is “0”. If the example is applied, it is determined that “example learning is not necessary”, and if the example is not applied, it is determined that “example learning is necessary” and the process returns.
[0064]
FIG. 16 is a flowchart detailing the individual example learning in step S14-2.
In step S16-1, it is determined by the procedure shown in FIG. 17 whether the phrase pair that is the subject of individual example learning is a counterexample of the learning meaning example. If it is a counterexample, it is registered in the example table YRTBL as a counterexample in step S16-3 described in detail in FIG. If it is not a counterexample, in step S16-2, the target phrase pair is registered in the example table YRTBL as an individual learning example.
[0065]
FIG. 17 is a flowchart detailing the counterexample determination of the learning meaning example in step S16-1.
In step S17-1, the example serial number APYR applied to the target clause is GETd.
In step S17-2, whether or not the type of the example indicated by APYR is a learning semantic example is checked against YRTYP in the example table YRTBL. If there is no learning meaning example, it returns that it is not a counterexample in step S17-5.
[0066]
If the correspondence of the example indicated by APYR is the learning meaning example, in step S17-3, the semantic classification JWS indicated by the post-change candidate CW of the target phrase is GET.
In step S17-4, it is checked whether the semantic classification JWS possessed by the CW matches the semantic classification of YRTBL indicated by APYR. If they match, it is determined in step S17-5 that it is a counterexample of the learning meaning example, and the process returns. If they do not match, it is determined that there is no counterexample and the process returns.
[0067]
FIG. 18 is a flowchart detailing the counterexample registration in step S16-3.
In step S18-1, the target phrase pair is registered in the example table YRTBL as a counterexample.
In step S18-2, by registering the counterexample, the validity of the learning meaning example is re-evaluated by the procedure detailed in FIG. If it is evaluated as valid, the process returns. If it is evaluated as invalid, the confidence of the learning meaning example is updated in step S18-3, and further, the learning meaning is determined from the learning individual example in step S18-4. Update the abstraction processing start condition for the example and return.
[0068]
FIG. 19 is a flowchart detailing the learning meaning example validity re-evaluation determination in step S18-2.
In step S19-1, counterexamples that are counterexamples to the target learning meaning examples are searched from the example table YRTBL, and the number is counted.
In step S19-2, an individual learning example satisfying the target learning meaning example is searched from the example table YRTBL, and the number is counted.
[0069]
In step S19-3, the number of counter examples obtained in step S19-1 is compared with the number of individual examples obtained in step S19-2. If the number of counter examples is larger, it is determined that the validity is low in step S19-4. If not, the process returns as valid in step S19-5.
FIG. 20 is a flowchart detailing the learning meaning example certainty factor update in step S18-3.
[0070]
In step S20-1, the certainty factor of the learning meaning example is set to CF from YCF of the example table YRTBL.
In step S20-2, 0.1 is subtracted from CF.
In step S20-3, it is checked whether or not CF is larger than 0. If “0” or less, the reliability as the learning meaning example is rejected, and the learning meaning example is deleted from the example table YRTBL in step S20-5. . Otherwise, in step S20-4, the value of CF is set in the certainty factor YCF of the example table YRTBL.
[0071]
FIG. 21 is a flowchart detailing the individual example abstraction activation condition update in step S18-4.
In step S21-1, the abstract activation individual example constant T is acquired.
In step S21-2, 10 is added to T, the abstraction activation condition is updated, and the process returns.
[0072]
FIG. 22 is a flowchart detailing the individual example abstraction determination in step S14-3.
In step S22-1, in the example table YRTBL, individual examples having the same semantic classification as the receiving-side clause KBINF are counted in the example learning table YRTBL and set in the counter memory K. To do.
[0073]
In step S22-2, the number K of individual examples is compared with the abstract activation individual example constant T. If K ≧ T, it is determined in step S22-3 that the individual example abstraction can be activated, and so on. In step S22-4, it is determined that abstraction is impossible, and the process returns.
FIG. 23 is a flowchart detailing the individual example abstraction in step S14-4.
[0074]
In step S23-1, the semantic classification JWS is GETted from the homophone pool of the target phrase.
In step S23-2, it is stored in the example table YRTBL as a learning semantic example stored in the classification JWS meaning the relation side phrase data of the learning individual example registered in step S14-2.
(Other embodiments)
In the above description, as a character processing device that performs inter-phrase dependency analysis, which is an embodiment of the present invention, an input target sentence is a kana character and a kana-kanji conversion device is taken as an example, but as an embodiment of the present invention, It is not limited to the Kana-Kanji conversion device. As long as it does not depart from the spirit of the present invention that analyzes the inter-phrase dependency and performs processing that prioritizes the phrase candidates that match the learned semantic examples based on the semantic examples obtained by learning and registering the relations between phrases. For example, the present invention is a character processing apparatus for analyzing the phrase structure of a Japanese sentence, as a document proofreading apparatus for analyzing a phrase structure, checking the semantic consistency of a sentence, and indicating an error, using a kana-kana mixed sentence as an input target Can be implemented.
[0075]
In the above description, the example dictionary has two word (or semantic classification) pairs as a combination of words appearing in pairs. However, there are three word pairs or generally n number of word pairs. Even a pair (n is an integer of 2 or more) can be processed similarly.
Furthermore, in the above description, as the activation condition for abstracting the individual example into the semantic classification example, the absolute number of the individual example is stored and abstracted. However, the abstracted activation condition update flowchart shown in FIG. 24 can be processed as in the flowchart shown in FIG. 24, and the individual example abstraction determination flowchart shown in FIG. 22 can be processed as in the flowchart shown in FIG. In that case, it operates as follows.
[0076]
FIG. 24 is a flowchart detailing the individual example abstraction activation condition update in step S18-4.
In step S24-1, an abstract activation individual example ratio constant R is acquired. Assume that the abstract activation individual example ratio constant R is secured in the RAM in FIG.
In step S24-2, 0.1 is added to R, and the process returns to update the abstract activation condition.
[0077]
FIG. 25 is a flowchart detailing the individual example abstraction determination in step S14-3.
In step S 25-1, the number of individual examples having the same semantic classification in the dependency-side clause KBINF is counted in the counter table K in the example table YRTBL. set.
[0078]
In step S25-2, the number of individual examples having the same receiving clause UBINF of the registered learning individual examples in the example table YRTBL is counted and set in the counter memory S. It is assumed that the counter memory S is secured in the RAM in FIG.
In step S25-3, K / S, that is, the ratio of the number of individual examples having the same semantic classification in the dependency-side clause KBINF in the total number of individual examples having the same receiving-side clause UBINF is obtained, and the abstraction activation individual example Compare the ratio constant R,
If K / S ≧ R, it is determined in step S25-4 that the individual example abstraction can be activated, and if not, it is determined in step S25-5 that abstraction is impossible and the process returns.
[0079]
As described above, the abstraction start condition from the individual example to the semantic classification example can be determined not by the absolute number of the individual example but by the ratio of the number of examples that is established when the semantic classification example is realized.
Further, in FIG. 19, as a means for determining the validity of the learning semantic example, the counter example number for the learning semantic example is determined based on whether the absolute number is larger than the number of individual examples that satisfy the learning semantic example. In step S19-3 in FIG. 19, it is possible to determine the ratio of the counterexample number to the individual example number instead of the comparison based on the absolute number and determine whether the ratio is larger than a predetermined validity determination coefficient.
[0080]
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Needless to say, the present invention can also be applied to a case where the present invention is achieved by supplying a program to a system or apparatus.
As described above, according to the present embodiment, after the learned individual examples are abstracted and automatically registered as semantic classification examples, the reliability of the semantic classification examples is based on the number of counterexamples that do not follow the semantic classification examples. The reliability as the sex evaluation value can be updated, and the reliability of the data corresponding to the change of the input can be obtained at any time.
[0081]
Therefore, it is possible to provide a Japanese analytical character processing apparatus with good analysis accuracy and good operability.
Also, when the number of counterexamples is too large, the activation conditions for abstracting from individual examples to semantic classification examples can be automatically updated, thus suppressing the proliferation of unreliable semantic classification examples. Memory usage efficiency can be increased.
[0082]
【The invention's effect】
As described above, according to the present invention, conversion accuracy is high and sentence conversion can be performed at high speed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an overall configuration of a character processing apparatus according to an embodiment.
FIG. 2 is a diagram showing an example of a configuration of an input reading buffer in the character processing device according to the present embodiment.
FIG. 3 is a diagram illustrating an example of a configuration of a phrase candidate table according to the present embodiment.
FIG. 4 is a diagram showing an example of the configuration of a homophone buffer in the character processing device according to the present embodiment.
FIG. 5 is a diagram showing an example of the configuration of a homophone pool in the character processing device according to the present embodiment.
FIG. 6 is a diagram showing an example of the configuration of a word dictionary in the character processing device according to the present embodiment.
FIG. 7A is a diagram showing an example of the configuration of an example dictionary table in the character processing device according to the present embodiment;
FIG. 7B is a diagram showing an example of the configuration of an example dictionary table in the character processing device according to the present embodiment;
FIG. 7C is a diagram showing an example of the configuration of an example dictionary table in the character processing device according to the present embodiment;
FIG. 7D is a diagram showing an example of the configuration of an example dictionary table in the character processing device according to the present embodiment;
FIG. 8 is a flowchart illustrating an example of a processing procedure of the entire operation according to the present exemplary embodiment.
FIG. 9 is a flowchart illustrating an example of a processing procedure of conversion processing according to the present embodiment.
FIG. 10 is a flowchart illustrating an example of a procedure of phrase candidate creation processing according to the present embodiment;
FIG. 11 is a flowchart illustrating an example of a processing procedure of first candidate determination processing according to the present embodiment;
FIG. 12 is a flowchart illustrating an example of a processing procedure of an example dictionary search process according to the present embodiment.
FIG. 13 is a flowchart illustrating an example of a processing procedure of next candidate display processing according to the present embodiment;
FIG. 14 is a flowchart illustrating an example of a processing procedure of selection processing according to the present embodiment;
FIG. 15 is a flowchart illustrating an example of a processing procedure for determining necessity of individual example learning according to the present embodiment;
FIG. 16 is a flowchart illustrating an example of a processing procedure of individual example learning according to the present embodiment;
FIG. 17 is a flowchart illustrating an example of a counter-example determination processing procedure according to the present embodiment;
FIG. 18 is a flowchart illustrating an example of a processing procedure for counterexample registration according to the present embodiment;
FIG. 19 is a flowchart illustrating an example of a processing procedure of learning semantic example validity determination according to the present embodiment;
FIG. 20 is a flowchart illustrating an example of a processing procedure of learning meaning example certainty factor update according to the present embodiment;
FIG. 21 is a flowchart illustrating an example of an abstract activation condition update processing procedure according to the present embodiment;
FIG. 22 is a flowchart illustrating an example of an individual example abstraction determination procedure according to the present embodiment;
FIG. 23 is a flowchart illustrating an example of an individual example abstraction learning processing procedure according to the present embodiment;
FIG. 24 is a flowchart illustrating an example of an abstract activation condition update processing procedure according to another embodiment.
FIG. 25 is a flowchart illustrating an example of an individual example abstraction determination procedure according to another embodiment;

Claims (4)

単語と該単語と親和性のある単語の組み合わせ情報を個別用例として記憶する個別用例辞書と、
単語と、該単語と親和性のある単語の意味概念との組み合わせを意味用例として、該組み合わせに対する確信度とともに記憶する意味用例辞書と、
前記意味用例辞書の意味用例に関して、前記個別用例辞書の個別用例の中で、当該意味用例の単語と意味概念との組み合わせに該当する用例と当該意味用例の単語の同音語と意味概念との組み合わせに該当する反用例とを抽出する用例抽出手段と、
前記抽出された用例と反用例の数の割合において、前記反用例の割合が所定の閾値より大きければ、前記意味用例辞書の前記意味用例に対応する確信度を下げる確信度調整手段と、
前記確信度調整手段による調整の結果、確信度が所定値以下となった意味用例を無効化する用例無効化手段と、
入力された文節列に適用可能な個別用例または意味用例に基づいて、前記文節列を、個別用例が適用可能な場合は該個別用例に該当する単語の組み合わせを用いた変換候補に変換し、意味用例が適用可能な場合は該意味用例の単語と意味概念との組み合わせに該当する単語の組み合わせを用いた変換候補に変換する変換手段とを備えることを特徴とする文字処理装置。
An individual example dictionary for storing combination information of words and words having affinity with the words as individual examples;
A semantic example dictionary that stores a combination of a word and a semantic concept of a word having affinity with the word as a semantic example, together with a certainty factor for the combination;
Regarding the semantic examples of the semantic example dictionary, among the individual examples of the individual example dictionary, the examples corresponding to the combination of the word of the semantic example and the semantic concept, and the combination of the homophone and the semantic concept of the word of the semantic example An example extracting means for extracting a counter example corresponding to
In the ratio of the number of extracted examples and counterexamples, if the ratio of the counterexamples is greater than a predetermined threshold, a certainty factor adjustment unit that reduces the certainty factor corresponding to the semantic examples in the semantic example dictionary;
As a result of the adjustment by the certainty factor adjusting unit, the example invalidating unit for invalidating the semantic example in which the certainty factor is equal to or less than a predetermined value;
Based on the individual example or semantic example applicable to the inputted phrase string, the phrase string is converted into a conversion candidate using a combination of words corresponding to the individual example when the individual example is applicable, and the meaning is converted. When the example is applicable, a character processing device comprising: conversion means for converting into a conversion candidate using a combination of words corresponding to a combination of a word of the semantic example and a semantic concept.
前記変換手段で変換された変換候補から1つの変換候補を選択する選択手段を更に備え、
前記選択された変換候補とは別に意味用例が適用された候補があれば、当該選択された変換候補を反用例として、前記個別用例辞書に追加登録することを特徴とする請求項1に記載の文字処理装置。
A selection means for selecting one conversion candidate from the conversion candidates converted by the conversion means;
The method according to claim 1, wherein if there is a candidate to which a semantic example is applied in addition to the selected conversion candidate, the selected conversion candidate is additionally registered in the individual example dictionary as a reuse example. Character processing unit.
単語と該単語と親和性のある単語の組み合わせ情報を個別用例として記憶する個別用例辞書記憶手段と、
単語と、該単語と親和性のある単語の意味概念との組み合わせを意味用例として、該組み合わせに対する確信度とともに記憶する意味用例辞書記憶手段と、プログラムに基づいて各種処理を実行する処理手段と、前記プログラムが記憶されたプログラム記憶手段とを備え、かつ前記処理手段と前記プログラム記憶手段とが協働することによって実現される用例抽出手段、確信度調整手段、用例無効化手段及び変換手段とを備えた文字処理装置において文字の処理を行う文字処理方法であって、
前記用例抽出手段が、前記意味用例辞書記憶手段に記憶された意味用例に関して、前記個別用例辞書記憶手段に記憶された個別用例の中から、当該意味用例の単語と意味概念との組み合わせに該当する用例と当該意味用例の単語の同音語と意味概念との組み合わせに該当する反用例とを抽出する用例抽出工程と、
前記確信度調整手段が、前記抽出された用例と反用例の数の割合において、前記反用例の割合が所定の閾値より大きければ、前記意味用例辞書記憶手段に前記意味用例に対応して記憶された確信度を下げる確信度調整工程と、
前記用例無効化手段が、前記確信度調整工程における調整の結果、前記意味用例辞書記憶手段において確信度が所定値以下となった意味用例を無効化する用例無効化工程と、
前記変換手段が、入力された文節列に適用可能な個別用例または意味用例を個別用例辞書記憶手段及び前記意味用例辞書記憶手段から検索して、前記文節列を、個別用例が適用可能な場合は該個別用例に該当する単語の組み合わせを用いた変換候補に変換し、意味用例が適用可能な場合は該意味用例の単語と意味概念との組み合わせに該当する単語の組み合わせを用いた変換候補に変換する変換工程とを備えることを特徴とする文字処理方法。
An individual example dictionary storage means for storing, as an individual example, combination information of a word and a word having affinity with the word;
A semantic example dictionary storage means for storing a combination of a word and a semantic concept of a word having affinity with the word, together with a certainty factor for the combination, a processing means for executing various processes based on a program , An example extracting means, a certainty factor adjusting means, an example invalidating means, and a converting means realized by cooperation of the processing means and the program storing means. A character processing method for processing characters in a character processing device provided,
The example extraction unit corresponds to a combination of a word and a semantic concept of the semantic example from the individual examples stored in the individual example dictionary storage unit with respect to the semantic example stored in the semantic example dictionary storage unit. An example extracting step of extracting an example and a counterexample corresponding to a combination of a homophone and a semantic concept of a word of the semantic example;
The certainty factor adjusting means is stored in the semantic example dictionary storage means corresponding to the semantic example if the ratio of the counterexamples is larger than a predetermined threshold in the ratio of the number of extracted examples and counterexamples. A confidence adjustment process to lower the confidence,
An example invalidation step in which the example invalidation unit invalidates a semantic example whose certainty factor is equal to or less than a predetermined value in the semantic example dictionary storage unit as a result of adjustment in the certainty factor adjustment step;
When the conversion means searches the individual example dictionary storage means and the semantic example dictionary storage means applicable to the inputted phrase string from the individual example dictionary storage means and the semantic example dictionary storage means, and the phrase string is applicable to the individual example Convert to a conversion candidate using a combination of words corresponding to the individual example, and if a semantic example is applicable, convert to a conversion candidate using a word combination corresponding to the combination of the word of the semantic example and a semantic concept A character processing method comprising: a conversion step.
前記文字処理装置は、前記処理手段と前記プログラム記憶手段とが協働することによって実現される選択手段と追加登録手段とを更に備え、前記文字処理方法は、
前記選択手段が、前記変換工程で変換された変換候補から1つの変換候補を選択する選択工程と、
前記追加登録手段が、前記選択された変換候補とは別に意味用例が適用された候補があれば、当該選択された変換候補を反用例として、前記個別用例辞書記憶手段に追加登録する追加登録工程と
を更に備えることを特徴とする請求項3に記載の文字処理方法。
The character processing device further includes a selection unit and an additional registration unit realized by cooperation of the processing unit and the program storage unit, and the character processing method includes:
A selection step in which the selection means selects one conversion candidate from the conversion candidates converted in the conversion step ;
The additional registration means, if any candidate that is meant example is applied separately from the selected conversion candidate, the selected conversion candidate as an anti example, additional registration process for additionally registering the individual example dictionary storage means When
The character processing method according to claim 3, further comprising :
JP16977695A 1995-07-05 1995-07-05 Character processing method and apparatus Expired - Fee Related JP3847812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16977695A JP3847812B2 (en) 1995-07-05 1995-07-05 Character processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16977695A JP3847812B2 (en) 1995-07-05 1995-07-05 Character processing method and apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP10005026A Division JPH10187696A (en) 1998-01-13 1998-01-13 Document processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0922410A JPH0922410A (en) 1997-01-21
JP3847812B2 true JP3847812B2 (en) 2006-11-22

Family

ID=15892657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16977695A Expired - Fee Related JP3847812B2 (en) 1995-07-05 1995-07-05 Character processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3847812B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4281801B2 (en) 2007-01-15 2009-06-17 株式会社デンソー Wheel condition notification device

Also Published As

Publication number Publication date
JPH0922410A (en) 1997-01-21

Similar Documents

Publication Publication Date Title
CA1203916A (en) Method and apparatus for automated spelling correction
KR920003498B1 (en) Natural language processing method and device
JP3847812B2 (en) Character processing method and apparatus
JP2951956B2 (en) Character processing apparatus and method
JPH10187696A (en) Document processing method and apparatus
JP3320087B2 (en) Character processing method and apparatus
JP2662392B2 (en) Character processor
JP2756252B2 (en) Character processor
JP2832003B2 (en) Character processor
JP2756251B2 (en) Character processor
JPS59100941A (en) Kana (japanese syllabary)-kanji (chinese character) converter
JPH0567079A (en) Character processor
JPH08202701A (en) Character processing device and its kana-kanji conversion method
JP3278148B2 (en) Character processing apparatus and method
JPH10187705A (en) Document processing method and apparatus
JPH05233604A (en) Word registration method
JPH07200568A (en) Character processor
JPH0442350A (en) character processing device
JP2574741B2 (en) Language processing method
JPH03111965A (en) Kana/kanji converter
JP2003122745A (en) Character processing apparatus and method
JPH0630100B2 (en) Kana-Kanji conversion method
JPH11195019A (en) Document processing method and apparatus
JPH05135010A (en) Character processing method and device therefor
JPH11195020A (en) Document processing method and apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050404

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060110

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060329

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060522

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060721

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060811

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060824

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090901

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100901

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130901

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees