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
JPH0439707B2 - - Google Patents
[go: Go Back, main page]

JPH0439707B2 - - Google Patents

Info

Publication number
JPH0439707B2
JPH0439707B2 JP61005306A JP530686A JPH0439707B2 JP H0439707 B2 JPH0439707 B2 JP H0439707B2 JP 61005306 A JP61005306 A JP 61005306A JP 530686 A JP530686 A JP 530686A JP H0439707 B2 JPH0439707 B2 JP H0439707B2
Authority
JP
Japan
Prior art keywords
state
analysis
clause
processing
buffer
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 - Lifetime
Application number
JP61005306A
Other languages
Japanese (ja)
Other versions
JPS62163171A (en
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 filed Critical
Priority to JP61005306A priority Critical patent/JPS62163171A/en
Publication of JPS62163171A publication Critical patent/JPS62163171A/en
Publication of JPH0439707B2 publication Critical patent/JPH0439707B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔概要〕 自然言語処理システムのデバツグ制御方式。自
然言語を理解するための解析過程のステートを保
持しておき、そのステートを指定して処理を再実
行し、又保持するステートの履歴情報を出力する
ことにより、システムのデバツグを援助する。
[Detailed Description of the Invention] [Summary] A debugging control method for a natural language processing system. The state of the analysis process for understanding natural language is retained, the state is designated and the process is re-executed, and the history information of the retained state is outputted to assist system debugging.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機システムにおける、自然言語
処理システムのデバツグ制御方式に関する。
The present invention relates to a debug control method for a natural language processing system in a computer system.

日本語等のいわゆる自然言語からなる文の意味
を解析して、その文による指定に従つて、例えば
データベース検索を実行するシステムが実用化さ
れようとしている。
A system that analyzes the meaning of a sentence in a so-called natural language such as Japanese and executes, for example, a database search according to the specifications of the sentence, is about to be put into practical use.

かかるシステムの開発、あるいは利用者におけ
る機能の追加/変更等の過程おいて、システムの
いわゆるデバツグを援助する強力なツールが必要
である。
In the process of developing such a system or adding/changing functions by a user, a powerful tool is needed to assist in so-called debugging of the system.

〔従来の技術〕[Conventional technology]

第2図は自然言語処理システムの一構成例を示
すブロツク図である。
FIG. 2 is a block diagram showing an example of the configuration of a natural language processing system.

このシステムは、端末装置1から入力される、
例えば日本語の自然言語文による要求を解釈し
て、データベース2についての指定の検索を実行
し、結果のデータを端末装置1へ回答する。
This system receives input from the terminal device 1.
For example, it interprets a request in a Japanese natural language sentence, executes a specified search on the database 2, and sends the resulting data to the terminal device 1.

そのために、インタラクタ3は、端末装置1と
システムの所要の処理部との間のデータ授受を制
御し、先ず端末装置からの入力文を意味解析部4
に渡す。
To this end, the interactor 3 controls data exchange between the terminal device 1 and the required processing units of the system, and first inputs an input sentence from the terminal device to the semantic analysis unit 4.
give it to

意味解析部4は、入力文を単語辞書5等を参照
して文節に分割し、各文節について順次処理し
て、文の意味を決定する。
The meaning analysis unit 4 divides the input sentence into clauses by referring to the word dictionary 5 or the like, processes each clause sequentially, and determines the meaning of the sentence.

文節分割の仕方には、一般に複数の候補が生じ
得、それを一候補づつ試行して、文の意味に到達
することに失敗すれば他の候補を試行し、成功す
ればそれを端末装置1の利用者に示して確認し、
そこで否認されれば、更に他の候補を試行すると
いうようにして処理をする。
In general, when dividing bunsetsu, multiple candidates may be generated, and if the candidate fails to arrive at the meaning of the sentence, another candidate is tried, and if successful, it is sent to the terminal device 1. Show it to the user and confirm it.
If the request is rejected, other candidates are tried.

意味解析部4で、有効な結果が得られると、文
脈処理部6において、その文で以前の入力文で示
された事項を参照しているか識別し、該当する部
分があれば、その部分を以前の解析結果によつて
置き換える。
When the semantic analysis unit 4 obtains a valid result, the context processing unit 6 identifies whether the sentence refers to the item indicated in the previous input sentence, and if there is a corresponding part, it changes that part. Replaced by previous analysis results.

言替え生成部7は、文脈処理部6の出力に基づ
いて、それから通常の表現におけるあいまいさを
除くように、厳密な表現に言替えた文を生成し
て、コマンド生成部8に渡す。
Based on the output of the context processing section 6, the paraphrase generation section 7 generates a sentence that is paraphrased into a strict expression so as to remove ambiguity in the normal expression, and passes it to the command generation section 8.

コマンド生成部8は、言替え生成部7の日本語
文出力から、通常の形式のデータベースアクセス
コマンドを生成して、データベース管理システム
9に渡すので、以後公知のデータベースアクセス
が実行され、検索コマンドであれば、結果のデー
タがデータベース管理システム9からインタラク
タ3を経て、端末装置1へ出力される。
The command generation unit 8 generates a database access command in a normal format from the Japanese sentence output of the paraphrase generation unit 7 and passes it to the database management system 9, so that a known database access is executed from then on, and even if it is a search command. For example, the resulting data is output from the database management system 9 to the terminal device 1 via the interactor 3.

第3図は、意味解析部4の処理の流れ図であ
る。処理が開始されると、処理のステツプ10に
おいて、先ずステートバツフア25を見て、処理
すべきステートがあるか識別する。
FIG. 3 is a flowchart of the processing of the semantic analysis unit 4. When the process is started, in step 10 of the process, the state buffer 25 is first looked at to identify if there is a state to be processed.

ステートとは、解析処理のための各段階の状態
及び制御等を示す情報であつて、以下の説明で明
らかになるように、入力文を構成する各文節につ
いての、その文節と、当該文節の入力文中の位置
(後に第4図について詳述するL1,R1,R2
等)と、文節の所定の品詞分類(後述の「「の」
名詞節」等)とを各該文節ごとに示す情報、及び
現処理対象の該文節を示す情報(後述のC)、そ
の他からなる。
A state is information indicating the status and control of each stage for analysis processing, and as will become clear from the following explanation, the state is information that indicates the state and control of each stage of the analysis process. Positions in the input sentence (L1, R1, R2, which will be explained in detail later in Figure 4)
etc.) and the predetermined part-of-speech classification of the clause (“no” described later).
It consists of information indicating for each clause (such as "noun clause"), information indicating the clause currently being processed (C), and others.

最初はステートが無いので、ステツプ11におい
て、端末装置1からの要求入力文が入力済みか判
定し、未入力であればステツプ12で入力を待ち、
入力文の文節分割を行つてステツプ13に進む。
Since there is no state at first, it is determined in step 11 whether the request input statement from the terminal device 1 has been input, and if it has not been input, it waits for input in step 12.
The input sentence is divided into clauses and the process proceeds to step 13.

こゝで一般に複数の分割候補が生成される。 At this point, multiple division candidates are generally generated.

ステツプ13では、入力文の分割候補があるか識
別するが、もし無い場合は入力文のすべての分割
候補の処理を終わつても解析を完了していない場
合であつて、その場合はエラーとして処理を終わ
る。
In step 13, it is determined whether there are any splitting candidates for the input sentence. If there are no splitting candidates, this means that the analysis has not been completed even after processing all the splitting candidates for the input sentence, in which case it is treated as an error. end.

分割候補が有れば、ステツプ14で分割候補の1
つを選択し、該分割候補の解析を行うためにステ
ツプ15へ進む。
If there are division candidates, select one of the division candidates in step 14.
One is selected, and the process proceeds to step 15 to analyze the division candidate.

ステツプ15で、ステートバツフア25から次に
実行するステートを取り出す。但し最初のステー
トの情報は分割候補に付いているものとする。
In step 15, the next state to be executed is taken out from the state buffer 25. However, it is assumed that the information on the first state is attached to the division candidate.

次のステツプ16は解析ルールの実行ステツプで
あり、ステツプ15で決定したステートで、文節の
種類によつて定まる解析ルールが指定されている
ので、その指定に従つて、後に例示するような解
析ルールのプログラムを実行する。
The next step, step 16, is the step of executing the analysis rules.In the state determined in step 15, an analysis rule determined by the type of clause is specified, so according to the specification, the analysis rule as exemplified later is executed. Run the program.

各解析ルールは、一般に論理和的に並置された
複数のルールからなり、各ルールについて、ステ
ツプ17の意味構文チエツク条件判定を行い、その
条件を満足した場合に、ステツプ18でそのルール
の本体を実行することによつて、新たなステート
を生成するという処理を、すべてのルールについ
て実行する。
Each analysis rule generally consists of a plurality of rules arranged in a disjunctive manner. For each rule, the semantic syntax check condition is determined in step 17. If the condition is satisfied, the main body of the rule is determined in step 18. The process of generating a new state by executing the rule is executed for all rules.

従つて、一般に複数のステートがステツプ16で
生成され、生成されたステートはステートバツフ
ア25に保持される。
Therefore, generally a plurality of states are generated in step 16, and the generated states are held in the state buffer 25.

ステツプ19で全ルールの処理完了と識別すると
ステツプ20において現処理のステートをステート
バツフア25から消去し、解析を更に進めるため
にステツプ10へ戻る。
When it is determined in step 19 that processing of all rules has been completed, the current processing state is deleted from the state buffer 25 in step 20, and the process returns to step 10 to further proceed with the analysis.

先のステツプ16内のステツプ17では、処理中の
分割候補の全解析を終了したことも識別され、そ
の場合には、当然新たなステートの生成は無く、
ステツプ21において、解析結果を端末装置1へ出
力して確認を求め、その応答をステツプ22で識別
して、承認されれば解析を終了する。
In step 17 within step 16, it is also identified that all analysis of the division candidate being processed has been completed, and in that case, naturally, no new state is generated.
In step 21, the analysis result is output to the terminal device 1 for confirmation, and the response is identified in step 22. If approved, the analysis is terminated.

解析結果が否認されれば、残りの分割候補の解
析を開始するためにステツプ10へ戻る。
If the analysis result is rejected, the process returns to step 10 to start analyzing the remaining division candidates.

第4図は解析処理の内容を一例によつて説明す
る図である。
FIG. 4 is a diagram illustrating the contents of the analysis process by way of example.

例えば“商品の価格が200円……”という入力
文について、文節分割の1候補として、図のよう
に“商品の”という「の」名詞節(助詞“の”の
ついた名詞からなる文節。以下同様)、“価格が”
という「が」名詞節、“200円”の付属語無し名詞
節、……のように分割されたとする。
For example, for the input sentence ``The price of the product is 200 yen...'', one candidate for clause segmentation is the noun clause ``no'' (of the product) (a clause consisting of a noun with the particle ``no''), as shown in the figure. (Same below), “price is”
Suppose that the noun clause ``ga'' is divided into the noun clause ``200 yen,'' and the noun clause without an adjunct ``200 yen.''

最初のステート30は、図示のように現処理文
節として先頭の“商品の”節をポイントし、前処
理文節は無い。なお、図の表現は、ステート30
によつて、現処理文節の解析ルールに、「の」名
詞節解析ルールが指定され、そのデータとして、
“商品”及び“の”という単語が指定されている
ことを表し、各文節に付いている。Cは現処理文
節、R1,R2等は、Cの右の第1、第2等の文
節、L1等はCの左の文節を意味する。
The first state 30, as shown, points to the first "goods" clause as the current processing clause, and there is no pre-processing clause. Note that the representation in the diagram is state 30
, the noun clause analysis rule "of" is specified as the analysis rule for the currently processed clause, and as the data,
It indicates that the words "product" and "no" are specified, and are attached to each phrase. C means the currently processed clause, R1, R2, etc. mean the first and second clauses on the right of C, and L1 etc. mean the clauses on the left of C.

第5図は、解析ルールの一例を示し、この例は
「の」名詞節解析ルールとし、各ルールはそれぞ
れifで始まる条件文と、その条件が満足された場
合に実行すべき手続きをしめすthenで始まるプロ
グラムからなるものとして表現してある。
Figure 5 shows an example of a parsing rule. This example is a noun clause parsing rule of "no", and each rule has a conditional statement starting with if, and a procedure to be executed when the condition is satisfied. It is expressed as consisting of programs starting with .

この解析ルールの、ルールはR1が名詞節で
あり、且つCとR1の名詞に意味関係があるとい
う条件の場合に実行すべきプログラムを示し、そ
の場合には新ステートを生成してステートバツフ
ア25に設定する他、新たにCとR1を連結して
名詞節として解析すように準備する。
This analysis rule indicates a program to be executed under the conditions that R1 is a noun clause and there is a semantic relationship between the nouns in C and R1. In that case, a new state is generated and a state buffer is created. In addition to setting C and R1 to 25, prepare to newly connect C and R1 and analyze them as a noun clause.

なお、意味関係とは、“商品”と“価格”のよ
うに単語の意味上からつながりの可能性が予想さ
れるような関係を意味し、例えば別に設けられる
公知の「世界モデル」の方式の制御情報を利用し
て識別するように構成される。
Note that a semantic relationship refers to a relationship such as "product" and "price" in which a possibility of connection is expected based on the meaning of the words. The control information is configured to be used for identification.

又、ルールは単にR1が名詞節であるという
条件が満足されれば実行され、次の文節を解析す
る新ステートが生成される。
Also, the rule is executed simply if the condition that R1 is a noun clause is satisfied, and a new state is generated to parse the next clause.

少なくともこの2ルールは何れも条件が満足さ
れるので、ここで第4図にステート30からの破
線の矢印で示すステート31及び32の2ステー
トが生成されることになる。
Since the conditions of at least these two rules are satisfied, two states, states 31 and 32, shown by dashed arrows from state 30 in FIG. 4 are generated.

この例は、“商品の”が直ぐ次の“価格”を修
飾している場合と、それより右の単語を修飾して
いる場合とに対応し、ここまでの解析では何れと
も決定し難いので、2ステートを並置しておい
て、例えばその一方の枝について解析を深め、そ
の結果満足な解析が得られないと決定した時は、
この分枝点に戻つて、残りのステートによる解析
を進めるものである。
This example corresponds to cases in which “product” modifies the immediately following “price” and cases in which it modifies the word to the right, and it is difficult to determine either of these using the analysis so far. , for example, if you have two states juxtaposed, deepen the analysis on one branch, and decide that a satisfactory analysis cannot be obtained as a result,
We return to this branch point and proceed with the analysis using the remaining states.

即ち、第3図の処理の流れのステツプ16におけ
る、以上のような処理によつて2ステートが生成
されて、ステートバツフア25に保持されると、
ステツプ20で現処理ステートであるステート30
を消去してステツプ10に戻り、ステツプ15におい
て、例えばステート31をステートバツフア25
から取り出して、前記と同様の解析処理を開始す
る。
That is, when two states are generated by the above processing in step 16 of the processing flow in FIG. 3 and held in the state buffer 25,
State 30, which is the current processing state in step 20
, and return to step 10. In step 15, for example, state 31 is transferred to state buffer 25.
, and start the same analysis process as above.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

以上のようにして解析が実行されるが、システ
ムの制御を改良し、又はシステムの利用者が解析
ルールを適用分野に応じて追加/変更する場合等
における、プログラムのデバツグにおいて、プロ
グラムエラー等による不都合な処理の存在は、例
えば解析結果を見て検出される。
Analysis is executed as described above, but when debugging a program when improving system control or when a system user adds/changes analysis rules depending on the application field, it is necessary to The presence of inconvenient processing is detected, for example, by looking at the analysis results.

しかしその時には、処理過程の履歴がすべて消
去されているので、原因の探索、及び修正試行等
を効率よく進められないという問題があつた。
However, at that time, all the history of the processing process was erased, so there was a problem that it was not possible to efficiently search for the cause and try to correct it.

そのために、例えばプログラム中の関数単位
で、その入出力の記録を保存するようにし、該記
録を解析してデバツグすることも可能であるが、
前記のように処理過程が陽に表示されず、ルール
をたどることによつて処理が進められ、実行の度
に処理過程が動的に変化するようなプログラムで
は、上記原因の探索及び修正試行を効率よく行え
ないという問題があつた。
For this purpose, for example, it is possible to save a record of input and output for each function in the program, and analyze and debug the record.
As mentioned above, in a program where the processing process is not explicitly displayed, the processing progresses by following rules, and the processing process changes dynamically each time it is executed, it is necessary to search for the cause and try to correct it. There was a problem that it could not be done efficiently.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の処理の流れ図である。 FIG. 1 is a flowchart of the process of the present invention.

図において、50はデバツグシステム、51は
ステート履歴バツフアである。
In the figure, 50 is a debug system, and 51 is a state history buffer.

〔作用〕[Effect]

デバツグシステム50は、前記1文節の解析処
理が終わつた時、処理のステツプ41で再実行モー
ドが指定されているか識別し、再実行モードが指
定されていると、ステツプ42において、現処理ス
テートをステートバツフア25から消去し、ステ
ート履歴バツフア51に移して保持する。
When the debugging system 50 finishes the analysis processing of the one clause, it identifies whether the re-execution mode is specified in step 41 of the processing, and if the re-execution mode is specified, the current processing state is determined in step 42. is deleted from the state buffer 25 and transferred to the state history buffer 51 and held there.

ステツプ43で、ステツパモードの指定があるか
識別し、ステツパモード指定の場合には、ステツ
プ44で新ステートの情報を端末装置1に表示し、
ステツプ45で進行指示を待ち、指示があれば次の
解析処理へ進む。
In step 43, it is determined whether a stepper mode is specified, and if stepper mode is specified, information on the new state is displayed on the terminal device 1 in step 44,
At step 45, the process waits for a proceeding instruction, and if there is an instruction, proceeds to the next analysis process.

又、解析完了またはエラーで終了するとき、ス
テツプ46で再実行モード指定を識別し、再実行モ
ードであればステツプ47で指示を待ち、指示によ
り、そのまゝ終了するか又はステツプ48に進んで
再実行を制御する。
When the analysis is completed or ends due to an error, the re-execution mode designation is identified in step 46, and if it is in re-execution mode, an instruction is waited for in step 47, and depending on the instruction, the process either ends as is or proceeds to step 48. Control replays.

ステツプ48は、指示によつて指定されるステー
トをステート履歴バツフア51からコピーして、
仮のステートを生成して、ステートバツフア25
に置き、ステツプ10に戻るので、指定したステー
トから再実行が開始される。
Step 48 copies the state specified by the instruction from the state history buffer 51, and
Generate a temporary state and create a state buffer 25
, and returns to step 10, so re-execution starts from the specified state.

ステート履歴バツフア51に保存されたステー
トは、ステツプ45及びステツプ47の中において、
適当な指令によつて端末装置1に表示出力するよ
うにすることは容易にできる。又、要すれば、同
様に解析ルールその他を修正する機能も使用でき
るようにすることができる。
The state stored in the state history buffer 51 is stored in step 45 and step 47.
It is easy to display and output the information to the terminal device 1 using an appropriate command. Furthermore, if necessary, a function for modifying analysis rules and the like can be made available as well.

以上により、前記問題点は解決され、デバツグ
の効率改善が可能になる。
As described above, the above-mentioned problems are solved and it becomes possible to improve the efficiency of debugging.

〔実施例〕〔Example〕

第1図において、処理のステツプ10〜22は前記
従来の場合と同様の処理を実行する。
In FIG. 1, processing steps 10 to 22 perform the same processing as in the conventional case.

デバツグの実施に際しては、例えばデバツグ対
象の自然言語処理システムの起動における制御パ
ラメータとして、再実行モード及びステツパモー
ドの指定をするものとし、その指定は再実行モー
ドフラグ、及びステツパモードフラグのオン/オ
フで表示されている。
When debugging, for example, the re-execution mode and stepper mode are specified as control parameters when starting the natural language processing system to be debugged. is displayed.

デバツグシステム50は、処理のステツプ16に
よる1文節の解析処理が終わつた後、処理のステ
ツプ41で再実行モードフラグをテストし、オフで
あれば従来のステツプ20の処理に分岐する。
After the debug system 50 completes the analysis of one clause in step 16, it tests the re-execution mode flag in step 41, and if it is off, branches to the conventional process in step 20.

従つて、従来のように現処理のステートが消去
されて、次のステートによる処理を開始するよう
にステツプ10に戻る。
Therefore, as in the prior art, the current processing state is erased and the process returns to step 10 to start processing in the next state.

再実行モードフラグがオンであれば、ステツプ
42において、現処理ステートをステートバツフア
25から消去するが、ステート履歴バツフア51
に移して保存する。こゝで保存されるステート情
報には、親ステート、子ステート、実行したルー
ル名等のデバツグに有効な説明情報を付加する。
If the rerun mode flag is on, the step
42, the current processing state is deleted from the state buffer 25, but the current processing state is deleted from the state history buffer 51.
and save it. Explanatory information useful for debugging, such as the parent state, child state, and executed rule name, is added to the state information saved here.

ステツプ43で、ステツパモードフラグをテスト
し、オフであればステツプ10へ戻る。
Step 43 tests the stepper mode flag and returns to step 10 if it is off.

ステツパモードフラグがオンの場合は、ステツ
プ44で、次に処理する新ステートの情報を端末装
置1に表示し、ステツプ45で進行指示を待つ。
If the stepper mode flag is on, in step 44 information on the next new state to be processed is displayed on the terminal device 1, and in step 45 the process waits for a proceeding instruction.

端末装置1の利用者は、この表示を検討して、
例えば予定の処理が正しく行われていれば、その
まゝ処理を進めるように、進行指示を入力し、そ
の場合にシステムは、ステツプ10に戻つて新ステ
ートの処理を開始する。
The user of the terminal device 1 considers this display and
For example, if the scheduled processing is being performed correctly, a progress instruction is input to proceed with the processing as it is, in which case the system returns to step 10 and starts processing in a new state.

又、例えば予定の処理が行われていないと判断
した場合には、例えば適当な指令によつて、ステ
ート履歴バツフア51の内容等の出力を指定し
て、エラーの原因を調べ、又要すれば解析ルール
の修正等を行つた後、処理の進行を指示するか、
又は終了を指示する。
For example, if it is determined that the scheduled processing is not being performed, for example, specify the output of the contents of the state history buffer 51 using an appropriate command, investigate the cause of the error, and if necessary, After modifying the analysis rules, instruct the process to proceed, or
Or instruct termination.

ステート履歴バツフア51等のメモリ内容を読
み出し、及びメモリの内容を修正する手段は、一
般の多くのデバツグシステム等で使用されている
公知の手段を利用することができ、そのような機
能は、デバツグ中に随時端末装置1から指定して
利用できるようにするのが望ましい。
As means for reading out and modifying the contents of the memory such as the state history buffer 51, known means used in many general debugging systems can be used. It is desirable to be able to specify and use it from the terminal device 1 at any time during debugging.

デバツグシステム50は、又ステツプ13又は22
からエラー又は解析完了で終了するとき、ステツ
プ46で再実行モードフラグを識別し、オフであれ
ばそのまゝ終了するが、オンであればステツプ47
で指示待ちとなる。
The debug system 50 also performs step 13 or 22.
When terminating due to an error or analysis completion, the re-execution mode flag is identified in step 46, and if it is off, the process ends as is, but if it is on, it is executed in step 47.
Waiting for instructions.

端末装置1の利用者は、こゝで要すればステツ
プ45の場合と同様に、ステート履歴バツフア51
を見、また必要な修正等が可能であり、その結
果、終了を指示するか、又はステート履歴バツフ
ア51に保存するステートの1つを指定して、そ
のステートの処理から再実行することができる。
If necessary, the user of the terminal device 1 saves the state history buffer 51 as in step 45.
As a result, it is possible to instruct termination or specify one of the states to be saved in the state history buffer 51 and re-execute from the processing of that state. .

再実行が指定された場合にはステツプ48に進
み、指定されたステートをステート履歴バツフア
51からコピーして、仮のステートを生成して、
ステートバツフア25に置き、ステツプ10に戻る
ので、指定したステートから再実行が開始され
る。
If re-execution is specified, proceed to step 48, copy the specified state from the state history buffer 51, generate a temporary state,
The program is placed in the state buffer 25 and the process returns to step 10, so that re-execution starts from the specified state.

即ち、ステートバツフア25には、解析未処理
のステートが保持されていて、そこから一つのス
テートを適当な優先順に従つて選択し、現ステー
トとして取り出して処理する。
That is, the state buffer 25 holds states that have not been analyzed, and one state is selected from therein in accordance with an appropriate priority order and taken out and processed as the current state.

その結果取り出された現ステートはステートバ
ツフア25からは消去され(ステツプ20)、解析
処理で生成された1個以上の新ステートがあれ
ば、それらはステートバツフア25に追加され
る。
The current state retrieved as a result is deleted from the state buffer 25 (step 20), and if there is one or more new states generated by the analysis process, they are added to the state buffer 25.

前記のステツプ48による再実行開始のときは、
ステートバツフア25に仮ステートをのみを置い
てステツプ10に戻るので、ステツプ15の次処理ス
テート決定で強制的に仮ステートが選択され、処
理される。
When starting re-execution in step 48 above,
Since only the temporary state is placed in the state buffer 25 and the process returns to step 10, the temporary state is forcibly selected and processed in step 15 when the next processing state is determined.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれ
ば、処理の進行過程が明示されていない方式の自
然言語処理を行う計算機システムにおいて、該処
理システムのデバツグのための、処理履歴情報の
取得、適当な処理過程からの再実行、ステツプ実
行等が可能となるので、デバツグの効率を改善す
るという著しい工業的効果がある。
As is clear from the above description, according to the present invention, in a computer system that performs natural language processing in a manner in which the progress of processing is not specified, acquisition of processing history information for debugging the processing system; Since re-execution, step execution, etc. can be performed from an appropriate process, there is a significant industrial effect of improving debugging efficiency.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の処理の流れ図、第2図は自然
言語処理システムの一構成例ブロツク図、第3図
は従来の処理の流れ図、第4図は解析処理の説明
図、第5図は解析ルールの説明図である。 図において、1は端末装置、2はデータベー
ス、3はインタラクタ、4は意味解析部、5は単
語辞書、6は文脈処理部、7は言替え生成部、8
はコマンド生成部、9はデータベース管理システ
ム、10〜22、41〜48は処理のステツプ、
25はステートバツフア、30,31,32はス
テート、50はデバツグシステム、51はステー
ト履歴バツフア、を示す。
Fig. 1 is a flowchart of the processing of the present invention, Fig. 2 is a block diagram of an example configuration of a natural language processing system, Fig. 3 is a flowchart of conventional processing, Fig. 4 is an explanatory diagram of analysis processing, and Fig. 5 is a block diagram of a configuration example of a natural language processing system. It is an explanatory diagram of an analysis rule. In the figure, 1 is a terminal device, 2 is a database, 3 is an interactor, 4 is a semantic analysis unit, 5 is a word dictionary, 6 is a context processing unit, 7 is a paraphrase generation unit, 8
9 is a command generation unit, 9 is a database management system, 10 to 22, 41 to 48 are processing steps,
25 is a state buffer; 30, 31, and 32 are states; 50 is a debug system; and 51 is a state history buffer.

Claims (1)

【特許請求の範囲】 1 自然言語からなる入力文を文節に分割し、該
文節と、当該文節の該入力文中の位置と、該文節
の所定の品詞分類とを各該文節ごとに示す情報
と、現処理対象の該文節の指示とを有するステー
トを設け、 ステートバツフア25に保持する該ステートを
順次取り出して現ステートとし、 解析処理により、該現ステートの該現処理対象
文節の該品詞分類に従う所定の解析によつて、新
たな該ステートを生成して該ステートバツフアに
格納し、 該解析処理を繰り返して該入力文の解析を行う
自然言語処理システムにおいて、 デバツグ手段50を設け、該デバツグ手段はス
テート履歴バツフア51を有し、 所定の再実行指示が設定されている場合に、該
デバツグ手段は、該解析処理ごとに該現ステート
を該ステート履歴バツフア51に順次格納して保
存し42、 該入力文解析を終わる場合に所定の指定入力が
あれば、該ステート履歴バツフアに保持する指定
の該ステートに基づいて仮ステートを生成し、該
仮ステートを該ステートバツフアに格納すること
により、該仮ステートによる該解析処理の再実行
を起動する48ように構成されていることを特徴
とする自然言語処理デバツグ制御方式。
[Scope of Claims] 1. An input sentence made of natural language is divided into clauses, and information indicating the clause, the position of the clause in the input sentence, and a predetermined part of speech classification of the clause is provided for each clause. , an indication of the clause to be currently processed is provided, the states held in the state buffer 25 are sequentially retrieved as the current state, and the part-of-speech classification of the clause to be currently processed in the current state is determined by analysis processing. In a natural language processing system, a new state is generated by a predetermined analysis according to the above, and stored in the state buffer, and the input sentence is analyzed by repeating the analysis process. The debugging means has a state history buffer 51, and when a predetermined re-execution instruction is set, the debugging means sequentially stores and saves the current state in the state history buffer 51 for each analysis process. 42. If there is a predetermined specified input when finishing the input sentence analysis, generate a temporary state based on the specified state to be retained in the state history buffer, and store the temporary state in the state buffer. 48. A natural language processing debugging control method, characterized in that the natural language processing debugging control method is configured to start re-execution of the analysis processing using the temporary state.
JP61005306A 1986-01-14 1986-01-14 Control system for natural language processing debugging Granted JPS62163171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61005306A JPS62163171A (en) 1986-01-14 1986-01-14 Control system for natural language processing debugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61005306A JPS62163171A (en) 1986-01-14 1986-01-14 Control system for natural language processing debugging

Publications (2)

Publication Number Publication Date
JPS62163171A JPS62163171A (en) 1987-07-18
JPH0439707B2 true JPH0439707B2 (en) 1992-06-30

Family

ID=11607588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61005306A Granted JPS62163171A (en) 1986-01-14 1986-01-14 Control system for natural language processing debugging

Country Status (1)

Country Link
JP (1) JPS62163171A (en)

Also Published As

Publication number Publication date
JPS62163171A (en) 1987-07-18

Similar Documents

Publication Publication Date Title
JPH0343661B2 (en)
US6374261B1 (en) Expert system knowledge-deficiency reduction through automated database updates from semi-structured natural language documents
Slocum A practical comparison of parsing strategies
JPH01161563A (en) Method of suiting command to computer system and operating system
JP3062266B2 (en) Support device
Carver et al. Deterministic execution testing of concurrent Ada programs
JPH0439707B2 (en)
Helzerman et al. Log Time Parsing on the MasPar MP-1.
JP2533532B2 (en) Online test method
JPH01121934A (en) Japanese message processing method
JPH02183370A (en) Sentence analyzing system
Metcalf et al. Whither fortran?
JPS63113631A (en) Retrieving system for software component
JPH0468446A (en) Debugging supporting device
Razi An empirical study of robust natural language processing (ill-formed input)
JPH02176861A (en) Interactive sentence analyzing device
JPH0785057A (en) Method and apparatus for parsing
JPH04147341A (en) Automatic module execution controller
Doucette A comparative study of parsing techniques
JPS62271177A (en) Natural language processor
JPS63317826A (en) Symbolic debugging system
JP2001067245A (en) Simulation method and simulation device
JPH08202538A (en) Program creation device
JPS62204340A (en) Data processor
JPH03250331A (en) Fast symbol string match processing system