JPH03189725A - Analogous word retrieving system for automatic programming device - Google Patents

Analogous word retrieving system for automatic programming device

Info

Publication number
JPH03189725A
JPH03189725A JP1327398A JP32739889A JPH03189725A JP H03189725 A JPH03189725 A JP H03189725A JP 1327398 A JP1327398 A JP 1327398A JP 32739889 A JP32739889 A JP 32739889A JP H03189725 A JPH03189725 A JP H03189725A
Authority
JP
Japan
Prior art keywords
word
words
character string
input
similar
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
JP1327398A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ヶ原 隆史
Shinya Nakamura
真也 中村
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP1327398A priority Critical patent/JPH03189725A/en
Publication of JPH03189725A publication Critical patent/JPH03189725A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To easily specify the erroneous one of those words forming a statement by displaying all defined words analogous to a wrong input word on a CRT screen as the candidates of words to be inputted. CONSTITUTION:The defined words forming an automatic programming language are previously stored in a CPU 1 of an automatic programming device. Then the words inputted to the automatic programming device are compared with the defined words for detection of the errors of those input words. If a wrong input word is detected, the defined words are retrieved to obtain the words analogous to the input words and to display them on a CRT 7. Thus the defined words analogous to the wrong input word are displayed on the CRT 7 as the candidates of words to be inputted. Thus, the erroneous one of those words forming a statement can be easily specified and furthermore the error of the input word is simply corrected.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、自動プログラミング装置の類似語検索方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a similar word search method for an automatic programming device.

従来の技術 自動プログラミング装置の内部に記憶された既定義語を
参照して入力語の綴りをチエツクし、エラー識別番号や
エラーメツセージをCRT画面上に表示するようにした
自動プログラミング装置は既に公知である。
2. Description of the Related Art An automatic programming device is already known which checks the spelling of an input word by referring to predefined words stored in the automatic programming device and displays an error identification number and error message on a CRT screen. be.

発明が解決しようとした課題 この種の自動プログラミング装置は綴りの誤りをエラー
識別番号やエラーメツセージとしてCRT画面上に表示
するものに過ぎず、入力すべき語の正しい綴りを知るた
めには、エラー識別番号やエラーメツセージが表示され
る度にマニュアル等を参照して正しい語を検索しなけれ
ばならない煩わしさがあり、また、エラー識別番号やエ
ラーメツセージは1つのステートメントに対して表示さ
れるものであるから、ステートメントを構成する語の内
どの語句に誤りがあるのかを識別することも容易ではな
い。
Problems that the invention sought to solve This type of automatic programming device only displays spelling errors as an error identification number or error message on the CRT screen, and in order to know the correct spelling of the word to be input, it is necessary to check the error It is troublesome to have to refer to a manual or the like to search for the correct word each time an identification number or error message is displayed, and the error identification number or error message is displayed for one statement. Therefore, it is not easy to identify which of the words that make up a statement contains an error.

第9図は従来の自動プログラミング装置によって入力語
の誤りが検出された場合のCR7表示画面の一例を示す
図であり、エラー識別番号rME054 Elとエラー
メツセージ「ステートメントノアヤマリ」とによって入
力語の誤りが検出されたことが理解されるが、これらの
エラー識別番号やエラーメツセージは行番号r0020
Jのステートメントに対して表示されたものであるから
、該ステートメントを構成する語MCHN、MILL、
INCの内いずれの語に誤りがあるのかを識別すること
は容易でなく、また、誤った語がオペレータによって識
別された場合であっても、綴りの誤りを訂正する際には
マニュアル等を参照しなければならないといった不都合
がある。
FIG. 9 is a diagram showing an example of the CR7 display screen when an error in an input word is detected by a conventional automatic programming device. It is understood that errors have been detected, but these error identification numbers and error messages are line number r0020.
Since it is displayed for the statement J, the words MCHN, MILL,
It is not easy to identify which word in INC is incorrect, and even if the incorrect word is identified by the operator, refer to the manual etc. when correcting spelling errors. There is an inconvenience in having to do so.

本発明の目的は、これら従来技術の欠点を解消し、綴り
を誤った語を容易に特定でき、しかも、綴りの誤りを簡
単に訂正することのできる自動プログラミング装置の類
似語検索方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a similar word search method for an automatic programming device that can eliminate these drawbacks of the prior art, easily identify misspelled words, and easily correct spelling errors. There is a particular thing.

課題を解決するための手段 本発明の類似語検索方式は、自動プログラミング言語を
構成する既定義語を自動プログラミング装置の内部に予
め記憶しておき、自動プログラミング装置に入力された
語と上記既定義語とを比較、して入力語の誤りを検出す
ると共に、入力語に誤りがあった場合には既定義語を検
索して該入力語と類似する語を求めてCRT画面上に表
示することにより上記目的を達成した。
Means for Solving the Problems The similar word search method of the present invention stores predefined words constituting an automatic programming language inside an automatic programming device in advance, and combines the words input into the automatic programming device with the above defined words. In addition to detecting errors in the input word by comparing the words with the input word, if there is an error in the input word, search the predefined words to find a word similar to the input word and display it on the CRT screen. The above objectives were achieved.

類似語を求めるため、入力語を構成する文字列およびそ
の一部を含む語を既定義語の中から自動的に検索する。
In order to find similar words, the predefined words are automatically searched for character strings constituting the input word and words containing parts of the character strings.

また、入力語を構成する文字列から順次1文字を減じて
文字列を作成し、該文字列を構成する文字の数が所定数
となるまで、1文字を減じる毎に上記文字列と一致する
語を既定義語の中から検索する。
Also, create a character string by sequentially subtracting one character from the character string that makes up the input word, and each time you subtract one character, it matches the above character string until the number of characters that make up the string reaches a predetermined number. Search for a word among defined words.

更に、入力語を構成する文字列から順次1文字を減じて
文字列を作成し、該文字列を構成する文字の数が所定数
となるまで、1文字を減じる毎に上記文字列と一致する
語および上記文字列の一部を他の文字と置換した文字列
と一致する語を既定義語の中から検索する。
Furthermore, a character string is created by sequentially subtracting one character from the character string composing the input word, and each time a character is subtracted, the character string matches the above character string until the number of characters composing the character string reaches a predetermined number. Search the predefined words for a word that matches the word and a character string obtained by replacing part of the above character string with other characters.

より適格に類似語を求めるため、入力語を構成する文字
列およびその一部を含む語を既定義語の中から検索する
と共に、入力語を構成する文字列から順次1文字を減じ
て文字列を作成し、該文字列を構成する文字の数が所定
数となるまで、1文字を減じる毎に上記文字列と一致す
る語および上記文字列の一部を他の文字と置換した文字
列と−致する語を既定成語の中から検索し、検索された
全ての語を類似語としてCRT画面上に表示する。
In order to more accurately find similar words, we search for words that include the character strings that make up the input word and a part of them from among the defined words, and also create a string by subtracting one character from the character string that makes up the input word. until the number of characters composing the character string reaches a predetermined number, each time one character is subtracted, a word that matches the above character string and a character string in which part of the above character string is replaced with other characters are added. - Search for matching words from predefined words, and display all searched words as similar words on the CRT screen.

作用 誤った入力語と類似する既定成語が、入力すべき語の候
補としてCRT画面上に表示されるので、ステートメン
トを構成するいずれの語に誤りがあるのかを容易に特定
することができ、しかも、入力語の誤りを簡単に訂正す
ることが可能となる。
Predefined words that are similar to the incorrectly input word are displayed on the CRT screen as candidates for words to be input, making it easy to identify which word in the statement contains the error. , it becomes possible to easily correct errors in input words.

実施例 以下、図面を参照して本発明の詳細な説明する。Example Hereinafter, the present invention will be described in detail with reference to the drawings.

第7図は本発明の方式を実施する一実施例の自動プログ
ラミング装置の要部を示すブロック図で、1はマイクロ
プロセッサ(以下、CPUという)、2は該自動プログ
ラミング装置を制御する制御プログラムが格納されたR
OM、3はフロッピーディスクFLからロードされたシ
ステムプログラムや各種データを記憶するRAM、4は
自動プログラミング言語によって構成されるパートプロ
グラムから変換されたNCデータを記憶するNCデータ
記憶メモリ、5はキーボード、6はディスクコントロー
ラ、7はCRT (各種のグラフィックデイスプレィを
含む)であり、これらの各要素1〜7はバス8で接続さ
れている。
FIG. 7 is a block diagram showing the main parts of an automatic programming device according to an embodiment of the present invention, in which 1 is a microprocessor (hereinafter referred to as CPU), and 2 is a control program for controlling the automatic programming device. stored R
OM, 3 is a RAM that stores the system program and various data loaded from the floppy disk FL, 4 is an NC data storage memory that stores NC data converted from a part program configured by an automatic programming language, 5 is a keyboard, 6 is a disk controller, 7 is a CRT (including various types of graphic displays), and each of these elements 1 to 7 is connected by a bus 8.

FLはパートプログラム作成等に関する各種のシステム
プログラムを格納したフロッピーディスクで、自動プロ
グラミング言語を構成する既定成語を記憶したテーブル
(以下、登録語テーブルという)が格納され、パートプ
ログラム作成用のシステムプログラムには、入力語の綴
りをチエツクする従来と同様のプログラムの他、第1図
に示されるような類似語検索処理を実施するための副プ
ログラムが付加されている。
FL is a floppy disk that stores various system programs related to part program creation, etc. It stores a table (hereinafter referred to as registered word table) that stores predefined words that make up an automatic programming language, and is used as a system program for part program creation. In addition to the conventional program for checking the spelling of input words, a sub-program for executing similar word search processing as shown in FIG. 1 is added.

この自動プログラミング装置では、「文番号」。In this automatic programming device, "statement number".

「要素」、「分離記号」を自動プログラミング言語とし
て用いることができ、これらの各要素によって1つの「
ステートメント」が構成される。この内、「文番号」は
パートプログラム上で特定の「文」を参照する必要のあ
る場合に「文」の先頭につける任意の数値列であり、「
分離記号」は「文番号」と「要素」との間および「要素
」と「要素」との間を区切る「、j等の記号によって構
成される。「要素」は「語」、「定義名」。
"Elements" and "separators" can be used as an automatic programming language, and each of these elements creates one "
statement” is constructed. Among these, the "statement number" is an arbitrary numerical string that is added to the beginning of the "statement" when it is necessary to refer to a specific "statement" on the part program.
"Separators" are composed of symbols such as ", j" that separate "statement numbers" and "elements" and between "elements". "Elements" are "words", "definition names" ”.

「文字列」、「数値」等のいずれかで構成されるが、こ
の内、「定義名」は定義された変数や図形の任意名称で
あり、[文字ダ月は文中に指定可能な任意文字列、また
、「数値」は識別番号や大きさを現す任意の実数である
。「語」は「主要語」もしくは「修飾語」によって構成
され、一般に、「主要語」は命令や定義を示すコマンド
に相当し、「修飾語」は命令や定義を具体化するオペラ
ンド部分に相当する。
It consists of either a "character string" or "numeric value", but among these, the "definition name" is an arbitrary name for a defined variable or figure, and The columns and "numbers" are arbitrary real numbers that represent identification numbers and sizes. A "word" is composed of a "main word" or a "modifier." In general, a "main word" corresponds to a command indicating an instruction or definition, and a "modifier" corresponds to an operand part that embodies the instruction or definition. do.

従って、上記各要素の内、確定した文字列を有する自動
プログラミング言語は「語」を構成する「主要語」と「
修飾語」のみであり、本実施例では、これらの1語」の
全てが既定成語として登録語テーブルに記憶され、パー
トプログラム作成時にキーボード5を介して1ステート
メント毎に自動プログラミング装置に入力された「語」
は、従来と同様、登録語テーブルに記憶された全ての既
定成語と比較され、一致する既定成語が存在しない場合
にはステートメントに誤りがあるものとして検出される
ようになっている。
Therefore, among the above elements, an automatic programming language that has a fixed character string is a "main word" that makes up a "word" and a "
In this embodiment, all of these single words are stored as default words in the registered word table, and are input into the automatic programming device for each statement via the keyboard 5 when creating the part program. "word"
As in the past, the statement is compared with all predetermined compositions stored in the registered word table, and if there is no matching predetermined composition, the statement is detected as having an error.

以下、ステートメントの誤りが検出された段階で起動さ
れる類似語検索処理の概略を示すフローチャートおよび
類似語検索処理の各ステップで実施される方式毎の検索
処理を示すフローチャート(第1図、第2図〜第6図)
を参照して、本実施例における類似語検索方式を説明す
る。なお、パートプログラム作成用のシステムプログラ
ムと登録語テーブルは予めフロッピーディスクFLから
RAM3にロードされているものとした。
The following is a flowchart outlining the similar word search process that is started when an error in a statement is detected, and a flowchart showing the search process for each method carried out at each step of the similar word search process (Figures 1 and 2). Figure ~ Figure 6)
The similar word search method in this embodiment will be explained with reference to . It is assumed that the system program for creating the part program and the registered word table have been loaded in advance into the RAM 3 from the floppy disk FL.

例えば、パートプログラムの作成時に、[0010PA
RT、@ABCJというステートメントが入力された場
合であれば、行番号である「0010J、、パートプロ
グラム名として設定した任意の文字列r@ABCJ、お
よび、分離記号となる「、」は「語」ではないから綴り
チエツクの対象とはならず、このステートメントではパ
ートプログラムを定義する主要語であるrPARTJに
関してのみ綴りがチエツクされることとなる。この場合
rPARTJという文字列が既定義語として登録語テー
ブルに記憶されているので、入力語に綴りの誤りはない
ものと判別される。
For example, when creating a part program, [0010PA
If the statement RT, @ABCJ is input, the line number "0010J," the arbitrary string r@ABCJ set as the part program name, and the separator "," are "words." Since it is not, the spelling is not checked, and in this statement, the spelling is checked only for rPARTJ, which is the main word that defines the part program. In this case, since the character string rPARTJ is stored as a predefined word in the registered word table, it is determined that there is no spelling error in the input word.

また、r0020  MCHN、MILL、INC」と
いうステートメントが入力された場合であれば、NCデ
ータの作成を指令する主要語「MCHNJ、  この主
要語に従属して加工機械を指定する修飾語rMILLJ
、および、修飾語と見なされたrlNcJに関して綴り
がチエツクされる。
In addition, if the statement "r0020 MCHN, MILL, INC" is input, the main word "MCHNJ" that commands the creation of NC data, and the modifier rMILLJ that specifies the processing machine subordinate to this main word.
, and the spelling is checked for rlNcJ, which is considered a modifier.

なお、rlNcJは誤りであり、厳密な意味での「語」
ではないが、自動プログラミング言語の文法上rMcH
N、MILLJに続く「語」はテープ出力の形式を指定
する修飾語以外に存在しないので、必然的に「語」とし
ての綴りがチエツクされることとなる。
Note that rlNcJ is incorrect and is not a "word" in the strict sense.
However, the syntax of automatic programming languages is rMcH.
Since the "word" following N and MILLJ exists only as a modifier specifying the tape output format, the spelling as a "word" is necessarily checked.

この場合、rlNcJという文字列は既定義語ではなく
、従って、登録語テーブルには記憶されていないので、
「語」としてのrlNcJの綴りに誤りがあったものと
判別されて類似語検索処理が開始されることとなる。
In this case, the character string rlNcJ is not a predefined word and is therefore not stored in the registered word table.
It is determined that the spelling of rlNcJ as a "word" is incorrect, and similar word search processing is started.

誤りを検出して類似語検索処理を開始したcPUlは、
まず、誤りを検出した行番号0020のステートメント
に対し、エラー識別番号rME。
The cPUl that detected the error and started the similar word search process,
First, an error identification number rME is assigned to the statement at line number 0020 where an error was detected.

54E」とエラーメツセージ「ステートメントノ アヤ
マリ」を表示してパートプログラムの作成を一旦停止し
、綴りを誤った入力語をCRTT上に表示して(ステッ
プ501)、ステップs02からステップSO6に示さ
れる各々の方式により登録語テーブルから類似語となる
既定義語を検索して記憶し、各方式によって検索された
全ての類似語を、入力すべき語の候補としてCRTT上
に表示する(ステップS07.第8図参照)。
54E" and the error message "Statement no error" are displayed, the creation of the part program is temporarily stopped, the incorrectly spelled input word is displayed on the CRTT (step 501), and each of the steps shown from step s02 to step SO6 is executed. The registered word table is searched and stored for predefined words that are similar words, and all the similar words searched by each method are displayed on the CRTT as word candidates to be input (step S07. (See Figure 8).

第2図は入力語を構成する文字列の全てを含む既定義語
を登録語テーブルから検索して類似語とした方式1の概
略を示すフローチャートで、CPU1は、登録語テーブ
ルに記憶された既定義語を順次参照し、その既定義語が
、綴りの誤った入力語の文字列全てを含む場合、換言す
れば綴りの誤った入力語に幾つかの文字を付は加えれば
既定義語となる場合、これらの既定義語を入力語の類似
語として記憶する(以上、ステップSll、812参照
)。この場合、綴りの誤った入力語rINC」の文字列
を含む既定義語として、rlNcHJrlNcOJ、r
lNcRJ、rINcREJが類似語として記憶される
(表1参照)。
FIG. 2 is a flowchart showing an outline of method 1 in which predefined words containing all the character strings constituting the input word are searched from the registered word table to obtain similar words. If the defined word is referenced sequentially and the defined word contains all the character strings of the incorrectly spelled input word, in other words, if some characters are added to the incorrectly spelled input word, it becomes the already defined word. If so, these predefined words are stored as similar words to the input word (see step Sll, 812). In this case, rlNcHJrlNcOJ, r
lNcRJ and rINcREJ are stored as similar words (see Table 1).

表1.検索例 第3図は入力語を構成する文字列から順次1文字を減じ
て文字列を作成し、該文字列を構成する文字の数が所定
数Mとなるまで、1文字を減じる毎にこの文字列と一致
する既定義語を登録語テーブルの中から検索して類似語
とした方式2の概略を示すフローチャートで、この例で
は所定数Mの値を3に設定し、入力語を構成する文字列
の後方から順次1文字を減じるようにしている。CPU
1は、まず、入力語を構成する文字列の最終1文字を減
じて文字列を作成しくステップ521)、この文字列と
同数の文字数を有する登録語テーブルに記憶された既定
義語を順次参照し、最終1文字を減じた文字列と一致す
る既定義語が存在すれば、この既定義語を類似語として
記憶する(ステップ322,523)。次に、最終1文
字を減じて作成された文字列の文字数が所定数Mとなっ
たか否かを判別しくステップ524)、文字数がMより
も大きければ、この文字列の最終1文字を減じて新たな
文字列を再度作成しくステップ521)、上記と同様に
してステップ322.S23の処理を繰返し実行し、文
字列と一致する既定義語を検索して類似語として記憶す
る。即ち、綴りの誤った入力語から幾つかの文字を除去
して得られる既定義語の全てが類似語として検索される
こととなる。この場合、まず、入力語を構成する文字列
rINCJの最終1文字rCJを減じて文字列rINJ
を作成し、この文字列と同数の文字数を有する登録語テ
ーブルに記憶された既定成語を順次参照し、最終1文字
を減じた文字列と一致する既定成語rINJが類似語と
して記憶され(表2参照)、この段階で文字数≦Mとな
って検索が終了する。
Table 1. Search example Figure 3 shows a character string that is created by sequentially subtracting one character from the character string that makes up the input word, and the process is performed each time one character is subtracted until the number of characters that make up the character string reaches a predetermined number M. This is a flowchart showing an outline of Method 2, in which a predefined word that matches a character string is searched from the registered word table and used as a similar word. In this example, the value of the predetermined number M is set to 3 to form the input word. One character is subtracted sequentially from the end of the string. CPU
1, first, create a character string by subtracting the last character of the character string constituting the input word (step 521), and sequentially refer to predefined words stored in the registered word table that have the same number of characters as this character string. However, if there is a predefined word that matches the character string with the last character subtracted, this predefined word is stored as a similar word (steps 322, 523). Next, it is determined whether the number of characters of the character string created by subtracting the last character has reached a predetermined number M (step 524), and if the number of characters is greater than M, the last character of this character string is subtracted. Create a new character string again in step 521), and in the same manner as above in step 322. The process of S23 is repeatedly executed to search for predefined words that match the character string and store them as similar words. That is, all the predefined words obtained by removing some characters from the incorrectly spelled input word are searched as similar words. In this case, first, the last character rCJ of the character string rINCJ constituting the input word is subtracted to form the character string rINJ.
is created, sequentially refers to the predetermined compound words stored in the registered word table that have the same number of characters as this character string, and the predetermined compound word rINJ that matches the character string with the last character subtracted is stored as a similar word (Table 2 ), at this stage the number of characters≦M and the search ends.

表2.検索例 なお、文字列を構成する文字数と所定数Mとの大小関係
の比較は第1回目の検索処理実行後に行われるので、誤
った入力語を構成する文字の数が所定数Mよりも小さい
場合であっても、最終1文字を減じた文字列と一致する
既定成語を検索するための処理が少なくとも1回は実行
される。
Table 2. Search example Note that the comparison of the size relationship between the number of characters that make up the character string and the predetermined number M is performed after the first search process is executed, so the number of characters that make up the incorrect input word is smaller than the predetermined number M. Even in the above case, the process for searching for a predetermined compound word that matches the character string with the last character subtracted is executed at least once.

第4図は入力語を構成する文字列の一部を含む既定成語
を登録語テーブルから検索して類似語とした方式3の概
略を示すフローチャートで、この例では、入力語を構成
する文字列と同数の文字数を有する登録語テーブルに記
憶された既定成語を順次参照し、入力語の文字列の一部
を他の文字に置換して得られる既定成語を入力語の文字
列の一部を含む既定成語として検索し、類似語として記
憶するようにしている(以上、ステップS31゜532
)。この場合、入力語を構成する文字列rINcJは3
文字からなるので、rlN*J。
Figure 4 is a flowchart showing an outline of method 3, in which predefined words that include a part of the character strings that make up the input word are searched from the registered word table and used as similar words. The predefined words stored in the registered word table that have the same number of characters as It is searched as a predetermined word containing the word and stored as a similar word (hereinafter, step S31゜532
). In this case, the character string rINcJ that constitutes the input word is 3
Since it consists of letters, rlN*J.

rI*cJ、r*Nc」、rl**J、r*N*」もし
くは「**C」の文字列と一致する既定成語が類似語と
して検索されることとなる。なお、「*」は任意の1文
字を現すワイルドカードであり、一致・不一致に関する
判別処理は実質上実行されない。例えば、rIN*Jと
一致する既定成語を検索する場合であれば、CPUIは
、3文字の文字数を有する登録語テーブルに記憶された
既定成語の第1文字がrIJであり、かつ、第2文字が
rNJであるか否かのみを判断し、第3文字がどのよう
な文字であろうと、この条件を満たす既定成語の全てを
類似語として検出することとなる。従って、rIN*J
と一致する既定成語はrr**」およびl”*N*Jで
示される既定成語の範喘に含まれるが、実施例の場合、
置換する文字の数(ワイルドカードの数)を1としてい
るので、類似語となる既定成語としてrlNTJのみが
検索される結果となる(表3参照)。
A predetermined compound word that matches the character string "rI*cJ, r*Nc", "rl**J, r*N*", or "**C" will be searched as a similar word. Note that "*" is a wild card that represents any single character, and no determination processing regarding match/mismatch is actually performed. For example, when searching for a predetermined compound word that matches rIN*J, the CPUI determines that the first character of the predetermined compound word stored in the registered word table having three characters is rIJ, and the second character It is determined only whether or not is rNJ, and all predetermined words that satisfy this condition are detected as similar words, regardless of what the third character is. Therefore, rIN*J
The default compositions that match are included in the range of default compositions indicated by ``rr**'' and l''*N*J, but in the case of the example,
Since the number of characters to be replaced (the number of wild cards) is set to 1, only rlNTJ is searched as a default compound word that is a similar word (see Table 3).

表3.検索例 で上記方式3と異なる。即ち、この例では入力語の文字
列の一部を含む既定成語が文字数に関わりなく全て検索
されて、類似語として記憶されることとなる(ステップ
S41.542)。実施例では上記方式4と同様、置換
する文字の数を1とし、かつ、入力語と既定成語の文字
列の比較を先頭から行うようにしているので、この場合
、rlN*・・・J 、  II *C*・・・J、r
*Nc*・・・」と一致する既定成語が類似語として検
索されることとなる(表4参照)。
Table 3. This search example is different from method 3 above. That is, in this example, all predetermined words that include a part of the character string of the input word are searched for regardless of the number of characters, and are stored as similar words (step S41.542). In the embodiment, as in Method 4 above, the number of characters to be replaced is set to 1, and the character strings of the input word and the default compound word are compared from the beginning, so in this case, rlN*...J, II *C*...J, r
*Nc*...'' will be searched as a similar word (see Table 4).

表4.検索例 第5図は入力語を構成する文字列の一部を含む既定成語
を登録語テーブルから検索して類似語とした別の方式4
の概略を示すフローチャートで、検索対象となる既定成
語の文字数に制限がない点表4.検索例(つづき) 第6図は入力語を構成する文字列から順次1文字を減じ
て文字列を作成し、該文字列を構成する文字の数が所定
数となるまで、1文字を減じる毎に上記文字列の一部を
他の文字と置換して得た文字列と一致する既定成語を登
録語テーブルの中から検索して類似語とした方式5の概
略を示すフローチャートで、この例では上記方式2と同
様、所定数Mの値を3に設定し、入力語を構成する文字
列の後方から順次1文字を減じるようにしている。
Table 4. Search example Figure 5 shows another method 4 in which a predefined compound word that includes a part of the character string constituting the input word is searched from the registered word table and used as a similar word.
Table 4. is a flowchart outlining the point that there is no limit to the number of characters in the predefined compound word to be searched. Search example (continued) Figure 6 shows a character string that is created by sequentially subtracting one character from the character string that makes up the input word. This is a flowchart outlining Method 5, in which a predetermined compound word that matches the character string obtained by replacing a part of the above character string with other characters is searched from the registered word table and used as a similar word. Similar to method 2 above, the value of the predetermined number M is set to 3, and one character is sequentially subtracted from the end of the character string forming the input word.

CPUIは、まず、入力語を構成する文字列の最終1文
字を減じて文字列を作成しくステップ551)、この文
字列と同数の文字数を有する登録語テーブルに記憶され
た既定成語を順次参照し、最終1文字を減じた文字列の
一部を他の文字と置換した文字列と一致する既定成語が
存在すれば、この既定成語を類似語として記憶する(ス
テップS52.553)。次に、最終1文字を減じて作
成された文字列の文字数が所定数Mとなったか否かを判
別しくステップ554)、文字数がMよりも大きければ
、現在の文字列の最終1文字を減じて新たな文字列を再
度作成しくステップ551)、上記と同様にしてステッ
プ852.353の処理を繰返し実行し、この文字列の
一部を他の文字と置換した文字列と一致する既定成語を
検索して類似語として記憶する。この場合、まず、入力
語を構成する文字列rlNcJの最終1文字「C」を減
じて文字列rlNJを作成し、この文字列と同数の文字
数を有する登録語テーブルに記憶された既定成語を順次
参照し、文字列の一部を他の文字と置換した文字列、即
ち、「■*」もしくは「*N」と一致する既定成語rl
LJと「ON」が類似語として記憶され(表5参照)、
この段階で文字数≦Mとなって検索が終了する。
The CPU first creates a character string by subtracting the last character of the character string that constitutes the input word (step 551), and sequentially refers to predefined compound words stored in the registered word table that have the same number of characters as this character string. , if there is a predetermined word that matches the character string obtained by subtracting the last character and replacing a part of the string with another character, this predetermined word is stored as a similar word (step S52.553). Next, it is determined whether the number of characters in the character string created by subtracting the last character has reached a predetermined number M (step 554), and if the number of characters is greater than M, the last character in the current character string is subtracted. Step 551) to create a new character string again (step 551), repeat the steps 852 and 353 in the same manner as above, and create a default compound word that matches the string in which part of this string has been replaced with other characters. Search and store as similar words. In this case, first, create a character string rlNJ by subtracting the last character "C" from the character string rlNcJ that constitutes the input word, and then sequentially select the predefined words stored in the registered word table that have the same number of characters as this character string. Default compound word rl that matches a character string that is referenced and a part of the character string is replaced with other characters, that is, "■*" or "*N"
LJ and "ON" are stored as similar words (see Table 5),
At this stage, the number of characters≦M and the search ends.

表5.検索例 上記各方式1〜5によって検索された類似語は文字数の
大小に応じてソーティングされ、入力すべき語の候補と
してCRTT上に一覧表示される(ステップS07.第
8図参照)。この例では、テープ出力の形式をインクリ
メンタル指定する修飾語rINcRJが入力すべき「語
」であり、オペレータは綴りの誤った入力語1’−IN
CJに替えてrlNcRJを再入力することとなる。
Table 5. Search Example The similar words searched by each of the above methods 1 to 5 are sorted according to the number of characters, and are displayed as a list on the CRTT as word candidates to be input (step S07, see FIG. 8). In this example, the modifier rINcRJ, which incrementally specifies the format of tape output, is the "word" to be entered, and the operator must enter the misspelled input word 1'-IN.
rlNcRJ will be re-inputted instead of CJ.

本実施例によれば入力すべき語の候補と共に綴りを誤っ
た入力語自体がCRTT上に表示されるので、ステート
メントを構成するいずれの語に誤りがあるのかを簡単に
特定することができる。
According to this embodiment, the incorrectly spelled input word itself is displayed on the CRTT together with the candidate word to be input, so it is possible to easily identify which word making up the statement is incorrect.

類似語を検索するためには、必ずしも上記各方式1〜5
を重複して実行する必要はないが、入力すべき語の候補
となる類似語を適格に検索するためには、少なくとも、
方式1と方式3もしくは方式4を組み合わせるか(請求
項2に対応)、方式2と方式5を組み合わせることが望
ましく(請求項4に対応)、また、単一の方式で検索を
行う場合であれば方式2(請求項3に対応)によること
が望ましい。
In order to search for similar words, it is not necessary to use each method 1 to 5 above.
Although it is not necessary to perform the steps twice, in order to properly search for similar words that are candidates for the word to be input, at least
It is desirable to combine method 1 and method 3 or method 4 (corresponding to claim 2), or to combine method 2 and method 5 (corresponding to claim 4), and even when searching is performed using a single method. For example, method 2 (corresponding to claim 3) is preferably used.

実施例では自動プログラミング言語の文法とは関わりな
く、綴りを誤って入力された入力語と類似した綴りを有
する既定成語を全て表示するようにしたが、類似した綴
りを有する既定成語のうち文法上入力可能な既定成語の
みを選択して表示するようにしてもよい。
In the example, all predefined compound words with similar spellings to the incorrectly entered input word are displayed, regardless of the grammar of the automatic programming language. Only predefined words that can be input may be selected and displayed.

発明の効果 本発明の類似語検索方式によれば、誤った入力語と類似
する既定成語の全てが入力すべき語の候補としてCRT
画面上に表示されるので、ステートメントを構成するい
ずれの語に誤りがあるのかを容易に特定することができ
、しかも、マニュアル等を参照することなく入力語の誤
りを簡単に訂正することができるので、自動プログラミ
ング言語の入力作業を迅速かつ容易に行うことができる
Effects of the Invention According to the similar word search method of the present invention, all predetermined words similar to an erroneous input word are selected as candidates for words to be input.
Since it is displayed on the screen, it is easy to identify which word making up the statement contains an error, and furthermore, errors in input words can be easily corrected without referring to a manual etc. Therefore, automatic programming language input work can be done quickly and easily.

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

第1図は本発明の一実施例における類似語検索処理の概
略を示すフローチャート、第2TI!J〜第6図は同実
施例における類似語検索処理の各ステップで実施される
方式毎の検索処理の概略を示すフローチャート、第7図
は本発明の方式を実施する一実施例の自動プログラミン
グ装置の要部を示すブロック図、第8図は同実施例の自
動プログラミング装置におけるCRTの表示例を示す図
、第9図は従来の自動プログラミング装置によって入力
語の誤りが検出された場合のCR7表示画面の一例を示
す図である。 1・・・マイクロプロセッサ(CPU) 、2・・・R
OM、3・・・RAM、4・・・NCデータ記憶メモリ
、5・・・キーボード、6・・・ディスクコントローラ
、7・・・CRT、8・・・バス、FL・・・フロッピ
ーディスク。 第 図 第 図 第 6 図 第 図
FIG. 1 is a flowchart showing an outline of similar word search processing in an embodiment of the present invention, 2nd TI! J~ Figure 6 is a flowchart showing an outline of the search process for each method carried out at each step of the similar word search process in the same embodiment, and Figure 7 is an automatic programming device of one embodiment implementing the method of the present invention. 8 is a diagram showing an example of the CRT display in the automatic programming device of the same embodiment, and FIG. 9 is a CR7 display when an input word error is detected by the conventional automatic programming device. It is a figure which shows an example of a screen. 1...Microprocessor (CPU), 2...R
OM, 3...RAM, 4...NC data storage memory, 5...keyboard, 6...disk controller, 7...CRT, 8...bus, FL...floppy disk. Figure Figure 6 Figure Figure 6

Claims (5)

【特許請求の範囲】[Claims] (1)自動プログラミング言語を構成する既定義語を自
動プログラミング装置の内部に予め記憶しておき、自動
プログラミング装置に入力された語と上記既定義語とを
比較して入力語の誤りを検出すると共に、入力語に誤り
があった場合には既定義語を検索して該入力語と類似す
る語を求め、CRT画面上に表示することを特徴とした
自動プログラミング装置の類似語検索方式。
(1) Predefined words that make up the automatic programming language are stored in the automatic programming device in advance, and errors in input words are detected by comparing the words input into the automatic programming device with the predefined words. In addition, if there is an error in an input word, a similar word search method for an automatic programming device is characterized in that, if there is an error in an input word, a predefined word is searched to find a word similar to the input word and displayed on a CRT screen.
(2)入力語に誤りがあった場合には入力語を構成する
文字列およびその一部を含む語を既定義語の中から検索
し、類似語としてCRT画面上に表示することを特徴と
した請求項1記載の自動プログラミング装置の類似語検
索方式。
(2) If there is an error in the input word, the character string composing the input word or a word containing a part thereof is searched from among the defined words and displayed on the CRT screen as a similar word. A similar word search method for an automatic programming device according to claim 1.
(3)入力語に誤りがあった場合には入力語を構成する
文字列から順次1文字を減じて文字列を作成し、該文字
列を構成する文字の数が所定数となるまで、1文字を減
じる毎に上記文字列と一致する語を既定義語の中から検
索し、類似語としてCRT画面上に表示することを特徴
とした請求項1記載の自動プログラミング装置の類似語
検索方式。
(3) If there is an error in the input word, create a character string by sequentially subtracting one character from the character string that makes up the input word. 2. A similar word search method for an automatic programming device according to claim 1, wherein each time a character is subtracted, a word matching said character string is searched from among predefined words and displayed as a similar word on a CRT screen.
(4)入力語に誤りがあった場合には入力語を構成する
文字列から順次1文字を減じて文字列を作成し、該文字
列を構成する文字の数が所定数となるまで、1文字を減
じる毎に上記文字列と一致する語および上記文字列の一
部を他の文字と置換した文字列と一致する語を既定義語
の中から検索し、類似語としてCRT画面上に表示する
ことを特徴とした請求項1記載の自動プログラミング装
置の類似語検索方式。
(4) If there is an error in the input word, create a character string by sequentially subtracting one character from the character string that makes up the input word. Every time a character is subtracted, a word that matches the above character string and a word that matches a character string in which part of the above character string is replaced with other characters is searched from among the predefined words and displayed as similar words on the CRT screen. 2. A similar word search method for an automatic programming device according to claim 1.
(5)入力語に誤りがあった場合には入力語を構成する
文字列およびその一部を含む語を既定義語の中から検索
すると共に、入力語を構成する文字列から順次1文字を
減じて文字列を作成し、該文字列を構成する文字の数が
所定数となるまで、1文字を減じる毎に上記文字列と一
致する語および上記文字列の一部を他の文字と置換した
文字列と一致する語を既定義語の中から検索し、検索さ
れた全ての語を類似語としてCRT画面上に表示するこ
とを特徴とした請求項1記載の自動プログラミング装置
の類似語検索方式。
(5) If there is an error in the input word, search for the character string that makes up the input word or a word that includes a part of it from among the defined words, and search for one character from the character string that makes up the input word one by one. Create a character string by subtracting it, and replace the word that matches the character string and a part of the character string with other characters each time one character is subtracted until the number of characters that make up the character string reaches a predetermined number. Similar word search for an automatic programming device according to claim 1, characterized in that a word matching a character string is searched from among predefined words, and all searched words are displayed as similar words on a CRT screen. method.
JP1327398A 1989-12-19 1989-12-19 Analogous word retrieving system for automatic programming device Pending JPH03189725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1327398A JPH03189725A (en) 1989-12-19 1989-12-19 Analogous word retrieving system for automatic programming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1327398A JPH03189725A (en) 1989-12-19 1989-12-19 Analogous word retrieving system for automatic programming device

Publications (1)

Publication Number Publication Date
JPH03189725A true JPH03189725A (en) 1991-08-19

Family

ID=18198709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1327398A Pending JPH03189725A (en) 1989-12-19 1989-12-19 Analogous word retrieving system for automatic programming device

Country Status (1)

Country Link
JP (1) JPH03189725A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160494A (en) * 1993-12-08 1995-06-23 Nec Corp Correction device for input character string at coding time
JPH10133883A (en) * 1996-10-31 1998-05-22 Nec Corp Compiling device
JP2001142738A (en) * 1999-09-29 2001-05-25 Lucent Technol Inc Scripter and interpreter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160494A (en) * 1993-12-08 1995-06-23 Nec Corp Correction device for input character string at coding time
JPH10133883A (en) * 1996-10-31 1998-05-22 Nec Corp Compiling device
JP2001142738A (en) * 1999-09-29 2001-05-25 Lucent Technol Inc Scripter and interpreter

Similar Documents

Publication Publication Date Title
US5842180A (en) Method and system for detecting and correcting errors in a spreadsheet formula
JP7074785B2 (en) Ambiguous part correction support device and method
CN105867645A (en) Code input method for digital control system and code format arrangement method
CN101324844A (en) Method for making rich text control with intelligent perception
JP2022074852A (en) Dictionary editing device, dictionary editing method, and dictionary editing program
JPH03189725A (en) Analogous word retrieving system for automatic programming device
JP3085383B2 (en) Document processing method
US6122650A (en) Method and apparatus for updating time related data in a modified document
CN112364632B (en) Book checking method and device
JPH05173844A (en) Coding error correcting system
JP7211139B2 (en) Review method, information processing device and review program
JPH10116188A (en) Command statement creation support method and apparatus
JP2936761B2 (en) Proofreading device for Japanese documents
JPS6149245A (en) Automatic analyzer of program module structure
JP7770086B2 (en) Program design support system
JPH0267684A (en) Calibration supporting system and dictionary retrieving system
JP3263211B2 (en) Character processing method and device
JPH03233669A (en) Document preparing device
JP2795930B2 (en) Document creation support device
JPH07160494A (en) Correction device for input character string at coding time
JPH0675958A (en) Document processor
JP2024011851A (en) Control program editing device, editing method, and program
JPS62256069A (en) Document processor
JP2965578B2 (en) Document creation support method
JPH07160720A (en) Method and device for supporting and making efficient translation of information readable by machine