JPH04372016A - Japanese language understanding device - Google Patents

Japanese language understanding device

Info

Publication number
JPH04372016A
JPH04372016A JP3148460A JP14846091A JPH04372016A JP H04372016 A JPH04372016 A JP H04372016A JP 3148460 A JP3148460 A JP 3148460A JP 14846091 A JP14846091 A JP 14846091A JP H04372016 A JPH04372016 A JP H04372016A
Authority
JP
Japan
Prior art keywords
knowledge
japanese
unit
section
language
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.)
Pending
Application number
JP3148460A
Other languages
Japanese (ja)
Inventor
Yukio Haruki
春木 由紀緒
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3148460A priority Critical patent/JPH04372016A/en
Publication of JPH04372016A publication Critical patent/JPH04372016A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To provide a Japanese language understanding device for development, expansion, and preservation of a system in such a manner that a manual is prepared by natural word is Japanese language even if a user do not have any knowledge of a program. CONSTITUTION:A knowledge compiler part 2 analysis the inputted Japanese knowledge to be converted into a C language program. A knowledge acquisition part 1 expands a knowledge compiler part 2 by inputting the natural word in Japanese language and acquires the knowledge of the Japanese language to be the input of the knowledge compiler part 2. A screen input part 6 inputs atom data which is one of the Japanese language knowledge for the application execution. Thus, the operation execution program is prepared by inputting natural word in Japanese language.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、日本語の自然言語によ
りシステムの開発・拡張・保守を行うための日本語理解
装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Japanese language understanding device for developing, expanding, and maintaining a system using Japanese natural language.

【0002】0002

【従来の技術】ソフトウエアの世界は、ソフトウエア危
機と呼ばれるように、ソフトウエアの需要に供給が追い
ついていないのが現状である。この原因として、アセン
ブラ言語のみならず、C、COBOL、FORTRAN
といった一般高級プログラム言語についても、一般ユー
ザにとっては難しい言語であり、業務と並行して開発す
るのは困難で、現状では、現場に密着した業務について
もソフトウエア技術者に依頼するという形で開発が進め
られているということが挙げられる。
2. Description of the Related Art The current situation in the world of software is that the supply of software is not keeping up with the demand for software, which is called a software crisis. The cause of this is not only assembler language, but also C, COBOL, FORTRAN.
General high-level programming languages such as these are also difficult for general users, and it is difficult to develop them in parallel with work.Currently, even work that is closely related to the field is developed by outsourcing to software engineers. It is said that progress is being made.

【0003】システム開発を必要とする従来の業務開発
は、例えば図11のように、まず業務分析を行い(ステ
ップS11)、業務計画を立てる(ステップS12)。 そしてそれに基づいて企画書作成を行い(ステップS1
3)、業務開発内容を決定し、その内容をシステム依頼
し(ステップS14)、運用して(ステップS15)、
バグ修正・機能変更・機能拡張等があれば変更要求を出
し(ステップS16)、再びシステム依頼(ステップS
14)することになる。
In conventional business development that requires system development, for example, as shown in FIG. 11, business is first analyzed (step S11) and a business plan is created (step S12). Then, create a proposal based on it (step S1
3) Determine the content of business development, request the content to the system (step S14), operate it (step S15),
If there is a bug fix, function change, function expansion, etc., issue a change request (step S16), and issue a system request again (step S16).
14) I will do it.

【0004】システムを依頼した先では、従来のシステ
ム開発の手順に添って図12のように開発を進める。す
なわち、まずシステム分析を行い(ステップS21)、
システム計画を立てる(ステップS22)。次にシステ
ム設計でシステムの構成を決定し(ステップS23)、
プログラム設計でプログラムを決定し(ステップS24
)、プログラム作成でプログラムを実際にコーディング
し(ステップS25)、テスト(ステップS26)した
後、システムを運用・保守し(ステップS27)、バグ
修正・機能変更・機能拡張等があれば、内容に応じて各
ステップに移り、プログラムを修正することになる。
[0004] When a system is requested, development proceeds as shown in FIG. 12 in accordance with the conventional system development procedure. That is, first, a system analysis is performed (step S21),
A system plan is made (step S22). Next, the system configuration is determined by system design (step S23),
A program is determined by program design (step S24)
), after actually coding the program (step S25) and testing (step S26), operate and maintain the system (step S27), and if there are any bug fixes, function changes, or enhancements, update the content. You will move on to each step and modify the program accordingly.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記の
ように業務の専門家とシステム開発者、保守者が別であ
る開発体制では、分析、計画、設計、ドキュメンテーシ
ョン、保守の手間が重複する。また業務の専門家の立場
としては、システムがどのように開発されているのかが
判らず、システム開発者の立場としては、運用業務の専
門家のノウハウを把握するのが難しいため、後発的なバ
グが発生しやすくなったり、バグ修正・機能変更・機能
拡張に対する対応がうまくいかなかったりする。また業
務の専門家のノウハウが、体系化されたドキュメントと
して残っていかない。
[Problem to be Solved by the Invention] However, in a development system in which business experts, system developers, and maintainers are separated as described above, the effort of analysis, planning, design, documentation, and maintenance overlaps. In addition, from the perspective of business experts, it is difficult to understand how systems are developed, and from the perspective of system developers, it is difficult to grasp the know-how of operational experts, so it is difficult to understand how systems are developed. Bugs are more likely to occur, and bug fixes, feature changes, and feature enhancements may not be handled well. Furthermore, the know-how of business experts is not preserved in a systemized document.

【0006】システム開発にソフトウエア工学の技法を
持ち込んだcaseツール環境技術(「情報処理」特集
:case環境、VOL.31、NO.8、1990)
が研究開発され、その商品化(「日経コンピュータ」1
989.2.13 、pp66−84 )が進められた
り、日本語でプログラミングする日本語4GL(「日経
コンピュータ」1988.9.12 、pp89−96
 )が商品化されてきているが、まだまだソフトウエア
技術者向けの支援ツールとして使われ始めた段階で、一
般ユーザによる利用は困難である。
Case tool environment technology that brings software engineering techniques to system development (Special feature on "Information Processing": Case Environment, VOL. 31, No. 8, 1990)
was researched and developed, and its commercialization (``Nikkei Computer'' 1)
989.2.13, pp66-84) has been advanced, and Japanese 4GL for programming in Japanese (``Nikkei Computer'' 1988.9.12, pp89-96) has been advanced.
) has been commercialized, but it is still in the stage of being used as a support tool for software engineers, and it is difficult for general users to use it.

【0007】一般ユーザによる利用という観点からは、
ハイパーテキストシステムであるHyperCard 
(Apple 社商品、1987)におけるスクリプト
言語であるHyperTalk 言語があるが、用途と
してプレゼンテーションに限られている。一般ユーザへ
のアプローチとしては、自然言語を解析する技術(「情
報処理」大特集:自然言語理解、VOL30 、NO.
10 、1989)や、その日本語処理(長尾:「日本
語情報処理」、電子情報学会出版、1984)が研究開
発され、最近では文脈理解、談話理解モデルの研究も盛
んに行なわれている。しかし、言語の持つ複雑さから、
理解を深めようとすればするほど、アルゴリズムが複雑
になり、メモリ容量、速度共に、パソコンレベルでは実
用に耐えない。実働しているものとして、UNIX上で
動作する、正規表現およびその拡張から有限オートマト
ンの状態遷移表とそのドライバシステムを生成する字句
解析生成器のlexや、上向き構文解析生成器のyac
cなどがあるが、コンピュータ言語用という意味合いが
強く、業務を対象とした、日本語コンパイラーを生成す
るのには向いていない。
[0007] From the perspective of usage by general users,
HyperCard, a hypertext system
(Apple Inc., 1987) is a scripting language called HyperTalk, but its use is limited to presentations. As an approach for general users, technology for analyzing natural language (Special feature on "Information processing": Natural language understanding, VOL30, No.
10, 1989) and its Japanese language processing (Nagao: ``Japanese Information Processing'', Institute of Electronics and Information Engineers Publishing, 1984) have been researched and developed, and recently there has been active research into context understanding and discourse understanding models. However, due to the complexity of language,
The more we try to understand it, the more complex the algorithm becomes, and the memory capacity and speed are such that it cannot be put to practical use at the personal computer level. In actual use, there are lex, a lexical analysis generator that generates a finite automaton state transition table and its driver system from regular expressions and their extensions, and yac, an upward syntactic analysis generator, that run on UNIX.
c, etc., but it is strongly intended for computer languages, and is not suitable for generating Japanese compilers for business purposes.

【0008】また、上記の文脈理解、談話理解は研究が
始まったばかりで、実用化には時間がかかる。このよう
に現在のところ、業務の専門家とシステム開発者、保守
者とが別であるという開発体制は解消されず、従って上
記問題を有している。本発明はかかる事情に鑑みて成さ
れたものであり、一般ユーザが、プログラムの知識がな
くても、日本語の自然言語によりマニュアルを作成する
要領で、システムの開発・拡張・保守を行える日本語理
解装置を提供することを目的とする。
[0008] Furthermore, research on the above-mentioned context understanding and discourse understanding has just begun, and it will take time to put them into practical use. As described above, at present, the development system in which business experts, system developers, and maintainers are separate has not been resolved, resulting in the above-mentioned problems. The present invention has been made in view of the above circumstances, and is a Japanese system that allows general users to develop, expand, and maintain systems in the same manner as creating manuals in Japanese natural language without having any knowledge of programming. The purpose is to provide a word understanding device.

【0009】[0009]

【課題を解決するための手段】本発明は、入力された日
本語知識を解析してC言語プログラムに変換する知識コ
ンパイラー部と、日本語の自然言語が入力されることに
より前記知識コンパイラー部を拡張しかつ知識コンパイ
ラー部の入力となる日本語知識の知識獲得を行なう知識
獲得部と、アプリケーション実行のために前記日本語知
識の1つであるアトムデータを入力する画面入力部とを
設け、日本語の自然言語が入力されることにより業務実
行プログラムを作成する構成としたことを特徴としてい
る。
[Means for Solving the Problems] The present invention includes a knowledge compiler unit that analyzes input Japanese knowledge and converts it into a C language program, and a knowledge compiler unit that analyzes input Japanese language knowledge and converts it into a C language program, and A knowledge acquisition section that acquires Japanese knowledge that will be expanded and input to the knowledge compiler section, and a screen input section that inputs atom data, which is one of the Japanese knowledge for application execution, are provided. The system is characterized by a structure in which a business execution program is created by inputting natural language.

【0010】0010

【作用】知識コンパイラー部は、入力された日本語知識
を解析してC言語プログラムに変換する。知識獲得部は
、日本語の自然言語が入力されることにより知識コンパ
イラー部を拡張しかつ知識コンパイラー部の入力となる
日本語知識の知識獲得を行なう。画面入力部は、アプリ
ケーション実行のために日本語知識の1つであるアトム
データを入力する。したがって、日本語の自然言語を入
力することにより業務実行プログラムが作成される。
[Operation] The knowledge compiler section analyzes the input Japanese knowledge and converts it into a C language program. The knowledge acquisition section expands the knowledge compiler section by inputting Japanese natural language, and acquires Japanese knowledge that is input to the knowledge compiler section. The screen input section inputs atom data, which is one of Japanese knowledge, for application execution. Therefore, a business execution program is created by inputting Japanese natural language.

【0011】[0011]

【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。図1は本発明の一実施例における日本語理解
装置のブロック図で、この日本語理解装置は、知識獲得
部1と、知識コンパイラー部2と、ベイシックライブラ
リー部3と、C言語コンパイラー&リンカ部4と、知識
処理実行部5と、画面入力部6とにより構成されている
。知識獲得部1と画面入力部6とは、例えばキーボード
装置やディスプレイ装置等により構成されている。知識
獲得部1には、業務の専門家により日本語の自然言語を
用いて日本語知識が入力される。知識コンパイラー部2
は、知識獲得部1からの日本語知識に対応するCプログ
ラムソースを生成する。C言語コンパイラー&リンカ部
4は、知識コンパイラー部2からのCプログラムソース
をコンパイルし、ベイシックライブラリー部3からのベ
イシックライブラリーとリンクさせる。画面入力部6に
は、利用者により、実行する条件に合わせて、日本語知
識の1つのアトムデータの変更内容である条件ファイル
が入力される。知識処理実行部5は、C言語コンパイラ
ー&リンカ部4および画面入力部6からのデータに基づ
いて業務システムを実行する。
Embodiments Hereinafter, embodiments of the present invention will be explained in detail with reference to the drawings. FIG. 1 is a block diagram of a Japanese language understanding device according to an embodiment of the present invention, which includes a knowledge acquisition section 1, a knowledge compiler section 2, a basic library section 3, and a C language compiler and linker. It is composed of a section 4, a knowledge processing execution section 5, and a screen input section 6. The knowledge acquisition unit 1 and the screen input unit 6 are configured by, for example, a keyboard device, a display device, and the like. Japanese knowledge is input to the knowledge acquisition unit 1 by a business expert using Japanese natural language. Knowledge compiler part 2
generates a C program source corresponding to the Japanese knowledge from the knowledge acquisition unit 1. The C language compiler and linker section 4 compiles the C program source from the knowledge compiler section 2 and links it with the basic library from the basic library section 3. The user inputs into the screen input section 6 a condition file, which is the content of changes to one atom data of Japanese knowledge, in accordance with the execution conditions. The knowledge processing execution unit 5 executes the business system based on data from the C language compiler and linker unit 4 and the screen input unit 6.

【0012】図2は知識獲得部1のブロック図で、知識
獲得部1は、意味テーブル登録部11と、述語テーブル
登録部12と、フレームテーブル登録部13と、オブジ
ェクトデータ入力部14と、アトムテーブル登録部15
と、フレームデータ入力部16とにより構成されている
。意味テーブル登録部11は、同一意味の複数の表現や
、ユーザ独自の表現を、意味テーブル部17の意味テー
ブルに登録するためのものである。述語テーブル登録部
12は、新しい機能や既存システムの、機能名と関数名
と引数とを列記した述語テーブルを、述語テーブル部1
8の述語テーブルに登録するためのものである。フレー
ムテーブル登録部13は、ユーザデータベースの枠組み
を定義するフレームテーブルをフレームテーブル部19
に登録するためのものである。オブジェクトデータ入力
部14は、実際の日本語知識による実行内容で、日本語
知識の本体であるオブジェクトデータを入力するための
ものである。アトムテーブル登録部15は、値、型、状
態を持つ日本語変数であるアトムテーブルをアトムテー
ブル部21に登録するためのものである。フレームデー
タ入力部16は、フレームテーブル部19のフレームテ
ーブルのデータであるフレームデータを入力するための
ものである。意味テーブル登録部11と述語テーブル登
録部12とフレームテーブル登録部13とは、知識コン
パイラー部2を拡張するためのものであり、オブジェク
トデータ入力部14とアトムテーブル登録部15とフレ
ームデータ入力部16とは、知識コンパイラー部2の入
力となる知識獲得を行うためのものである。
FIG. 2 is a block diagram of the knowledge acquisition unit 1. The knowledge acquisition unit 1 includes a meaning table registration unit 11, a predicate table registration unit 12, a frame table registration unit 13, an object data input unit 14, and an atom data input unit 14. Table registration section 15
and a frame data input section 16. The meaning table registration section 11 is for registering a plurality of expressions having the same meaning or expressions unique to the user in the meaning table of the meaning table section 17. The predicate table registration unit 12 stores a predicate table listing function names, function names, and arguments of new functions and existing systems in the predicate table unit 1.
This is for registering in the predicate table of No. 8. The frame table registration unit 13 stores a frame table defining the framework of the user database in the frame table unit 19.
This is for registering. The object data input section 14 is for inputting object data, which is the main body of Japanese knowledge, and is the execution content based on actual Japanese knowledge. The atom table registration section 15 is for registering an atom table, which is a Japanese variable having a value, type, and state, in the atom table section 21. The frame data input section 16 is for inputting frame data, which is data of the frame table of the frame table section 19. The meaning table registration section 11, predicate table registration section 12, and frame table registration section 13 are for extending the knowledge compiler section 2, and the object data input section 14, atom table registration section 15, and frame data input section 16 is for acquiring knowledge that is input to the knowledge compiler section 2.

【0013】図3は知識コンパイラー部2の言語解析部
分のブロック図で、この知識コンパイラー部2の言語解
析部分は、字句解析部31と、構文解析部32と、意味
解析部33と、意味テーブル部17と、述語テーブル部
18と、C標準関数部34と、アトムテーブル部21と
、フレームテーブル部19とにより構成されている。 字句解析部31は、意味テーブル部17の意味テーブル
を参照して、知識獲得部1のオブジェクトデータ入力部
14に入力されたオブジェクトデータの字句解析を行う
。構文解析部32は、意味テーブル部17の意味テーブ
ルを参照して、字句解析部31によって解析された結果
に基づいて構文解析を行う。意味解析部33は、述語テ
ーブル部18の述語テーブルとC標準関数部34のC標
準関数とアトムテーブル部21のアトムテーブルとフレ
ームテーブル部19のフレームテーブルとを参照して、
構文解析部32によって抽出された単文を意味解析する
FIG. 3 is a block diagram of the language analysis section of the knowledge compiler section 2. The language analysis section of the knowledge compiler section 2 includes a lexical analysis section 31, a syntactic analysis section 32, a semantic analysis section 33, and a semantic table. 17, a predicate table section 18, a C standard function section 34, an atom table section 21, and a frame table section 19. The lexical analysis unit 31 performs lexical analysis of the object data input to the object data input unit 14 of the knowledge acquisition unit 1 by referring to the meaning table in the meaning table unit 17 . The syntactic analysis unit 32 refers to the meaning table in the meaning table unit 17 and performs syntactic analysis based on the results analyzed by the lexical analysis unit 31. The semantic analysis unit 33 refers to the predicate table in the predicate table unit 18, the C standard function in the C standard function unit 34, the atom table in the atom table unit 21, and the frame table in the frame table unit 19, and
The simple sentence extracted by the syntactic analysis unit 32 is semantically analyzed.

【0014】図4はベイシックライブラリー部3のブロ
ック図で、このベイシックライブラリー部3は、C言語
関連ライブラリー部41と、知識関連ライブラリー部4
2と、ユーザーライブラリー部43とにより構成されて
いる。C言語関連ライブラリー部41のC言語関連ライ
ブラリーは、プログラム処理、メッセージ出力、エラー
処理を行なう。知識関連ライブラリー部42の知識関連
ライブラリーは、アトムやフレームの知識処理を行なう
。ユーザーライブラリー部43のユーザーライブラリー
は、システム提供の汎用関数やユーザ独自の関数を登録
する。
FIG. 4 is a block diagram of the basic library section 3, which includes a C language related library section 41 and a knowledge related library section 4.
2 and a user library section 43. The C language related library of the C language related library section 41 performs program processing, message output, and error processing. The knowledge-related library of the knowledge-related library section 42 performs knowledge processing of atoms and frames. The user library of the user library section 43 registers system-provided general-purpose functions and user-specific functions.

【0015】図5は知識獲得部1で得られる日本語知識
の説明図である図6は知識獲得部1のオブジェクトデー
タ入力部14に入力されるオブジェクトデータの説明図
で、オブジェクトデータは、句切り文字で記述され、一
文は”。”で区切られる。個々の機能モジュールを、オ
ブジェクトと呼ぶ。オブジェクトは、階層的に管理され
、下位の機能を呼び出したり、あるまとまった機能を登
録して各部で呼び出すことが可能である。
FIG. 5 is an explanatory diagram of the Japanese knowledge obtained by the knowledge acquisition unit 1. FIG. 6 is an explanatory diagram of the object data input to the object data input unit 14 of the knowledge acquisition unit 1. It is written using delimiters, and each sentence is separated by ".". Each functional module is called an object. Objects are managed hierarchically, and it is possible to call lower-level functions, or register a group of functions and call them in each part.

【0016】図7は意味テーブル部17の意味テーブル
の説明図である。図8はフレームテーブル部19のフレ
ームテーブルの説明図である。次に動作を説明する。業
務の専門化が、知識獲得部1の意味テーブル登録部11
により意味テーブル部17に意味テーブルを登録し、述
語テーブル登録部12により述語テーブル部18に述語
テーブルを登録し、フレームテーブル登録部13により
フレームテーブル部19にフレームテーブルを登録する
。これにより知識コンパイラー部2が拡張される。さら
に業務の専門化が、知識獲得部1のアトムテーブル登録
部15によりアトムテーブル部21にアトムテーブルを
登録し、フレームデータ入力部16にフレームデータを
入力すると、フレームデータはフレームテーブル部19
のフレームテーブルに格納される。そして業務の専門化
が、知識獲得部1のオブジェクトデータ入力部14にオ
ブジェクトデータを入力すると、オブジェクトデータは
知識コンパイラー部2に供給される。
FIG. 7 is an explanatory diagram of the meaning table of the meaning table section 17. FIG. 8 is an explanatory diagram of the frame table of the frame table section 19. Next, the operation will be explained. The specialization of work is the meaning table registration unit 11 of the knowledge acquisition unit 1.
The meaning table is registered in the meaning table section 17, the predicate table registration section 12 registers the predicate table in the predicate table section 18, and the frame table registration section 13 registers the frame table in the frame table section 19. This expands the knowledge compiler section 2. Further, when the business is specialized, the atom table registration unit 15 of the knowledge acquisition unit 1 registers an atom table in the atom table unit 21 and inputs frame data to the frame data input unit 16.
stored in the frame table. When the business specialization inputs object data to the object data input section 14 of the knowledge acquisition section 1, the object data is supplied to the knowledge compiler section 2.

【0017】知識コンパイラー部2は、知識獲得部1か
らオブジェクトデータが供給されると、前走査処理とし
て、まずオブジェクトを切り出し、各呼び出し関係を抽
出する。次に各オブジェクトにおいて、一文を切り出す
。これにより知識コンパイラー部2の字句解析部31は
、意味テーブル部17の意味テーブルを参照して、オブ
ジェクトの一文を構成する各句切り文字列の意味付けを
行なう。
When the knowledge compiler unit 2 is supplied with object data from the knowledge acquisition unit 1, as a pre-scanning process, it first cuts out the object and extracts each calling relationship. Next, cut out a sentence for each object. As a result, the lexical analysis section 31 of the knowledge compiler section 2 refers to the meaning table of the meaning table section 17 and assigns meaning to each punctuation character string constituting one sentence of the object.

【0018】構文解析部32は、字句解析部31からの
情報の関係を、予め事前走査でマッピングし、条件文や
、複文構造や、括弧文や、繰り返し文を抽出し、その状
態で随時、意味解析部33に情報を渡すことによって、
解析木生成の発散を止める。従って意味解析部33は、
文の構造に関わらず、部分的な単文を受け取る。例えば
、「もし  制限量  が  限界  以上  ならば
  限界値  は  3*制限量  かつ  制限オー
バー  で  処理中断」という文の場合、「制限量 
 は  限界  以上」という条件形と、「限界値  
は  3*A」、「制限量オーバー  で  処理中断
」という標準形とで渡される。
The syntactic analysis unit 32 maps the relationships of the information from the lexical analysis unit 31 in advance through pre-scanning, extracts conditional sentences, complex sentence structures, parenthetical sentences, and repeated sentences, and in this state, performs the following operations at any time. By passing information to the semantic analysis unit 33,
Stop the divergence of parse tree generation. Therefore, the semantic analysis unit 33
Receive partial simple sentences regardless of sentence structure. For example, in the case of the sentence ``If the limit amount is greater than the limit, the limit value is 3 * limit amount, and the process is interrupted when the limit is exceeded.''
is greater than or equal to the limit" and the conditional form "is the limit
is passed in the standard form ``3*A'' and ``processing is interrupted when the limit is exceeded''.

【0019】アトムテーブル部21のアトムテーブルや
フレームテーブル部19のフレームテーブルのような知
識の値の操作については、名詞句として取り出し、随時
書き出す。例えば「制限量」は、{GetRAtom(
111/*制限量*/) }などの形に書き出される。 またオブジェクトの呼び出し関係、入出力、四則演算、
値操作などのC標準関数部34のC標準関数についても
、随時書き出される。
Operations on knowledge values such as the atom table in the atom table section 21 and the frame table in the frame table section 19 are extracted as noun phrases and written out as needed. For example, "limit amount" can be set using {GetRAtom(
111/*limited amount*/) }. Also, object calling relationships, input/output, four arithmetic operations,
C standard functions of the C standard function section 34, such as value manipulation, are also written out at any time.

【0020】述語テーブル部18の述語テーブルに登録
されている機能については、<機能名→機能名,因子1
,因子2,─>という形の述語論理式に展開され、関数
展開される。例えば「制限オーバー  で  処理中断
」は、<処理中断→処理中断,制限オーバー>となり、
関数に展開される。以上の操作で抽出不可能な機能につ
いては、エラーとして処理される。
For the functions registered in the predicate table of the predicate table section 18, <function name→function name, factor 1
, factor 2, --> is expanded into a predicate logical expression of the form, and is expanded into a function. For example, "processing interrupted due to limit exceeded" becomes <processing interrupted → processing interrupted, limit exceeded>,
Expands into a function. Functions that cannot be extracted by the above operations are treated as errors.

【0021】かくして知識コンパイラー部2により、知
識獲得部1からの日本語知識が、アトムやフレームやオ
ブジェクトといった知識を基盤データベースとした、C
プログラムソースに書き出される。C言語コンパイラー
&リンカ部4は、知識コンパイラー部2からのCプログ
ラムソースをコンパイルし、ベイシックライブラリー部
3のベイシックライブラリーとリンクさせることによっ
て、業務を実行するためのプログラムを作成し、知識処
理実行部5に格納する。
[0021] Thus, the knowledge compiler unit 2 converts the Japanese knowledge from the knowledge acquisition unit 1 into a C
Exported to program source. The C language compiler and linker section 4 compiles the C program source from the knowledge compiler section 2 and links it with the basic library of the basic library section 3 to create a program for executing a business and performs knowledge processing. It is stored in the execution unit 5.

【0022】以後、利用者が、アトムデータの変更内容
である条件ファイルとして、画面入力部6から知識処理
実行部5に各条件因子を入力することによって、知識処
理実行部5により業務が実行される。このように、知識
獲得部1に日本語の自然言語を用いて日本語知識を入力
するだけで業務システム実行のためのプログラムが作成
されるので、業務開発に際して、図9のように、まず業
務分析を行い(ステップS1)、業務計画を立て(ステ
ップS2)、それに基づいて企画書作成を行い(ステッ
プS3)、業務開発内容を決定し、その内容に基づいて
マニュアル作成すなわち知識獲得部1への日本語知識の
入力を行い(ステップS4)、運用・保守を行い(ステ
ップS5)、バグ修正・機能変更・機能拡張等があれば
再びマニュアル作成(ステップS4)することになる。 すなわち、業務開発を行うことがそのままシステム開発
を行っている結果となり、ステップS1の業務分析がシ
ステム分析に相当し、ステップS2の業務計画がシステ
ム計画に相当し、ステップS3の企画書作成がシステム
設計に相当し、ステップS4のマニュアル作成がプログ
ラム設計に相当する。
Thereafter, the user inputs each condition factor from the screen input section 6 to the knowledge processing execution section 5 as a condition file that is the change content of the atom data, so that the knowledge processing execution section 5 executes the task. Ru. In this way, a program for executing a business system can be created simply by inputting Japanese knowledge into the knowledge acquisition unit 1 using Japanese natural language. Analyze (step S1), create a business plan (step S2), create a proposal based on it (step S3), determine business development content, and create a manual based on the content, that is, send to knowledge acquisition section 1. Japanese language knowledge is input (step S4), operation and maintenance are performed (step S5), and if bugs are fixed, functions are changed, functions are expanded, etc., a manual is created again (step S4). In other words, business development is the result of system development, the business analysis in step S1 corresponds to system analysis, the business plan in step S2 corresponds to system planning, and the proposal creation in step S3 corresponds to system analysis. This corresponds to design, and the manual creation in step S4 corresponds to program design.

【0023】この結果、業務の専門家である一般ユーザ
が、プログラムの知識がなくても、日本語の自然言語に
よりマニュアルを作成する要領で、システムの開発・拡
張・保守を行なえる。また本実施例のように、知識獲得
部1へのオブジェクトデータの入力に際して、日本語に
おいて解析困難とされるべた書きを許さないことによっ
て知識コンパイラー部2の字句解析部31による字句解
析効率を向上させ、またこの字句解析部31により、接
続詞、助詞、演算子等を登録した意味テーブル部17の
意味テーブルを参照して、あらかじめ条件・括弧・ルー
プ関係等を抽出し、構文解析部32により、字句解析部
31からの情報を元に入れ子構造のまま随時切り出し処
理を行うことで構文解析効率を向上させるように構成す
れば、パソコンレベルでの利用が容易に可能になる。
[0023] As a result, a general user who is a business expert can develop, expand, and maintain the system in the same way as creating a manual in Japanese natural language, even if he or she has no knowledge of programming. Furthermore, as in this embodiment, when inputting object data to the knowledge acquisition unit 1, the efficiency of lexical analysis by the lexical analysis unit 31 of the knowledge compiler unit 2 is improved by not allowing solid writing, which is considered difficult to analyze in Japanese. The lexical analysis unit 31 also refers to the meaning table in the meaning table unit 17 in which conjunctions, particles, operators, etc. are registered, and extracts conditions, parentheses, loop relationships, etc. in advance, and the syntactic analysis unit 32 extracts, If the structure is configured to improve syntactic analysis efficiency by performing segmentation processing at any time while maintaining the nested structure based on information from the lexical analysis unit 31, use at the personal computer level becomes easily possible.

【0024】また本実施例のように、意味テーブル部1
7の意味テーブルに、同一意味の複数の表現や、ユーザ
独自の表現を登録可能にし、また述語テーブル部18の
述語テーブルに、新しい機能や既存システムを登録可能
に構成すれば、言語解析の枠組みを拡張し、汎用的に、
ユーザ独自のアプリケーションに対応できる。また本実
施例のように、フレームテーブル部19のフレームテー
ブルに、ユーザ独自のデータフォーマットを登録可能に
し、また知識獲得部1のフレームデータ入力部16から
フレームテーブルのフォーマットに添ったデータ内容を
フレームテーブル部19のフレームテーブルに登録可能
にし、また知識獲得部1のオブジェクトデータ入力部1
4から入力された日本語を階層的に管理し、日本語知識
内で、下位の機能を呼び出したり、あるまとまった機能
を登録して各部で呼び出すことを可能にし、またアトム
テーブル登録部15のアトムテーブルにユーザ独自の変
数を自由に定義可能にすれば、一般ユーザが、プログラ
ムの知識がなくても、日本語の自然言語でマニュアルを
作成する要領で、システムの開発・拡張・保守を行なう
ことをより一層容易にできる。
Furthermore, as in this embodiment, the meaning table section 1
If multiple expressions with the same meaning and user-specific expressions can be registered in the meaning table 7, and new functions and existing systems can be registered in the predicate table of the predicate table section 18, the language analysis framework can be improved. Extend and generalize
Can support user-specific applications. Further, as in this embodiment, a user's own data format can be registered in the frame table of the frame table section 19, and data contents conforming to the format of the frame table can be input from the frame data input section 16 of the knowledge acquisition section 1 into the frame table. The object data input unit 1 of the knowledge acquisition unit 1 can be registered in the frame table of the table unit 19.
It hierarchically manages the Japanese input from 4, and allows lower-level functions to be called within the Japanese language knowledge, or certain grouped functions can be registered and called in each part, and the atom table registration part 15 By allowing users to freely define their own variables in the atom table, general users can develop, expand, and maintain the system in the same way they would create a manual in Japanese natural language, even without programming knowledge. This makes it even easier.

【0025】図10は上記日本語理解装置による日本語
知識の変遷状態の具体的説明図で、(A)は知識獲得部
1の出力、(B)は知識コンパイラー部2の出力、(C
)はC言語コンパイラー&リンカ部4の出力である。上
記日本語理解装置を用いることにより、例えば従来手動
で行なっていたCADの設計および図面書きを、知識獲
得部1にノウハウを入力することによって、以降、条件
パラメーターを変更するだけで、自動的にCAD設計が
行われ、自動的にCAD図面を出力するための既存CA
Dシステムのコマンド群が出力されるので、CADを自
動化し、設計問題のノウハウを日本語マニュアルとして
蓄積することが可能である。
FIG. 10 is a concrete explanatory diagram of the transition state of Japanese knowledge by the Japanese language understanding device, in which (A) is the output of the knowledge acquisition unit 1, (B) is the output of the knowledge compiler unit 2, and (C) is the output of the knowledge acquisition unit 1.
) is the output of the C language compiler and linker section 4. By using the above-mentioned Japanese language understanding device, for example, CAD design and drawings that were previously done manually can now be automatically done by simply changing the condition parameters by inputting know-how into the knowledge acquisition unit 1. Existing CA for CAD design and automatically outputting CAD drawings
Since the command group of the D system is output, it is possible to automate CAD and accumulate know-how on design problems as a Japanese manual.

【0026】[0026]

【発明の効果】以上説明したように本発明によれば、入
力された日本語知識を解析してC言語プログラムに変換
する知識コンパイラー部と、日本語の自然言語が入力さ
れることにより知識コンパイラー部を拡張しかつ知識コ
ンパイラー部の入力となる日本語知識の知識獲得を行な
う知識獲得部と、アプリケーション実行のために日本語
知識の1つであるアトムデータを入力する画面入力部と
を設け、日本語の自然言語が入力されることにより業務
実行プログラムを作成する構成としたので、業務の専門
家である一般ユーザが、プログラムの知識がなくても、
日本語の自然言語によりマニュアルを作成する要領で、
システムの開発・拡張・保守を行なえるという優れた効
果を奏する。
[Effects of the Invention] As explained above, according to the present invention, there is a knowledge compiler unit that analyzes input Japanese knowledge and converts it into a C language program, and a knowledge compiler unit that analyzes input Japanese language knowledge and converts it into a C language program. A knowledge acquisition section is provided to expand the section and acquire Japanese knowledge that is input to the knowledge compiler section, and a screen input section is provided to input atom data, which is one of the Japanese knowledge, for application execution. The configuration allows business execution programs to be created by inputting Japanese natural language, so general users who are business experts can use the system without any knowledge of programming.
In the same way as creating a manual in Japanese natural language,
It has the excellent effect of enabling system development, expansion, and maintenance.

【0027】また、知識獲得部へのオブジェクトデータ
の入力に際して、日本語において解析困難とされるべた
書きを許さないことによって知識獲得部の字句解析部に
よる字句解析効率を向上させ、字句解析部により、接続
詞、助詞、演算子等を登録した意味テーブルを参照して
、あらかじめ条件・括弧・ループ関係等を抽出し、構文
解析部により、字句解析部からの情報を元に入れ子構造
のまま随時切り出し処理を行うことで構文解析効率を向
上させるように構成すれば、パソコンレベルでの利用が
容易に可能になる。
Furthermore, when inputting object data to the knowledge acquisition section, the efficiency of lexical analysis by the lexical analysis section of the knowledge acquisition section is improved by not allowing solid writing, which is difficult to analyze in Japanese. , refer to a meaning table in which conjunctions, particles, operators, etc. are registered, extract conditions, parentheses, loop relationships, etc. in advance, and use the syntax analysis section to extract the nested structure at any time based on information from the lexical analysis section. If it is configured to improve parsing efficiency through processing, it can easily be used at the personal computer level.

【0028】また、意味テーブルに、同一意味の複数の
表現や、ユーザ独自の表現を登録可能にし、述語テーブ
ル部の述語テーブルに、新しい機能や既存システムを登
録可能に構成すれば、言語解析の枠組みを拡張し、汎用
的に、ユーザ独自のアプリケーションに対応できる。ま
た、フレームテーブルに、ユーザ独自のデータフォーマ
ットを登録可能にし、知識獲得部のフレームデータ入力
部からフレームテーブルのフォーマットに添ったデータ
内容をフレームテーブルに登録可能にし、知識獲得部の
オブジェクトデータ入力部から入力された日本語を階層
的に管理し、日本語知識内で、下位の機能を呼び出した
り、あるまとまった機能を登録して各部で呼び出すこと
を可能にし、アトムテーブルにユーザ独自の変数を自由
に定義可能に構成すれば、一般ユーザが、プログラムの
知識がなくても、日本語の自然言語でマニュアルを作成
する要領で、システムの開発・拡張・保守を行なうこと
をより一層容易にできる。
[0028] Furthermore, if multiple expressions with the same meaning or user-specific expressions can be registered in the meaning table, and new functions and existing systems can be registered in the predicate table of the predicate table section, language analysis can be improved. The framework can be expanded to support user-specific applications in a general-purpose manner. In addition, it is possible to register a user's own data format in the frame table, and it is possible to register data contents in accordance with the format of the frame table from the frame data input section of the knowledge acquisition section, and the object data input section of the knowledge acquisition section. Hierarchically manage the Japanese input from , make it possible to call lower-level functions within the Japanese knowledge, register a certain set of functions and call them in each part, and add user-specific variables to the atom table. By configuring the system to be freely definable, it will be easier for general users to develop, expand, and maintain the system, just like creating a manual in Japanese natural language, even without programming knowledge. .

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

【図1】本発明の一実施例における日本語理解装置のブ
ロック図である。
FIG. 1 is a block diagram of a Japanese language understanding device according to an embodiment of the present invention.

【図2】知識獲得部のブロック図である。FIG. 2 is a block diagram of a knowledge acquisition unit.

【図3】知識コンパイラー部の言語解析部分のブロック
図である。
FIG. 3 is a block diagram of the language analysis section of the knowledge compiler section.

【図4】ベイシックライブラリー部のブロック図である
FIG. 4 is a block diagram of a basic library section.

【図5】日本語知識の説明図である。FIG. 5 is an explanatory diagram of Japanese knowledge.

【図6】オブジェクトデータの説明図である。FIG. 6 is an explanatory diagram of object data.

【図7】意味テーブルの説明図である。FIG. 7 is an explanatory diagram of a meaning table.

【図8】フレームテーブルの説明図である。FIG. 8 is an explanatory diagram of a frame table.

【図9】本発明により実現される業務開発の流れ図であ
る。
FIG. 9 is a flowchart of business development realized by the present invention.

【図10】本発明の一実施例における日本語理解装置に
よる日本語知識の変遷状態の具体的説明図である。
FIG. 10 is a concrete explanatory diagram of the transition state of Japanese language knowledge by the Japanese language understanding device in one embodiment of the present invention.

【図11】従来の業務開発の流れ図である。FIG. 11 is a flowchart of conventional business development.

【図12】従来のシステム開発の流れ図である。FIG. 12 is a flowchart of conventional system development.

【符号の説明】[Explanation of symbols]

1    知識獲得部 2    知識コンパイラー部 6    画面入力部 11    意味テーブル登録部 12    述語テーブル登録部 13    フレームテーブル登録部 14    オブジェクトデータ入力部15    ア
トムテーブル登録部 16    フレームデータ入力部 17    意味テーブル部 18    述語テーブル部 19    フレームテーブル部 21    アトムテーブル部 31    字句解析部 32    構文解析部 33    意味解析部 34    C標準関数部
1 Knowledge acquisition unit 2 Knowledge compiler unit 6 Screen input unit 11 Meaning table registration unit 12 Predicate table registration unit 13 Frame table registration unit 14 Object data input unit 15 Atom table registration unit 16 Frame data input unit 17 Meaning table unit 18 Predicate table unit 19 Frame table section 21 Atom table section 31 Lexical analysis section 32 Syntax analysis section 33 Semantic analysis section 34 C standard function section

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】  入力された日本語知識を解析してC言
語プログラムに変換する知識コンパイラー部と、日本語
の自然言語が入力されることにより前記知識コンパイラ
ー部を拡張しかつ知識コンパイラー部の入力となる前記
日本語知識の知識獲得を行なう知識獲得部と、アプリケ
ーション実行のために前記日本語知識の1つであるアト
ムデータを入力する画面入力部とを設け、日本語の自然
言語が入力されることにより業務実行プログラムを作成
する構成としたことを特徴とする日本語理解装置。
Claim 1: A knowledge compiler unit that analyzes input Japanese knowledge and converts it into a C language program; and a knowledge compiler unit that expands the knowledge compiler unit by inputting Japanese natural language and inputs the knowledge compiler unit. A knowledge acquisition unit acquires the Japanese language knowledge, and a screen input unit inputs atom data, which is one of the Japanese language knowledge, to execute the application. A Japanese language understanding device characterized in that it is configured to create a business execution program by
【請求項2】  知識コンパイラー部は、入力された日
本語知識の字句解析を行なう字句解析部と、この字句解
析部によって解析された結果に基づいて構文解析を行な
う構文解析部と、この構文解析部によって抽出された単
文を意味解析する意味解析部とを有し、知識獲得部は、
前記字句解析部を拡張するための意味テーブル登録部と
、前記意味解析部を拡張するための述語テーブル登録部
と、前記日本語知識の枠組みの1つであるフレームテー
ブルを登録するためのフレームテーブル登録部と、前記
日本語知識の1つであるオブジェクトデータを入力する
ためのオブジェクトデータ入力部と、前記日本語知識の
枠組みの1つであるアトムテーブルを登録するためのア
トムテーブル登録部と、前記日本語知識の1つであるフ
レームデータを入力するためのフレームデータ入力部と
を有する構成としたことを特徴とする請求項1に記載の
日本語理解装置。
[Claim 2] The knowledge compiler unit includes a lexical analysis unit that performs lexical analysis of input Japanese knowledge, a syntactic analysis unit that performs syntactic analysis based on the result of the analysis by this lexical analysis unit, and and a semantic analysis unit that semantically analyzes the simple sentences extracted by the knowledge acquisition unit.
a semantic table registration unit for extending the lexical analysis unit; a predicate table registration unit for extending the semantic analysis unit; and a frame table for registering a frame table that is one of the frameworks of Japanese knowledge. a registration unit; an object data input unit for inputting object data that is one of the Japanese knowledge; and an atom table registration unit for registering an atom table that is one of the frameworks of the Japanese knowledge; 2. The Japanese language understanding device according to claim 1, further comprising a frame data input unit for inputting frame data that is one of the Japanese language knowledge.
【請求項3】  知識獲得部へのオブジェクトデータの
入力に際して、日本語において解析困難とされるべた書
きを許さないことによって字句解析部による字句解析効
率を向上させ、また前記字句解析部により、接続詞、助
詞、演算子等を登録した意味テーブルを参照して、あら
かじめ条件・括弧・ループ関係等を抽出し、構文解析部
により、前記字句解析部からの情報を元に入れ子構造の
まま随時切り出し処理を行うことで構文解析効率を向上
させるように構成したことを特徴とする請求項2に記載
の日本語理解装置。
3. When inputting object data to the knowledge acquisition unit, the efficiency of lexical analysis by the lexical analysis unit is improved by not allowing solid writing, which is difficult to analyze in Japanese, and the lexical analysis unit , particles, operators, etc. are registered in the meaning table, conditions, parentheses, loop relationships, etc. are extracted in advance, and the syntactic analysis section extracts the nested structure as needed based on the information from the lexical analysis section. 3. The Japanese language understanding device according to claim 2, wherein the Japanese language understanding device is configured to improve parsing efficiency by performing the following steps.
【請求項4】  意味テーブルに、同一意味の複数の表
現や、ユーザ独自の表現を登録可能にし、また述語テー
ブルに、新しい機能や既存システムを登録可能に構成し
たことを特徴とする請求項2に記載の日本語理解装置。
[Claim 4] Claim 2, characterized in that a plurality of expressions having the same meaning and user-specific expressions can be registered in the meaning table, and new functions and existing systems can be registered in the predicate table. Japanese language understanding device described in .
【請求項5】  フレームテーブルに、ユーザ独自のデ
ータフォーマットを登録可能にし、またフレームデータ
入力部から前記フレームテーブルのフォーマットに添っ
たデータ内容を前記フレームテーブルに登録可能にし、
またオブジェクトデータ入力部から入力された日本語を
階層的に管理し、日本語知識内で、下位の機能を呼び出
したり、あるまとまった機能を登録して各部で呼び出す
ことを可能にし、またアトムテーブルにユーザ独自の変
数を自由に定義可能に構成したことを特徴とする請求項
2に記載の日本語理解装置。
5. A user's own data format can be registered in the frame table, and data contents conforming to the format of the frame table can be registered in the frame table from a frame data input section,
In addition, it manages Japanese input from the object data input section hierarchically, allows you to call lower-level functions within Japanese knowledge, register a certain set of functions and call them in each section, and atom table 3. The Japanese language understanding device according to claim 2, wherein the Japanese language understanding device is configured such that variables unique to the user can be freely defined.
JP3148460A 1991-06-20 1991-06-20 Japanese language understanding device Pending JPH04372016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3148460A JPH04372016A (en) 1991-06-20 1991-06-20 Japanese language understanding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3148460A JPH04372016A (en) 1991-06-20 1991-06-20 Japanese language understanding device

Publications (1)

Publication Number Publication Date
JPH04372016A true JPH04372016A (en) 1992-12-25

Family

ID=15453253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3148460A Pending JPH04372016A (en) 1991-06-20 1991-06-20 Japanese language understanding device

Country Status (1)

Country Link
JP (1) JPH04372016A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3373517B2 (en) * 1992-10-02 2003-02-04 富士通株式会社 Program creation system in personal language

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3373517B2 (en) * 1992-10-02 2003-02-04 富士通株式会社 Program creation system in personal language

Similar Documents

Publication Publication Date Title
Körner et al. Fifty years of Prolog and beyond
Czarnecki et al. Feature-based survey of model transformation approaches
Jézéquel et al. Mashup of metalanguages and its implementation in the kermeta language workbench
Ballance et al. The Pan language-based editing system
JP5147240B2 (en) Method and system for reversible design tree transformation
Marah et al. Model-driven round-trip engineering for TinyOS-based WSN applications
Clarke et al. Modeling spatial and temporal variability with the HATS abstract behavioral modeling language
Anlauff et al. Formal aspects of and development environments for Montages
Kumar Fluent React
Avrunin et al. Comparing finite-state verification techniques for concurrent software
Schupp et al. Semantic and behavioral library transformations
Visser Understanding software through linguistic abstraction
GB2420638A (en) Method of substituting code fragments in Internal Representation
Sun et al. A XML/XSL approach to visualize and animate TCOZ
KR100576941B1 (en) Model transformation support system based on metamodel
Gonçalves et al. ReFlO: An interactive tool for pipe-and-filter domain specification and program generation
JPH04372016A (en) Japanese language understanding device
Song Infrastructure for DEVS modelling and experimentation
Lockett et al. Saxon-JS: XSLT 3.0 in the Browser
US8843906B1 (en) Inferring data types from compiler call site
JPH07160490A (en) Coding assistance device
Winkler et al. Program-Variations-in-the-Small.
Antich Down the Rabbit Hole
Körner et al. 50 Years of Prolog and Beyond
Smyth et al. Code generation for sequential constructiveness