JPH10269217A - Exemplifying type processor and recording medium where exemplifying type processing program is recorded - Google Patents

Exemplifying type processor and recording medium where exemplifying type processing program is recorded

Info

Publication number
JPH10269217A
JPH10269217A JP9076339A JP7633997A JPH10269217A JP H10269217 A JPH10269217 A JP H10269217A JP 9076339 A JP9076339 A JP 9076339A JP 7633997 A JP7633997 A JP 7633997A JP H10269217 A JPH10269217 A JP H10269217A
Authority
JP
Japan
Prior art keywords
subsequence
change operation
sequence
sub
interpretation
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
JP9076339A
Other languages
Japanese (ja)
Inventor
Yuzo Fujishima
勇造 藤島
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP9076339A priority Critical patent/JPH10269217A/en
Publication of JPH10269217A publication Critical patent/JPH10269217A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To automate operation for an input character string according to operation that a user exemplify. SOLUTION: The user shows an example and instructs for a substitutional act through a user input/output means 101. An application observation control means 102 observes and alters an operation object of application. An interpretation importance evaluating means 104 evaluates the importance of the interpretation of the object. A partial string interpreting means 105 interprets which part of the object of operation needs to be noticed for the operation. A partial string content relation interpreting means 107 interprets how the noticed part needs to be altered for the operation. A partial string position relation interpreting means 108 interprets what position relation noticed parts have. An example storage means 109 holds examples.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータ・シ
ステムの利用者インタフェース装置に関し、特に例示型
処理装置および例示型処理プログラムを記録した記録媒
体に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a user interface device of a computer system, and more particularly to an exemplary processing device and a recording medium storing an exemplary processing program.

【0002】[0002]

【従来の技術】従来、この種の例示型処理装置は、ワー
ド・プロセッサやテキスト・エディタなどにおいて、利
用者が示した例を解釈して、残りの作業を代行するため
に用いられている。
2. Description of the Related Art Conventionally, an example type processing apparatus of this type has been used in a word processor, a text editor, or the like to interpret an example shown by a user and to perform the remaining work.

【0003】従来の例示型処理装置の一例が、1985
年10月、エー・シー・エム・トランザクションズ・オ
ン・プログラミング・ランゲッジ・アンド・システム
ズ、第7巻、第4号、600ページから621ページに
記載されている。
One example of a conventional exemplary processing apparatus is described in 1985.
October, AMC Transactions on Programming Language and Systems, Vol. 7, No. 4, pp. 600-621.

【0004】この論文に記載された例示型処理装置は、
利用者が示した入力文字列と出力文字列の組を解釈し
て、入力文字列のパターンと、入力文字列から出力文字
列への変換規則を見つけ出す。
[0004] The exemplary processing apparatus described in this paper is:
By interpreting the set of the input character string and the output character string indicated by the user, a pattern of the input character string and a conversion rule from the input character string to the output character string are found.

【0005】まず、全ての入力文字列に共通のパターン
を調べる。パターンは、固定文字列と任意文字列の任意
の個数の組み合わせである。例えば、入力文字列とし
て”@i[O.K.]”と”@i[Boston Mo
rning Post]”が与えられると、共通のパタ
ーンとして「”@i[”+任意文字列1+”]”」を見
つけ出す。組み合わせは、固定文字列をなるべく多くす
るように行われる。例えば、前述の例に対して、共通パ
ターンとして「”@”+任意文字列1」が見つけ出され
ることはない。
First, a pattern common to all input character strings is examined. The pattern is a combination of a fixed character string and an arbitrary number of arbitrary character strings. For example, as input character strings, "@i [OK.]" And "@i [Boston Mo
Given "ring Post]", "" @i ["+ arbitrary character string 1+"] "" is found as a common pattern. The combination is performed so as to increase the number of fixed character strings as much as possible. For example, with respect to the above-described example, "" $ "+ arbitrary character string 1" is not found as a common pattern.

【0006】続いて、入力文字列と出力文字列の全ての
組に共通の変換規則を調べる。具体的には、固定文字列
と、入力文字列における任意文字列とを組み合わせて出
力文字列を導く方法が調べられる。例えば、前述の入力
文字列のそれぞれに対する出力文字列として、”{¥s
l O.K.}”と”{¥sl Boston Mor
ning Post}”が与えられると、変換規則とし
て「『”@i[”+任意文字列1+”]”』を『”{¥
sl ”+任意文字列1+”}”』に変換する」を見つ
け出す。
Subsequently, a conversion rule common to all pairs of the input character string and the output character string is examined. Specifically, a method of deriving an output character string by combining a fixed character string and an arbitrary character string in an input character string is examined. For example, as an output character string for each of the aforementioned input character strings, "@s
lO. K. } ”And“ {¥ sl Boston Mor
When "Ning Post @" is given, "" {i ["+ arbitrary character string 1+"] "" is converted to "" {@
sl "+ arbitrary character string 1+"} """.

【0007】入力文字列のパターンと、入力文字列から
出力文字列への変換規則が見つかると、文書の残りにお
いてその作業を代行する。具体的には、入力文字列のパ
ターンに合致する文字列を検索し、それに対して変換規
則を適用することを繰り返す。例えば、文書の残りの一
部が”・・・as an adjective (@i
[That’s O.K.]) and occasi
onally・・・”だとする。その中では”@i[T
hat’s O.K.]”が入力文字列のパターンに合
致することがわかる。その場合、任意文字列1は”Th
at’s O.K.”となる。そこで、入力文字列を”
{¥sl That’s O.K.}”で置き換える。
When an input character string pattern and a conversion rule from an input character string to an output character string are found, the work is performed on behalf of the rest of the document. Specifically, a search is made for a character string that matches the pattern of the input character string, and the conversion rule is applied to the search. For example, the remaining part of the document is "... as an adjustable (@i
[What's O.M. K. ]) And occasi
only ... ”, in which“ @i [T
hat's O.M. K. ] ”Matches the pattern of the input character string. In this case, the arbitrary character string 1 is“ Th
at's O. K. And the input string is changed to "
{¥ sl That's O. K. Replace with “}”.

【0008】[0008]

【発明が解決しようとする課題】第1の問題点は、入力
文字列中の、ある任意文字列の一部分を使用するような
変換規則を見つけ出すことができないということであ
る。
A first problem is that it is impossible to find a conversion rule that uses a part of an arbitrary character string in an input character string.

【0009】その理由は、先に入力文字列のパターンを
決定した後で、その中に含まれる任意文字列全体と固定
文字列とを組み合わせることによってのみ変換規則を調
べるからである。例えば、「任意文字列1の2文字目以
降」という規則を見つけ出すことはできない。
The reason is that after the pattern of the input character string is determined first, the conversion rule is checked only by combining the entire arbitrary character string contained therein and the fixed character string. For example, it is impossible to find the rule "the second and subsequent characters of the arbitrary character string 1".

【0010】第2の問題点は、入力文字列中の任意文字
列を変換した後で他の文字列と組み合わせるような変換
規則を見つけ出すことができないということである。
A second problem is that it is not possible to find a conversion rule that converts an arbitrary character string in an input character string and combines it with another character string.

【0011】その理由は、入力文字列中の任意文字列そ
のままと固定文字列を組み合わせることによってのみ変
換規則を調べるからである。例えば、「任意文字列2を
大文字に変換したもの」という規則を見つけ出すことは
できない。
The reason is that the conversion rule is checked only by combining an arbitrary character string as it is and a fixed character string in the input character string. For example, a rule "arbitrary character string 2 converted to upper case" cannot be found.

【0012】第3の問題点は、複数の入力文字列から複
数の出力文字列が導かれるような作業を解釈することが
できないということである。
A third problem is that it is impossible to interpret an operation in which a plurality of output character strings are derived from a plurality of input character strings.

【0013】その理由は、一度には一つの文字列にのみ
着目することを仮定しているからである。
[0013] The reason is that it is assumed that attention is paid to only one character string at a time.

【0014】第4の問題点は、その前後の文字列により
着目すべき入力文字列が決定されるような作業を解釈す
ることができないということである。
A fourth problem is that it is not possible to interpret a task in which the input character string to be focused on is determined by the character strings before and after it.

【0015】その理由は、入力文字列の内部に含まれる
文字のみに着目してパターンを調べるからである。例え
ば、”・・・ ’alpha’ is the fir
stand ’beta’ is the ・・・”に
おいて、入力文字列として”alpha”と”bet
a”が指定された場合に、「”’”の直後の文字から、
次の”’”の直前の文字まで」という解釈は得られな
い。見つけ出される可能性があるのは、「任意文字列1
+”a”」という解釈だけである。
[0015] The reason is that the pattern is examined by focusing only on the characters included in the input character string. For example, "... 'alpha' is the first
In "stand 'beta' is the...", "alpha" and "bet" are input character strings.
When "a" is specified, the character immediately after ""'"
The interpretation "up to the character immediately before the next"'"cannot be obtained. What could be found is "arbitrary string 1
+ "A"".

【0016】第5の問題点は、例に共通の文字列の全て
が固定文字列として入力文字列のパターンに含められて
しまうということである。
A fifth problem is that all of the character strings common to the examples are included in the pattern of the input character string as fixed character strings.

【0017】その理由は、入力文字列のパターンは固定
文字列をなるべく多くするように解釈されるからであ
る。例えば、”・・・ (it cries) Uh
(itjives) ・・・”において、入力文字列と
して”(it cries)”と”(it jive
s)”が指定された場合には、単語を単位として解釈す
る場合には「”(it”+任意文字列1+”)”」が、
文字を単位とする場合には「”(it ”+任意文字列
1+”es)”」がパターンとして得られてしま
う。「”(”+任意文字列1+”)”」というパターン
は得られない。
The reason is that the pattern of the input character string is interpreted so as to increase the fixed character string as much as possible. For example, "... (it cries) Uh
(Itjives)..., "(It cries)" and "(it jives)
s) When “” is specified, “” (it ”+ arbitrary character string 1+”) ”” is interpreted when words are interpreted as a unit.
When characters are used as units, "" (it "+ arbitrary character string 1+" es) "" is obtained as a pattern. The pattern "(" + arbitrary character string 1+ ")""cannot be obtained.

【0018】第6の問題点は、「ある種類に属する文字
列」という概念を含む入力文字列のパターンを解釈する
ことができないということである。例えば「大文字で始
まり区切り文字で終わる文字列」といったパターンを見
つけ出すことはできない。
A sixth problem is that it is impossible to interpret an input character string pattern including the concept of "a character string belonging to a certain type". For example, you cannot find patterns such as "a string that starts with an uppercase letter and ends with a delimiter."

【0019】その理由は、入力文字列のパターンは固定
文字列と任意文字列の組み合わせとして解釈されるが、
固定文字列は一つの文字列にのみ合致し、任意文字列は
どのような文字列にも合致してしまうからである。
The reason is that the pattern of the input character string is interpreted as a combination of a fixed character string and an arbitrary character string.
This is because a fixed character string matches only one character string, and an arbitrary character string matches any character string.

【0020】第7の問題点は、内容ではなく、位置によ
って着目すべき入力文字列を決定するような作業を解釈
することができないということである。
A seventh problem is that it is not possible to interpret a task of determining an input character string to be focused on not based on the content but on the position.

【0021】その理由は第4の問題点と同じである。The reason is the same as the fourth problem.

【0022】第8の問題点は、入力文字列のパターンが
一般的すぎて、着目すべきでない文字列にも合致してし
まうことが多いということである。
The eighth problem is that the pattern of the input character string is too general and often matches a character string that should not be focused on.

【0023】その理由は、着目すべき文字列の例のみを
参照し、着目すべきでない文字列の例を一切参照しない
からである。
The reason is that only the example of the character string to be focused on is referred to, and the example of the character string not to be focused on is not referenced at all.

【0024】本発明の目的は、入力文字列中の、ある任
意文字列の一部分を使用するような変換規則を見つけ出
すことができるような例示型処理装置を提供することに
ある。
An object of the present invention is to provide an exemplary processing apparatus capable of finding a conversion rule that uses a part of an arbitrary character string in an input character string.

【0025】本発明の他の目的は、入力文字列中の任意
文字列を変換した後で他の文字列と組み合わせるような
変換規則を見つけ出すことができるような例示型処理装
置を提供することにある。
Another object of the present invention is to provide an example-type processing apparatus capable of finding a conversion rule that converts an arbitrary character string in an input character string and then combines it with another character string. is there.

【0026】本発明の他の目的は、複数の入力文字列か
ら複数の出力文字列が導かれるような作業を解釈するこ
とができるような例示型処理装置を提供することにあ
る。
It is another object of the present invention to provide an exemplary processing apparatus capable of interpreting a task in which a plurality of output character strings are derived from a plurality of input character strings.

【0027】本発明の他の目的は、その前後の文字列に
より着目すべき入力文字列が決定されるような作業を解
釈することができるような例示型処理装置を提供するこ
とにある。
Another object of the present invention is to provide an exemplary processing apparatus capable of interpreting an operation in which an input character string to be focused on is determined by character strings before and after the character string.

【0028】本発明の他の目的は、入力文字列のパター
ンに、入力文字列の例に共通の特徴のうち、重要である
と考えられるものを優先的に含めることができるような
例示型処理装置を提供することにある。
Another object of the present invention is to provide an exemplary processing in which a pattern considered to be important among features common to examples of an input character string can be preferentially included in a pattern of the input character string. It is to provide a device.

【0029】本発明の他の目的は、内容ではなく、位置
によって着目すべき入力文字列を決定するような作業も
解釈することができるような例示型処理装置を提供する
ことにある。
Another object of the present invention is to provide an exemplary processing apparatus capable of interpreting an operation of determining an input character string to be focused on based on a position, not a content.

【0030】本発明の他の目的は、「ある種類に属する
文字列」という概念を含む入力文字列のパターンを解釈
することができるような例示型処理装置を提供すること
にある。
Another object of the present invention is to provide an exemplary processing apparatus capable of interpreting a pattern of an input character string including the concept of "a character string belonging to a certain type".

【0031】[0031]

【課題を解決するための手段】本発明の第1の例示型処
理装置は、オブジェクトの列に含まれる部分列に対する
変更操作の情報を予め記憶する例記憶手段と、前記例記
憶手段に記憶された前記変更操作の情報に基づいて、前
記オブジェクトの列に含まれる部分列に対する変更操作
を繰り返し実行する中央制御手段とを備えたことを特徴
とする。
A first exemplary processing apparatus according to the present invention includes an example storage means for previously storing information on a change operation on a subsequence included in an object row, and an information storage means for storing the information in the example storage means. Central control means for repeatedly executing a change operation on a partial column included in the object column based on the information on the change operation.

【0032】本発明の第2の例示型処理装置は、第1の
例示型処理装置において、前記オブジェクトの列の任意
の位置から部分列を抽出し、抽出した部分列の前後の位
置の部分列の特徴に基づいて、該抽出した部分列を前記
変更操作の対象とするか否かを判断する部分列解釈手段
を備え、前記中央制御手段が、前記部分列解釈手段が前
記変更操作の対象であると判断した部分列に対して、変
更操作を繰り返し実行することを特徴とする。
A second exemplary processing apparatus according to the present invention is the first exemplary processing apparatus according to the first exemplary processing apparatus, wherein a partial sequence is extracted from an arbitrary position of the object sequence, and a partial sequence at a position before and after the extracted partial sequence is extracted. A subsequence interpreting means for judging whether or not the extracted subsequence is to be subjected to the change operation, based on the characteristics of the above, wherein the central control means determines that the subsequence interpreter is the object of the change operation. A change operation is repeatedly performed on a subsequence determined to be present.

【0033】本発明の第3の例示型処理装置は、第2の
例示型処理装置において、前記部分列解釈手段が、前記
オブジェクトの列の任意の位置から抽出した部分列の前
後の位置の部分列の重要度を求め、重要度の高い部分列
が隣接する前記抽出した部分列を前記変更操作の対象と
すると判断することを特徴とする。
A third exemplary processing apparatus according to the present invention is the second exemplary processing apparatus according to the second exemplary processing apparatus, wherein the subsequence interpreting means includes a portion at a position before and after a subsequence extracted from an arbitrary position in the object column. It is characterized in that the importance of a column is obtained, and it is determined that the extracted subsequence adjacent to a subsequence having a higher importance is to be subjected to the change operation.

【0034】本発明の第4の例示型処理装置は、第2ま
たは第3の例示型処理装置において、前記オブジェクト
の列の内、前記部分列解釈手段が前記変更操作の対象で
あると判断した部分列の位置から予め設定した距離の位
置にある部分列を前記変更操作の対象とする部分列位置
間関係解釈手段を備え、前記中央制御手段が、前記部分
列解釈手段および前記部分列位置間関係解釈手段が前記
変更操作の対象であると判断した部分列に対して、変更
操作を繰り返し実行することを特徴とする。
According to a fourth exemplary processing device of the present invention, in the second or third exemplary processing device, the subsequence interpreting means of the object sequence is determined to be the object of the change operation. A partial sequence located at a position at a preset distance from the position of the partial sequence; and a partial column position relationship interpreting unit for performing the change operation, wherein the central control unit determines whether the partial sequence is between the partial sequence interpreting unit and the partial column position. The change operation is repeatedly performed on the partial sequence determined to be the target of the change operation by the relation interpretation means.

【0035】本発明の第1の記録媒体は、予め記憶され
たオブジェクトの列に含まれる部分列に対する変更操作
の情報に基づいて、前記オブジェクトの列に含まれる部
分列に対する変更操作を繰り返し実行する処理をデータ
処理装置に行わせるためのプログラムを記録したことを
特徴とする。
The first recording medium of the present invention repeatedly executes a change operation on a subsequence included in a column of an object based on information on a change operation on a subsequence included in a column of an object stored in advance. A program for causing a data processing device to perform processing is recorded.

【0036】本発明の第2の記録媒体は、オブジェクト
の列の任意の位置から部分列を抽出し、抽出した部分列
の前後の位置の部分列の特徴に基づいて、該抽出した部
分列を変更操作の対象とするか否かを判断する判断処理
と、変更操作の対象であると判断した部分列に対して、
予め記憶された部分列に対する変更操作の情報に基づい
て、変更操作を繰り返し実行する処理とをデータ処理装
置に行わせるためのプログラムを記録したことを特徴と
する。
According to the second recording medium of the present invention, a partial sequence is extracted from an arbitrary position in a sequence of objects, and the extracted partial sequence is extracted based on the characteristics of the partial sequence before and after the extracted partial sequence. A judgment process of judging whether or not to be a target of a change operation, and a subsequence determined to be a target of a change operation,
A program for causing a data processing apparatus to perform a process of repeatedly executing a change operation based on information of a change operation on a partial sequence stored in advance is recorded.

【0037】本発明の第3の記録媒体は、第2の記録媒
体において、前記判断処理は、前記オブジェクトの列の
任意の位置から抽出した部分列の前後の位置の部分列の
重要度を求め、重要度の高い部分列が隣接する前記抽出
した部分列を前記変更操作の対象とすると判断すること
を特徴とする。
In a third recording medium according to the present invention, in the second recording medium, the determination processing determines the importance of a partial sequence at a position before and after a partial sequence extracted from an arbitrary position of the object sequence. And determining that the extracted subsequence adjacent to a subsequence having a higher importance is to be the target of the change operation.

【0038】本発明の第4の記録媒体は、第2または第
3の記録媒体において、前記判断処理において変更操作
の対象と判断した部分列と、該部分列の位置から予め設
定した距離の位置にある部分列とを変更操作の対象と
し、変更操作を繰り返し実行する処理をデータ処理装置
に行わせるためのプログラムを記録したことを特徴とす
る。
A fourth recording medium according to the present invention is the recording medium according to the second or third recording medium, wherein a sub-sequence determined to be an object of a change operation in said judgment processing and a position at a predetermined distance from the position of said sub-sequence And a program for causing the data processing apparatus to perform a process of repeatedly executing the change operation is recorded.

【0039】[0039]

【発明の実施の形態】次に本発明の第1の実施の形態に
ついて図面を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, a first embodiment of the present invention will be described in detail with reference to the drawings.

【0040】図1を参照すると、本発明の第1の実施の
形態は、利用者入出力手段101、アプリケーション観
察制御手段102、オブジェクト解釈手段103、解釈
重要度評価手段104、部分列解釈手段105、オブジ
ェクト間関係解釈手段106、部分列内容間関係解釈手
段107、部分列位置間関係解釈手段108、例記憶手
段109、および中央制御手段110を含む。
Referring to FIG. 1, a first embodiment of the present invention comprises a user input / output unit 101, an application observation control unit 102, an object interpretation unit 103, an interpretation importance evaluation unit 104, and a subsequence interpretation unit 105. , An inter-object relation interpreting means 106, a partial sequence content inter-relation interpreting means 107, a partial sequence positional inter-relation interpreting means 108, an example storage means 109, and a central control means 110.

【0041】利用者入出力手段101によって、利用者
は例を示したり、代行を指示したり、取り消しを指示し
たりする。アプリケーション観察制御手段102によっ
て、アプリケーションの作業対象がオブジェクトの列と
して表現されて観察され、またオブジェクトの列に対す
る操作としてアプリケーションが制御される。オブジェ
クト解釈手段103によって、複数のオブジェクトが共
通に備える特徴すなわちそれらのオブジェクトの解釈が
調べられる。解釈重要度評価手段104によって、オブ
ジェクトの解釈の重要度が評価される。部分列解釈手段
105によって、複数の部分列が共通に備える特徴すな
わち部分列の解釈が調べられる。ここで部分列とは、あ
るオブジェクトの列の一部分のことを言う。部分列の一
部分もまた部分列である。解釈は、元になる列の中から
それらの部分列を探し出すのに有効な特徴の集合であ
る。オブジェクト間関係解釈手段106によって、オブ
ジェクトの複数の対に共通な、対の一方をもう一方に変
換する規則すなわちオブジェクトの間の関係が調べられ
る。部分列内容間関係解釈手段107によって、部分列
の複数の組において、組の中の一つの部分列を、同じ組
の中の部分列の部分列を変換したものや固定値を持つ列
を組み合わせることによって構成する方法のうち、全て
の組に共通なもの、すなわち部分列の内容間の関係が調
べられる。部分列位置間関係解釈手段108によって、
部分列の位置の複数の対に共通な、対の一方をもう一方
に変換する規則すなわち部分列の位置の間の関係が解釈
される。例記憶手段109によって、例として与えられ
た部分列に関する情報が保持される。中央制御手段11
0によって、全体が制御される。
By the user input / output means 101, the user gives an example, instructs substitution, or instructs cancellation. The application observation control unit 102 observes the work target of the application expressed as a sequence of objects, and controls the application as an operation on the sequence of objects. The object interpreting means 103 examines the features of a plurality of objects in common, that is, the interpretation of those objects. The interpretation importance evaluation means 104 evaluates the importance of the interpretation of the object. The subsequence interpreting means 105 examines the features of the plurality of subsequences in common, ie, the interpretation of the subsequences. Here, the subsequence means a part of a column of a certain object. A part of the subsequence is also a subsequence. Interpretation is a set of features that are useful for finding those subsequences in the underlying sequence. The inter-object relationship interpreting means 106 examines a rule common to a plurality of pairs of objects to convert one of the pairs into the other, that is, the relationship between the objects. In a plurality of sets of subsequences, one subsequence of the set is combined with a subsequence of a subsequence of a subsequence in the same set or a column having a fixed value by a plurality of sets of subsequences by the subsequence content relation interpretation means 107 Among them, the method common to all the sets, that is, the relation between the contents of the subsequences is examined. By the substring position relationship interpreting means 108,
The rules for converting one of the pairs to the other, ie, the relationship between the positions of the subsequences, common to the multiple pairs of subsequence positions are interpreted. The example storage unit 109 holds information on a partial sequence given as an example. Central control means 11
0 controls the whole.

【0042】次に、本発明の第1の実施の形態の動作に
ついて、図1〜図5を参照して詳細に説明する。
Next, the operation of the first embodiment of the present invention will be described in detail with reference to FIGS.

【0043】本発明の例示型処理装置は、利用者が示し
た操作の例に基づいて、残りの作業を代行する。対象と
なるのは、オブジェクトの、必要ならば複数の部分列に
着目して、それらの部分列を変更するという操作を繰り
返すことにより達成できる作業である。利用者が最初の
幾つかの操作の例を示すと、本装置は残りの作業を代行
する。
The exemplary processing apparatus of the present invention substitutes for the remaining work based on the example of the operation indicated by the user. The target is an operation that can be achieved by repeating an operation of changing the subsequences by focusing on a plurality of subsequences of the object if necessary. When the user gives an example of the first few operations, the device takes over the rest of the work.

【0044】初めに、本装置の全体の動作について説明
する。図2は本発明の実施の形態の動作の例を説明する
ための流れ図である。
First, the overall operation of the present apparatus will be described. FIG. 2 is a flowchart for explaining an example of the operation of the exemplary embodiment of the present invention.

【0045】利用者は利用者入力手段(図1の101)
を使用して、操作において着目すべき部分列を選択する
(ステップ201)。必要ならば、複数の部分列を選択
することができる。ただし、ある一つの作業において
は、すべての操作において、着目する部分列の数は同一
でなければならない。また、ある操作において着目した
部分列が、べつの操作において着目した部分列のどれに
対応するのかを知ることができなければならない。その
ため、例えば、対応する部分列は、それぞれの操作内に
おいて同一の順序で選択されなければならないという制
約が設けられることがある。
The user enters user input means (101 in FIG. 1).
Is used to select a subsequence to be noted in the operation (step 201). If necessary, multiple subsequences can be selected. However, in one operation, the number of focused partial columns must be the same in all operations. Further, it is necessary to be able to know which partial sequence of interest in one operation corresponds to any of the partial sequences of interest in another operation. Thus, for example, there may be a constraint that the corresponding sub-strings must be selected in the same order within each operation.

【0046】続いて、利用者は選択した部分列を変更す
る(ステップ202)。変更の結果は、着目している部
分列の部分列を取り出して必要ならば変換を加えたもの
や、固定値を持つオブジェクトの列を順に組み合わせる
ことにより作り出せるものでなければならない。
Subsequently, the user changes the selected partial sequence (step 202). The result of the change must be such that the subsequence of the subsequence of interest can be extracted and converted if necessary, or can be created by sequentially combining columns of objects having fixed values.

【0047】変更が終了すると、本装置は、着目すべき
部分列とその変更後の値を例として例記憶手段(図1の
109)によって記憶する(ステップ203)。
When the change is completed, the present apparatus stores the partial sequence to be focused on and the value after the change by the example storage means (109 in FIG. 1) (step 203).

【0048】そして、操作を代行するために、記憶され
た例を解釈する(ステップ204)。例の解釈のための
動作については後述する。
Then, the stored example is interpreted to perform the operation (step 204). The operation for interpreting the example will be described later.

【0049】利用者により作業の代行が指示されると
(ステップ205)、解釈に基づいて作業の一部または
全部を代行する(ステップ207)。代行のための動作
については後述する。作業が終了していない場合(ステ
ップ208)には、さらに例を示したり、さらに代行を
指示しても良い。代行が利用者の意図に反していた場合
には、利用者はそれを取り消す。
When the user instructs to perform work (step 205), part or all of the work is performed based on the interpretation (step 207). The operation for the proxy will be described later. If the work has not been completed (step 208), further examples may be shown or further substitutions may be instructed. If the agent violates the user's intention, the user cancels it.

【0050】代行を指示しない場合や、代行を取り消し
た場合で、かつ終了が指示されていない場合には(ステ
ップ206)、利用者は再び例を示す。例を多く示すこ
とにより、より利用者の意図に沿った解釈が行われる可
能性が高くなる。このように、本装置には、例が不十分
であることが判明した時点で追加の例を提示すれば良い
という利点がある。
If the proxy is not instructed or the proxy is canceled and the termination is not instructed (step 206), the user gives an example again. By showing more examples, it is more likely that the interpretation will be performed according to the intention of the user. Thus, the device has the advantage that additional examples may be presented when the examples prove to be insufficient.

【0051】なお、図2には示されていないが、一度解
釈が得られれば、利用者は部分列の選択や変更の代行を
任意の時点で指示することができる。例えば、選択を途
中まで進めた時点で代行を指示して残りの部分列を選択
させたり、続いて変更させたりすることができる。
Although not shown in FIG. 2, once the interpretation is obtained, the user can instruct the selection or change of the substring at any time. For example, when the selection is advanced halfway, a proxy can be instructed to select the remaining sub-sequences, or subsequently, change the sub-sequences.

【0052】次に、例の解釈のための動作について説明
する。例の解釈は、どのような部分列を選択すれば良い
のかの解釈と、選択した部分列をどのように変更すれば
良いのかの解釈とからなる。選択する部分列の解釈は、
部分列解釈手段(図1の105)と、部分列位置間関係
解釈手段(図1の108)により行われる。変更の方法
の解釈は、部分列内容間関係解釈手段(図1の107)
により行われる。
Next, the operation for interpreting the example will be described. Interpretation of the example includes interpretation of what substring should be selected and interpretation of how to change the selected substring. The interpretation of the selected substring is
This is performed by the partial column interpretation means (105 in FIG. 1) and the partial column position relationship interpretation means (108 in FIG. 1). Interpretation of the method of change is performed by means of a relation interpretation between subsequence contents (107 in FIG. 1).
It is performed by

【0053】部分列解釈手段の動作の流れを図3に示
す。
FIG. 3 shows a flow of the operation of the subsequence interpreting means.

【0054】まず、その部分列を含むオブジェクトの列
において、その部分列の開始点付近のオブジェクトの解
釈を求める(ステップ301)。オブジェクトの解釈
は、あらかじめ与えられた条件を満たすかどうかによっ
て行う。例えば、操作の例が2つ与えられており、第1
の例の第1の部分列の開始点の直前のオブジェクトが条
件Aと条件Bと条件Cを満たしており、第2の例の第1
の部分列の開始点の直前のオブジェクトが条件Cと条件
Dを満たしている場合、部分列の開始点の直前のオブジ
ェクトは条件Cを満たすものであると解釈される。同様
の解釈を、開始点の前後幾つかのオブジェクトに対して
行う。解釈を行うオブジェクトの個数は、固定でも良い
し、与えられた例に応じて変化させても良い。例えば、
ある操作の例として、オブジェクトの列の先頭から3個
目のオブジェクトから始まる部分列が指定された場合、
開始点より3個以上前のオブジェクトについて解釈して
も意味がないので、2個前までとする。
First, in a sequence of objects including the subsequence, interpretation of an object near the start point of the subsequence is determined (step 301). Interpretation of an object depends on whether a given condition is satisfied. For example, two examples of operations are given,
The object immediately before the start point of the first sub-sequence of the example of the example satisfies the condition A, the condition B, and the condition C, and the first object of the second example
If the object immediately before the start point of the partial sequence satisfies the conditions C and D, it is interpreted that the object immediately before the start point of the partial sequence satisfies the condition C. A similar interpretation is performed for some objects before and after the starting point. The number of objects to be interpreted may be fixed or may be changed according to a given example. For example,
As an example of an operation, if a subsequence starting from the third object from the beginning of the object column is specified,
There is no point in interpreting an object three or more objects before the start point, so it is set to two objects before.

【0055】次に、各オブジェクトの解釈の重要度を求
める(ステップ302)。利用者がどのオブジェクトに
着目して開始点を決定しているかの推測の精度を上げる
ためである。利用者が着目している可能性が高いと思わ
れるものに高い重要度を与える。例えば、開始点に近い
オブジェクトに関する解釈や、成立することがまれな解
釈は重要度が高いとみなす。具体的には、開始点からの
距離が短いほど、また作業対象のオブジェクト中に占め
る、その解釈を成立させるオブジェクトの割合が小さく
なるほど重要度を高くする。なお、部分列を含むオブジ
ェクトの列の先頭と末尾に、先頭と末尾を示す特殊なオ
ブジェクトを付け加えてから解釈することにより、例え
ば先頭から2オブジェクト目から末尾から3オブジェク
ト目までの部分列といった解釈も可能になる。
Next, the importance of the interpretation of each object is determined (step 302). This is to increase the accuracy of estimating which object the user focuses on and determines the starting point. Give a high degree of importance to those that are likely to be focused on by the user. For example, an interpretation related to an object close to the starting point or an interpretation rarely established is regarded as having high importance. Specifically, the importance becomes higher as the distance from the start point becomes shorter, and as the ratio of the object that satisfies the interpretation to the work object becomes smaller. It should be noted that by interpreting after adding special objects indicating the head and tail to the head and tail of the object column including the subsequence, for example, the interpretation such as the subsequence from the second object from the head to the third object from the tail is performed. Also becomes possible.

【0056】続いて、重要度が高い順に、各オブジェク
トの解釈を開始点の解釈に加えていく(ステップ30
3)。例えば、開始点の直前のオブジェクトの解釈が、
条件Aを満たすというものであり、かつその解釈の重要
度が他の位置のオブジェクトの解釈より高い場合には、
開始点の解釈として、「直前のオブジェクトが条件Aを
満たす」が仮定される。
Subsequently, the interpretation of each object is added to the interpretation of the starting point in the descending order of importance (step 30).
3). For example, the interpretation of the object just before the starting point is
If the condition A is satisfied and the importance of the interpretation is higher than the interpretation of the object at another position,
As the interpretation of the starting point, it is assumed that “the immediately preceding object satisfies the condition A”.

【0057】その後、その解釈で、該当しない点を誤っ
て開始点と判定しないかどうかを調べる(ステップ30
4)。例えば、利用者が第1の部分列を選択する際に、
必ずオブジェクトの列の先頭から末尾に向かって選択し
ていくという規則を設ければ、利用者が第1の部分列と
して選択しなかった領域を判別することができる。その
ような領域に含まれる点が、現在の開始点の解釈を満た
していないかどうかを調べるのである。今の例で言え
ば、利用者が選択しなかった領域に、条件Aを満たすオ
ブジェクトが存在しないことを調べる。
After that, it is checked whether or not a non-applicable point is erroneously determined as a start point in the interpretation (step 30).
4). For example, when the user selects the first substring,
By providing a rule that selection is always performed from the beginning to the end of a column of objects, it is possible to determine an area that is not selected by the user as the first partial column. It examines whether the points contained in such an area do not satisfy the interpretation of the current starting point. In the present example, it is checked that no object satisfying the condition A exists in an area not selected by the user.

【0058】もし、現在の解釈では、選択されなかった
領域の部分列を誤って選択してしまうことが判明した場
合には(ステップ305)、オブジェクトの解釈を追加
して誤って選択しないようにすることを試みる。付け加
えることができるオブジェクトの解釈が残っている場合
には(ステップ306)、次に高い重要度を持つオブジ
ェクトの解釈を開始点の解釈に付け加えて、同様の調査
を繰り返す。残っていない場合には、解釈失敗として終
了する。
If it is found in the current interpretation that a subsequence of a non-selected area is erroneously selected (step 305), the interpretation of the object is added to prevent the erroneous selection. Try to do. If additional object interpretations remain (step 306), the same examination is repeated, adding the interpretation of the next highest importance object to the starting point interpretation. If not, the process ends as an interpretation failure.

【0059】正しく判定できるようになったら、開始点
の解釈に含まれている各オブジェクトの解釈について、
その重要度が低い順に、それを取り除いても正しく判定
できるかどうかを調べ、できるようであれば取り除く
(ステップ307)。これにより、余分な解釈を取り除
くことができる。
When the judgment can be correctly made, the interpretation of each object included in the interpretation of the starting point is as follows.
In the order of the degree of importance, it is checked whether it can be correctly determined even if it is removed, and if it can be removed, it is removed (step 307). This can eliminate extra interpretation.

【0060】開始点を正しく判定できるようになった
ら、同様にして終了点の解釈を求める(ステップ30
8)。終了点の解釈が成功した場合には(ステップ30
9)、解釈成功として終了する。そうでない場合には、
解釈失敗として終了する。
When the start point can be correctly determined, the interpretation of the end point is similarly determined (step 30).
8). If the interpretation of the end point is successful (step 30
9), end as a successful interpretation. If not,
Terminate as interpretation failure.

【0061】部分列位置間関係解釈手段の動作は以下の
通りである。ある部分列の位置を、それが選択される以
前に選択された部分列の位置に、あらかじめ定義されて
いる幾つかの変換を適用することによって導き出すこと
ができるかを調べる。その変換が全ての操作例において
共通であれば、それらの部分列の位置間の関係が求まっ
たことになる。例えば、「末尾方向にxオブジェクトだ
けずらす」という変換が定義されているという条件の下
で、2つの作業例が与えられているとする。第1の例の
第2の部分列の開始点は、第1の部分列の開始点を末尾
方向に20オブジェクトずらしたものに一致し、また第
1の部分列の終了点を末尾方向に1ずらしたものにも一
致するとする。第2の例の第2の部分列の開始点は、第
1の部分列の開始点を末尾方向に16オブジェクトずら
したものに一致し、また第1の部分列の終了点を末尾方
向に1ずらしたものにも一致するとする。この場合、第
2の部分列の開始点の位置は、第1の部分列の終了点を
末尾方向に1オブジェクトずらしたものと解釈される。
The operation of the partial column position relationship interpreting means is as follows. Find out if the position of a subsequence can be derived by applying some predefined transformation to the position of the subsequence selected before it was selected. If the conversion is common to all the operation examples, it means that the relationship between the positions of the subsequences has been obtained. For example, it is assumed that two work examples are given under the condition that the conversion “shift by x objects toward the end” is defined. The start point of the second sub-sequence in the first example is equal to the start point of the first sub-sequence shifted by 20 objects toward the end, and the end point of the first sub-sequence is set at 1 end toward the end. Assume that it matches the shifted one. The start point of the second sub-sequence in the second example is equal to the start point of the first sub-sequence shifted by 16 objects in the end direction, and the end point of the first sub-sequence is set to 1 end in the end direction. Assume that it matches the shifted one. In this case, the position of the start point of the second sub-sequence is interpreted as the end point of the first sub-sequence shifted by one object toward the end.

【0062】部分列内容間関係解釈手段の動作の流れを
図4に示す。部分列内容間関係解釈手段は、ある部分列
の変更後の状態を、その変更前に選択された部分列の一
部分を取り出して変換したものや、固定値を持つオブジ
ェクトの列の組み合わせとして解釈できるかどうかを調
べる。
FIG. 4 shows the flow of the operation of the subsequence content relationship interpreting means. The subsequence content relationship interpreting means can interpret the state after the change of a certain subsequence as a part obtained by extracting a part of the subsequence selected before the change and converting it, or as a combination of a series of objects having fixed values. Find out if.

【0063】まず、出力部分列、すなわち変更後の部分
列の先頭に着目する(ステップ401)。
First, attention is paid to the output subsequence, that is, the head of the subsequence after the change (step 401).

【0064】続いて、着目点のオブジェクトを、固定値
を持つオブジェクトからなる長さ1の部分列として説明
できるかを調べる(ステップ402)。
Next, it is checked whether the object at the point of interest can be described as a subsequence of length 1 composed of objects having fixed values (step 402).

【0065】説明できる場合には(ステップ403)、
候補となった部分列の長さ(この場合は1)だけ着目点
を末尾方向に移動し(ステップ407)、残りの部分に
ついて同様に解釈を行う(ステップ408)。
If it can be explained (step 403),
The point of interest is moved toward the end by the length of the candidate partial sequence (in this case, 1) (step 407), and the remaining part is similarly interpreted (step 408).

【0066】説明できない場合には(ステップ40
3)、出力部分列の変更前に選択された部分列、すなわ
ち入力部分列の、さらにその部分列のうち、適当に変換
すれば出力部分列の着目点から始まる部分列に一致させ
ることができ、かつ入力部分列中における開始点と終了
点の解釈が可能で、さらにその変換と解釈が全ての操作
例に共通しているものが存在するかどうかを探索する
(ステップ404)。
If it cannot be explained (step 40)
3) The sub-sequence selected before the change of the output sub-sequence, that is, the input sub-sequence, can be matched with the sub-sequence starting from the point of interest of the output sub-sequence by appropriately converting the sub-sequence. In addition, a search is made to determine whether there is a start point and an end point in the input sub-sequence that can be interpreted, and whether the conversion and interpretation are common to all operation examples (step 404).

【0067】探索が失敗した場合には(ステップ40
5)、解釈失敗として終了する。
If the search fails (step 40)
5), terminate as an interpretation failure.

【0068】成功した場合には、探索された各部分列の
優先度を計算し、優先度が高い順に候補とする(ステッ
プ406)。優先度は、例えば部分列が長くなるほど高
くなるようにする。
If successful, the priority of each searched partial string is calculated, and candidates are set in descending order of priority (step 406). The priority is set higher, for example, as the partial sequence becomes longer.

【0069】そして、その候補の長さの分だけ出力部分
列の着目点を末尾方向に移動し(ステップ407)、残
りの部分について同様に解釈を行う(ステップ40
8)。
Then, the point of interest in the output sub-sequence is moved toward the end by the length of the candidate (step 407), and the remaining part is similarly interpreted (step 40).
8).

【0070】解釈が成功した場合には(ステップ40
9)、解釈成功として終了する。失敗した場合で、かつ
部分列の候補が残っていない場合には(ステップ41
0)、解釈失敗として終了する。候補が残っている場合
には、着目点の位置を元に戻し(ステップ411)、残
っている候補のうち最も優先度が高いものを選択して、
同様の作業を繰り返す。
If the interpretation is successful (step 40
9), end as a successful interpretation. If it fails and no subsequence candidate remains (step 41
0), end as interpreting failure. If there are remaining candidates, the position of the point of interest is returned to the original position (step 411), and the remaining candidate having the highest priority is selected.
Repeat the same operation.

【0071】この例では、出力部分列の先頭に着目し、
末尾方向に着目点をずらしながら解釈を進めたが、反対
に、出力部分列の末尾に着目し、先頭方向に着目点をず
らしながら解釈を進めても良い。
In this example, focusing on the head of the output subsequence,
Although the interpretation is advanced while shifting the point of interest in the tail direction, the interpretation may be advanced while focusing on the tail of the output subsequence and shifting the point of interest in the head direction.

【0072】最後に、利用者により作業の代行が指示さ
れた場合の動作について説明する。図5は代行の動作の
例を説明するための流れ図である。
Finally, the operation in the case where the user instructs to perform work substitution will be described. FIG. 5 is a flowchart for explaining an example of the proxy operation.

【0073】まず、各部分列の解釈に基づいて、着目す
べき部分列を選択する(ステップ501)。具体的に
は、作業の対象となるオブジェクトの列の部分列のう
ち、各部分列の解釈に合致するものを探索する。
First, a sub-sequence to be focused on is selected based on the interpretation of each sub-sequence (step 501). Specifically, a search is made for a substring of the column of the object to be worked which matches the interpretation of each substring.

【0074】部分列の解釈に基づいては選択できなかっ
た部分列は、部分列位置間関係に基づいて選択する(ス
テップ502)。それでも選択できなかった部分列があ
る場合には(ステップ503)、代行失敗として終了す
る。
The subsequences that could not be selected based on the interpretation of the subsequences are selected based on the relationship between the subsequence positions (step 502). If there is a subsequence that could not be selected (step 503), the process ends as a proxy failure.

【0075】選択できた場合には、部分列内容間関係解
釈に基づいて、各部分列の内容を変更する。正しく変更
できなかった部分列がある場合には(ステップ50
5)、代行失敗として終了する。
If the selection is successful, the contents of each subsequence are changed based on the interpretation of the relation between the contents of the subsequences. If there is a partial string that could not be changed correctly (step 50
5) The process ends as a proxy failure.

【0076】作業が完了していない場合には(ステップ
506)、以上の動作を繰り返す。完了した場合には、
代行成功として終了する。
If the operation is not completed (step 506), the above operation is repeated. When completed,
The process ends as a proxy success.

【0077】次に、本発明の他の実施の形態について図
6を参照して説明する。
Next, another embodiment of the present invention will be described with reference to FIG.

【0078】本発明の他の実施の形態は、プログラムを
記録した記録媒体602を備える。この記録媒体602
は磁気ディスク、半導体メモリその他の記録媒体であっ
てよい。プログラムは記録媒体602からデータ処理装
置601に読み込まれ、データ処理装置601の動作を
制御する。データ処理装置601はプログラムの制御に
より、前述の実施の形態の場合と同様の動作を行う。
Another embodiment of the present invention includes a recording medium 602 on which a program is recorded. This recording medium 602
May be a magnetic disk, a semiconductor memory, or another recording medium. The program is read from the recording medium 602 to the data processing device 601 and controls the operation of the data processing device 601. The data processing device 601 performs the same operation as that in the above-described embodiment under the control of the program.

【0079】[0079]

【実施例】本発明の実施の形態の実施例の動作を詳細に
説明する。
The operation of the embodiment of the present invention will be described in detail.

【0080】本発明をワード・プロセッサに適用した例
について説明する。作業対象の文書を図7(a)に、そ
のオブジェクトの列としての表現を図7(b)に示す。
この例では、文書を文字オブジェクトの列として表現し
ている。この他に、文書を単語オブジェクトの列として
表現することも可能である。
An example in which the present invention is applied to a word processor will be described. FIG. 7A shows a document to be worked on, and FIG. 7B shows a representation of the object as a sequence of objects.
In this example, the document is represented as a sequence of character objects. Alternatively, the document can be represented as a sequence of word objects.

【0081】本装置を用いて作業を行うには、まず利用
者が操作の例を示す。初めに、第1の操作の例において
着目すべき部分列を利用者が選択する。この例では、第
1の部分列は作業例毎に必ず文書の先頭から順に選択す
ることとする。選択の例を図8(a)に示す。図中、第
1の部分列として選択された部分(Ayrton…ca
r)を下線で、第2の部分列として選択された部分(文
書末尾付近)を二重下線で示している。続いて、利用者
は部分列を変更する。変更の例を図8(b)に示す。こ
の例では、第2の部分列のみを変更している。同様にし
て、利用者は第2の例を示す(図8(c))。すると、
本装置は例の解釈を行う。
In order to perform work using the present apparatus, first, an example of an operation by a user will be described. First, the user selects a partial sequence to be focused on in the first operation example. In this example, the first subsequence is always selected from the top of the document for each work example. FIG. 8A shows an example of the selection. In the figure, the part (Ayrton ... ca) selected as the first partial row
r) is underlined, and the portion selected as the second subsequence (near the end of the document) is double underlined. Subsequently, the user changes the subsequence. FIG. 8B shows an example of the change. In this example, only the second sub-sequence is changed. Similarly, the user shows a second example (FIG. 8C). Then
The apparatus interprets the example.

【0082】まず、各部分列の解釈を行う。First, each subsequence is interpreted.

【0083】部分列の解釈は、開始点の解釈と終了点の
解釈とからなる。第1の部分列の開始点の解釈を求める
ために、その点の近傍のオブジェクトの解釈を求める。
それらの解釈を図9(a)に示す。それぞれの解釈の重
要度は、オブジェクト単位で計った開始点からの距離を
d、解釈をeとして、例えばD(d)*I(e)とす
る。ここでD(d)=0.1+0.9*exp(−di
st*dist/32)、I(e)=−log(N
(e)/N(total))である。N(e)はeを満
たすオブジェクトの数、N(total)はオブジェク
トの総数である。0.1や0.9、32などのパラメー
タの値や、関数形は適用分野によって変更しても良い。
D(d)は開始点に近いほど大きくなり、またI(e)
はeが成り立つことが少ない解釈であるほど大きくな
る。この式に従って解釈の重要度を計算すると、「開始
点の直後のオブジェクトが大文字である」という解釈が
もっとも重要となる。そこで、開始点の解釈として、
「直後のオブジェクトが大文字である。」が仮定され
る。この解釈によって、開始点が存在しないはずの領域
に誤って開始点を発見することが無ければ、仮定が正し
いことになる。この例では、第1の部分列は必ず文書の
先頭から順に選択することにしているので、第1の操作
例の第1の部分列の開始点の直後から、第2の操作例の
第1の部分列の直前までの領域には、第1の部分列の開
始点は存在しないことになる。つまり、Ayrtonの
Aの直後からJimmyのJの前の空白の直前までの領
域には第1の部分列の開始点は存在しない。「直後のオ
ブジェクトが大文字である」という条件を満たす点はそ
の領域の中に含まれていないので、開始点の解釈として
は「直後のオブジェクトが大文字である」で十分である
ことになる。
The interpretation of the subsequence includes the interpretation of the start point and the interpretation of the end point. To determine the interpretation of the starting point of the first subsequence, the interpretation of the objects near that point is determined.
The interpretation is shown in FIG. The importance of each interpretation is, for example, D (d) * I (e), where d is the distance from the starting point measured in object units and e is the interpretation. Here, D (d) = 0.1 + 0.9 * exp (−di
st * dist / 32), I (e) =-log (N
(E) / N (total)). N (e) is the number of objects that satisfy e, and N (total) is the total number of objects. The values of parameters such as 0.1, 0.9, and 32 and the function form may be changed depending on the application field.
D (d) increases as it approaches the starting point, and I (e)
Becomes larger as the interpretation that e does not hold holds. When calculating the importance of the interpretation according to this formula, the interpretation that "the object immediately after the starting point is uppercase" is the most important. So, as an interpretation of the starting point,
It is assumed that "the object immediately after is uppercase." With this interpretation, the assumption is correct if the start point is not erroneously found in a region where the start point should not exist. In this example, the first sub-sequence is always selected in order from the beginning of the document. Therefore, immediately after the start point of the first sub-sequence of the first operation example, the first sub-sequence of the second operation example is selected. The start point of the first partial sequence does not exist in the region immediately before the partial sequence of. That is, the start point of the first partial sequence does not exist in the area from immediately after A of Ayrton to immediately before the blank before J of Jimmy. Since a point satisfying the condition that the "immediate object is uppercase" is not included in the area, "intermediate object is uppercase" is sufficient to interpret the starting point.

【0084】続いて、第1の部分列の終了点の解釈を求
めるために、その点の近傍のオブジェクトの解釈を求め
る。それらの解釈を図9(b)に示す。「直後のオブジ
ェクトが”.”である」という解釈は「直前のオブジェ
クトが”r”である」という解釈よりも高い重要度を持
つ。両者とも点からの距離は等しいが、文書に含まれ
る”.”の数は”r”の数よりも少ないので、前者が成
り立つ確率のほうが低いからである。そこで、終了点の
解釈として、「直後のオブジェクトが”.”である」が
仮定される。終了点が存在しないはずの領域は、第1の
部分列の開始点からその終了点の直前までであるが、上
で仮定された解釈によって、その領域に誤って終了点を
発見してしまうことはない。従って、終了点の解釈は
「直後のオブジェクトが”.”である」となる。
Subsequently, in order to determine the interpretation of the end point of the first subsequence, the interpretation of the object near the point is determined. These interpretations are shown in FIG. "The object immediately after." The interpretation of "is" is more important than the interpretation of "the previous object is" r "". Although both have the same distance from the point, the number of “.” Included in the document is smaller than the number of “r”, so the probability that the former holds is lower. Therefore, as the interpretation of the end point, "the object immediately after is". "Is" is assumed. The area where the end point should not exist is from the start point of the first subsequence to immediately before the end point, but the interpretation assumed above may cause the end point to be found in the area by mistake. There is no. Therefore, the interpretation of the end point is "the object immediately after". "Is".

【0085】この例では、第2の部分列の解釈は失敗す
る。そこで、部分列位置間関係が求められる。今、他の
変換に加えて、「部分列を1行下へ移動する」という変
換があらかじめ定義されているとすると、「第nの操作
例の第2の部分列の位置は、第n−1の操作例の変更前
の第2の部分列を1行下へ移動したもの」という関係が
成立していることが見つけ出される。
In this example, the interpretation of the second subsequence fails. Therefore, the relationship between the sub-row positions is determined. Now, assuming that, in addition to the other conversions, the conversion “move the subsequence one row down” is defined in advance, the position of the second subsequence in the n-th operation example is n-th In which the second sub-column before the change in the first operation example has been moved down by one row. "

【0086】続いて、部分列内容間関係が解釈される。
第1の部分列は変更がないので、解釈は不要である。第
2の部分列について解釈するために、まず先頭に着目す
る。今、他の変換に加えて、「オブジェクトの文字コー
ドを1ずらす」、「オブジェクトを大文字にする」とい
う変換があらかじめ定義されているとする。「第nの操
作例の第2の部分列の先頭のオブジェクトは、第n−1
の操作例の第2の部分列の先頭のオブジェクトの文字コ
ードを1ずらしたもの」であることが判明する。2オブ
ジェクト目は「空白文字という固定値のオブジェクト」
であることがわかる。3オブジェクト目からは、「第1
の部分列の、開始点の直前が元の部分列の先頭で、終了
点の直後が空白文字オブジェクトである部分列を、大文
字に変換したもの」であることがわかる。その次には、
「固定値”−”を持つオブジェクト」、「固定値”−”
を持つオブジェクト」が続く。
Subsequently, the relationship between the contents of the subsequences is interpreted.
Since the first substring is unchanged, no interpretation is necessary. To interpret the second subsequence, first look at the beginning. Now, it is assumed that in addition to the other conversions, conversions such as “shift the character code of the object by one” and “capitalize the object” are defined in advance. "The head object of the second sub-sequence of the n-th operation example is the (n-1) -th
Is obtained by shifting the character code of the head object of the second subsequence of the second subsequence by one. " The second object is an object with a fixed value of a blank character
It can be seen that it is. From the third object, "1st
Is a substring obtained by converting the substring immediately before the start point to the beginning of the original substring and immediately after the end point to be a blank character object into uppercase. Then,
"Object with fixed value"-"", "Fixed value"-"
With ".

【0087】以降の部分は次のように解釈される。その
部分(DRIVING THE CAR、PLAYIN
G THE GUITAR)を調べると、第1の部分列
の末尾付近に位置する部分列(driving the
car、playingthe guitar)に
「大文字にする」という変換を適用したものに等しいこ
とが判明する。そこで、その末尾付近の文字列の解釈が
求められる。開始点の解釈としては、まず、最も重要度
が高いオブジェクトの解釈である、「2オブジェクト前
が”t”」が仮定される。しかし、その解釈では、第1
の操作例において誤ってAyrtonのnの直前を開始
点と判定してしまう。そこで、次に重要度が高いオブジ
ェクトの解釈である、「3オブジェクト前が”a”」が
追加される。そうすると、正しく判定できるようにな
る。続いて、余分な解釈が含まれていないかを調べる。
「2オブジェクト前が”t”」が余分である可能性があ
るが、それを取り除くとAyrton was goo
d...のgの直前の位置を誤って開始点と判定してし
まう。したがって、それを取り除くことはできない。終
了点についても同様に解釈すると、「直後が部分列の末
尾」が得られる。最終的に、「第1の部分列の、2オブ
ジェクト前が”t”でかつ3オブジェクト前が”a”の
点から、直後が部分列の末尾である点までの部分列を、
大文字に変換したもの」という解釈が得られる。
The subsequent parts are interpreted as follows. That part (DRIVING THE CAR, PLAYIN
When G THE GUIITAR is examined, a subsequence (driving the near) located near the end of the first subsequence is obtained.
It turns out that this is equivalent to applying a conversion of “uppercase” to “car, playing the guide”. Therefore, interpretation of the character string near the end is required. As the interpretation of the starting point, first, it is assumed that "t" is "2 objects before", which is the interpretation of the object having the highest importance. However, the interpretation states that
In the above operation example, the start point is erroneously determined immediately before n of Ayrton. Therefore, “a” before three objects, which is the interpretation of the object with the next highest importance, is added. Then, it can be determined correctly. Then, check for any extra interpretations.
There is a possibility that “t” before 2 objects may be extra, but if it is removed, Ayrton was goo
d. . . The position immediately before g is incorrectly determined as the start point. Therefore, it cannot be removed. If the end point is interpreted in the same manner, "immediately after is the end of the subsequence". Finally, the sub-sequence of the first sub-sequence from the point "t" before two objects and "a" before three objects to the point immediately following the end of the sub-sequence is:
Converted to uppercase ".

【0088】例の解釈が行われたので、利用者は代行を
指示することができる。選択の代行が指示されると、
「第1の部分列は、開始点の直後が大文字、終了点の直
後が”.”」という解釈より、Carl…athlet
icsが第1の部分列として選択され、「第nの操作例
の第2の部分列の位置は、第n−1の操作例の変更前の
第2の部分列を1行下へ移動したもの」という解釈よ
り、第2の操作例の変更前の第2の部分列を1行下へ移
動したものが第2の部分列として選択される(図10
(a))。変更が指示されると、第2の部分列が前述の
解釈に従って3 CARL−>ATHLETICSに変
更される(図10(b))。利用者は、残りの操作のす
べてをまとめて代行させることもできる(図10
(c))。
[0088] Now that the example has been interpreted, the user can instruct delegation. When the selection is instructed,
"In the first subsequence, capital letters immediately after the start point, and". From the interpretation of "", Carl… athlet
ics is selected as the first sub-column, and the position of the second sub-column in the n-th operation example is shifted down by one line from the second sub-column before the change in the (n-1) -th operation example. From the interpretation of “thing,” the second sub-column in which the second sub-column before the change in the second operation example is moved down by one row is selected as the second sub-column (FIG. 10).
(A)). When a change is instructed, the second partial sequence is changed to 3 CARL-> ATHLETICS in accordance with the above interpretation (FIG. 10B). The user can collectively perform all the remaining operations (see FIG. 10).
(C)).

【0089】[0089]

【発明の効果】第1の効果は、入力文字列中の、ある任
意文字列の一部分を使用するような変換規則を見つけ出
すことができるということである。
The first effect is that a conversion rule that uses a part of a certain character string in an input character string can be found.

【0090】その理由は、入力文字列中のどの部分を出
力文字列に含めるかを、どのような入力文字列に着目す
るのかと同じ方法を用いて解釈するからである。
The reason is that which part of the input character string is to be included in the output character string is interpreted by using the same method as for what kind of input character string is focused on.

【0091】第2の効果は、入力文字列中の任意文字列
を変換した後で他の文字列と組み合わせるような変換規
則を見つけ出すことができるということである。
The second effect is that a conversion rule that converts an arbitrary character string in an input character string and combines it with another character string can be found.

【0092】その理由は、オブジェクト間の関係を調べ
ながら、文字列間の関係を解釈するからである。
The reason is that the relation between character strings is interpreted while checking the relation between objects.

【0093】第3の効果は、複数の入力文字列から複数
の出力文字列が導かれるような作業を解釈することがで
きるということである。
The third effect is that it is possible to interpret an operation in which a plurality of output character strings are derived from a plurality of input character strings.

【0094】その理由は、複数の入力文字列と出力文字
列の関係を調べることができるからである。
The reason is that the relationship between a plurality of input character strings and output character strings can be checked.

【0095】第4の効果は、その前後の文字列により着
目すべき入力文字列が決定されるような作業を解釈する
ことができるということである。
The fourth effect is that it is possible to interpret a task in which the input character string to be focused on is determined by the character strings before and after it.

【0096】その理由は、文字列の解釈において、開始
点の前後の文字や終了点の前後の文字列を参照するから
である。
The reason is that in interpreting a character string, characters before and after the start point and character strings before and after the end point are referred to.

【0097】第5の効果は、入力文字列のパターンに、
入力文字列の例に共通な特徴のうち、重要であると考え
られるものを優先的に含めることができるということで
ある。
The fifth effect is that the pattern of the input character string
Among the common features in the example of the input character string, those that are considered important can be preferentially included.

【0098】その理由は、解釈が成立する確率や、その
解釈の対象となるオブジェクトの開始点あるいは終了点
からの距離を考慮して、各解釈の重要度を計算し、重要
度の高いものから順に、合致しないべきである文字列に
合致しなくなるまで、文字列の解釈に含めていくからで
ある。
The reason is that the importance of each interpretation is calculated in consideration of the probability of the interpretation being established and the distance from the start or end point of the object to be interpreted. This is because, in order, until the character string that should not match does not match any more, it is included in the interpretation of the character string.

【0099】第6の効果は、「ある種類に属する文字
列」という概念を含む入力文字列のパターンを解釈する
ことができるということである。
A sixth effect is that it is possible to interpret a pattern of an input character string including the concept of “a character string belonging to a certain type”.

【0100】その理由は、オブジェクトの解釈には、あ
る固定値を持つという条件だけではなく、ある種類に属
するという条件も用いることができるからである。
The reason is that not only a condition of having a fixed value but also a condition of belonging to a certain type can be used for interpretation of an object.

【0101】第7の効果は、内容ではなく、位置によっ
て着目すべき入力文字列を決定するような作業を解釈す
ることができるということである。
The seventh effect is that it is possible to interpret a task of determining an input character string to be focused on not by the content but by the position.

【0102】その理由は、オブジェクトの部分列間の位
置関係を解釈するからである。
The reason is that the positional relationship between the substrings of the object is interpreted.

【0103】第8の効果は、文字列を操作するシステム
以外にも適用可能であるということである。
The eighth effect is that the present invention can be applied to a system other than a system for operating a character string.

【0104】その理由は、文字列をオブジェクトの列と
して取り扱い、文字列に固有の知識を使用しないからで
ある。対象物をオブジェクトの列として表現できるもの
であれば、どのようなシステムに対しても本装置の手法
を適用することができる。
The reason is that a character string is handled as a sequence of objects, and knowledge unique to the character string is not used. The method of the present apparatus can be applied to any system as long as the object can be represented as a sequence of objects.

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

【図1】本発明の構成例を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration example of the present invention.

【図2】本発明の動作例の概略を示す流れ図である。FIG. 2 is a flowchart showing an outline of an operation example of the present invention.

【図3】本発明の部分列解釈手段の動作を示す流れ図で
ある。
FIG. 3 is a flowchart showing the operation of the subsequence interpretation means of the present invention.

【図4】本発明の部分列内容間関係解釈手段の動作を示
す流れ図である。
FIG. 4 is a flow chart showing the operation of the means for interpreting the relationship between subsequence contents according to the present invention;

【図5】本発明の代行の動作例を示す流れ図である。FIG. 5 is a flowchart showing an example of an operation of proxy according to the present invention.

【図6】本発明の他の構成例を示すブロック図である。FIG. 6 is a block diagram showing another configuration example of the present invention.

【図7】作業対象文書とそのオブジェクト列としての表
現の例を示す図である。
FIG. 7 is a diagram showing an example of a work target document and its representation as an object sequence.

【図8】操作例を示す図である。FIG. 8 is a diagram showing an operation example.

【図9】部分列の解釈の様子を示す図である。FIG. 9 is a diagram showing how a partial sequence is interpreted.

【図10】代行の様子を示す図である。FIG. 10 is a diagram showing a state of proxy.

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

101 利用者入出力手段 102 アプリケーション観察制御手段 103 オブジェクト解釈手段 104 解釈重要度評価手段 105 部分列解釈手段 106 オブジェクト間関係解釈手段 107 部分列内容間関係解釈手段 108 部分列位置間関係解釈手段 109 例記憶手段 110 中央制御手段 601 データ処理装置 602 記録媒体 101 User Input / Output Unit 102 Application Observation Control Unit 103 Object Interpretation Unit 104 Interpretation Importance Evaluation Unit 105 Subsequence Interpretation Unit 106 Inter-Object Relationship Interpretation Unit 107 Inter-Substring Contents Interpretation Unit 108 Inter-Substring Position Interpretation Unit 109 Example Storage means 110 Central control means 601 Data processing device 602 Recording medium

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 オブジェクトの列に含まれる部分列に対
する変更操作の情報を予め記憶する例記憶手段と、 前記例記憶手段に記憶された前記変更操作の情報に基づ
いて、前記オブジェクトの列に含まれる部分列に対する
変更操作を繰り返し実行する中央制御手段とを備えたこ
とを特徴とする例示型処理装置。
1. An example storage means for preliminarily storing information on a change operation on a subsequence included in a row of objects, and an information storage means for storing information on the change operation stored in the example storage means in an object row based on the information on the change operation. And a central control unit for repeatedly executing a change operation on the sub-sequence to be processed.
【請求項2】 前記オブジェクトの列の任意の位置から
部分列を抽出し、抽出した部分列の前後の位置の部分列
の特徴に基づいて、該抽出した部分列を前記変更操作の
対象とするか否かを判断する部分列解釈手段を備え、 前記中央制御手段が、前記部分列解釈手段が前記変更操
作の対象であると判断した部分列に対して、変更操作を
繰り返し実行することを特徴とする請求項1記載の例示
型処理装置。
2. A sub-sequence is extracted from an arbitrary position in the object column, and the extracted sub-sequence is set as a target of the change operation based on characteristics of the sub-sequences at positions before and after the extracted sub-sequence. A subsequence interpreting means for judging whether or not the subsequence is determined to be a target of the change operation by the central control means. The exemplary processing apparatus according to claim 1, wherein
【請求項3】 前記部分列解釈手段が、前記オブジェク
トの列の任意の位置から抽出した部分列の前後の位置の
部分列の重要度を求め、重要度の高い部分列が隣接する
前記抽出した部分列を前記変更操作の対象とすると判断
することを特徴とする請求項2記載の例示型処理装置。
3. The subsequence interpreting means obtains the importance of a subsequence at a position before and after the subsequence extracted from an arbitrary position of the object column, and the extracted subsequence having a higher importance is adjacent to the extracted subsequence. 3. The example-type processing apparatus according to claim 2, wherein it is determined that the partial sequence is to be subjected to the change operation.
【請求項4】 前記オブジェクトの列の内、前記部分列
解釈手段が前記変更操作の対象であると判断した部分列
の位置から予め設定した距離の位置にある部分列を前記
変更操作の対象とする部分列位置間関係解釈手段を備
え、 前記中央制御手段が、前記部分列解釈手段および前記部
分列位置間関係解釈手段が前記変更操作の対象であると
判断した部分列に対して、変更操作を繰り返し実行する
ことを特徴とする請求項2または請求項3記載の例示型
処理装置。
4. A sub-sequence at a predetermined distance from a position of a sub-sequence determined by the sub-sequence interpreting means to be a target of the change operation among the object columns is set as a target of the change operation. A partial column position relationship interpreting means, wherein the central control means performs a change operation on a partial sequence determined by the partial sequence interpreting means and the partial column position relationship interpreting means to be a target of the change operation. 4. The exemplary processing apparatus according to claim 2, wherein the processing is repeatedly performed.
【請求項5】 予め記憶されたオブジェクトの列に含ま
れる部分列に対する変更操作の情報に基づいて、前記オ
ブジェクトの列に含まれる部分列に対する変更操作を繰
り返し実行する処理をデータ処理装置に行わせるための
プログラムを記録したことを特徴とする記録媒体。
5. A data processing apparatus for repeatedly executing a change operation on a subsequence included in a column of an object based on information on a change operation on a subsequence included in a column of an object stored in advance. Recording medium for recording a program for recording.
【請求項6】 オブジェクトの列の任意の位置から部分
列を抽出し、抽出した部分列の前後の位置の部分列の特
徴に基づいて、該抽出した部分列を変更操作の対象とす
るか否かを判断する判断処理と、変更操作の対象である
と判断した部分列に対して、予め記憶された部分列に対
する変更操作の情報に基づいて、変更操作を繰り返し実
行する処理とをデータ処理装置に行わせるためのプログ
ラムを記録したことを特徴とする記録媒体。
6. A method for extracting a subsequence from an arbitrary position in a column of an object and determining whether the extracted subsequence is a target of a change operation based on characteristics of the subsequences at positions before and after the extracted subsequence. A data processing apparatus that performs a determination process of determining whether a change operation is to be performed and a process of repeatedly performing a change operation on a subsequence determined to be a target of the change operation based on change operation information for a pre-stored subsequence A recording medium on which a program for causing a computer to execute the program is recorded.
【請求項7】 前記判断処理は、前記オブジェクトの列
の任意の位置から抽出した部分列の前後の位置の部分列
の重要度を求め、重要度の高い部分列が隣接する前記抽
出した部分列を前記変更操作の対象とすると判断するこ
とを特徴とする請求項6記載の記録媒体。
7. The determining process determines the importance of a partial sequence at a position before and after a partial sequence extracted from an arbitrary position of the object column, and determines the extracted partial sequence in which a partial sequence with a higher importance is adjacent. 7. The recording medium according to claim 6, wherein the recording medium is determined to be a target of the change operation.
【請求項8】 前記判断処理において変更操作の対象と
判断した部分列と、該部分列の位置から予め設定した距
離の位置にある部分列とを変更操作の対象とし、変更操
作を繰り返し実行する処理をデータ処理装置に行わせる
ためのプログラムを記録したことを特徴とする請求項6
または請求項7記載の記録媒体。
8. A sub-sequence determined as a target of a change operation in the determination process and a sub-sequence located at a position set in advance from the position of the sub-sequence as a target of the change operation, and the change operation is repeatedly executed. 7. A program for causing a data processing device to perform a process is recorded.
Or the recording medium according to claim 7.
JP9076339A 1997-03-27 1997-03-27 Exemplifying type processor and recording medium where exemplifying type processing program is recorded Pending JPH10269217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9076339A JPH10269217A (en) 1997-03-27 1997-03-27 Exemplifying type processor and recording medium where exemplifying type processing program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9076339A JPH10269217A (en) 1997-03-27 1997-03-27 Exemplifying type processor and recording medium where exemplifying type processing program is recorded

Publications (1)

Publication Number Publication Date
JPH10269217A true JPH10269217A (en) 1998-10-09

Family

ID=13602612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9076339A Pending JPH10269217A (en) 1997-03-27 1997-03-27 Exemplifying type processor and recording medium where exemplifying type processing program is recorded

Country Status (1)

Country Link
JP (1) JPH10269217A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015519281A (en) * 2012-04-26 2015-07-09 ザ プロクター アンド ギャンブルカンパニー Articles for composting at home

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015519281A (en) * 2012-04-26 2015-07-09 ザ プロクター アンド ギャンブルカンパニー Articles for composting at home

Similar Documents

Publication Publication Date Title
Keuleers et al. Wuggy: A multilingual pseudoword generator
US5524240A (en) Method and apparatus for storage and retrieval of handwritten information
US8095526B2 (en) Efficient retrieval of variable-length character string data
EP1826683B1 (en) Rapid similarity links computation for table of contents determination
JP2005025763A (en) Division program, division device and division method for structured document
US20140372477A1 (en) Conditional string search
US20060149543A1 (en) Construction of an automaton compiling grapheme/phoneme transcription rules for a phoneticizer
JPH0668298A (en) System and method for data processing for character recognition and data recovery
JP4724051B2 (en) Keyword generation method, document search method, topic range estimation method, topic boundary estimation method, apparatus and program thereof, and recording medium thereof
JPH10269217A (en) Exemplifying type processor and recording medium where exemplifying type processing program is recorded
CN110413779B (en) Word vector training method, system and medium for power industry
JP2005044103A (en) Document creation device and method and program
JP2003331214A (en) Character recognition error correction method, device and program
JP2001109740A (en) Device and method for preparing chinese document
JP4341390B2 (en) Error correction method and apparatus for label sequence matching and program, and computer-readable storage medium storing label sequence matching error correction program
JP2722684B2 (en) File system search device
JP2005165521A (en) Document retrieval apparatus, document retrieval method, program
JP5846658B1 (en) Text comparison device, text comparison program, and text comparison method
JP2005293440A (en) Character code converting method, computer with character code converting function, and program for converting character code
JP3350070B2 (en) Kana-Kanji conversion device
JP5237400B2 (en) Search device
JPH0863487A (en) Method and device for document retrieval
CN113609821A (en) Regular expression conversion method, device, equipment and storage medium
JP2001175645A (en) Device, method, and recording medium for chinese input converting process
JPH02195489A (en) Post processor for character recognition

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000704