JP2010231638A - Command association support system, command association support method and program - Google Patents

Command association support system, command association support method and program Download PDF

Info

Publication number
JP2010231638A
JP2010231638A JP2009080195A JP2009080195A JP2010231638A JP 2010231638 A JP2010231638 A JP 2010231638A JP 2009080195 A JP2009080195 A JP 2009080195A JP 2009080195 A JP2009080195 A JP 2009080195A JP 2010231638 A JP2010231638 A JP 2010231638A
Authority
JP
Japan
Prior art keywords
command
parameter
similarity
related information
information
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
JP2009080195A
Other languages
Japanese (ja)
Inventor
Kentaro Sonoda
健太郎 園田
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 JP2009080195A priority Critical patent/JP2010231638A/en
Publication of JP2010231638A publication Critical patent/JP2010231638A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a command association support system which gives support to easily associate each command between two command groups in a short time even when a command to be used together with a relevant command is included. <P>SOLUTION: An information extraction means 71 generates, upon input of a command manual, essential parameter relevant information for each command including information on an essential parameter of the command, and generates, when there is a relevant command related to the command, command relevant information by adding information for an essential parameter of the relevant command to the essential parameter relevant information. A command association means 74 calculates a total similarity between commands using the similarity of the essential parameter relevant information and the similarity of the command relevant information, and associates a command of a first command group to a command of a second command group by use of the total similarity. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、コマンド対応付け支援システム、コマンド対応付け支援方法、およびコマンド対応付け支援プログラムに関し、特に、2つのコマンド群間の各コマンドの対応付けを行えるように支援するコマンド対応付け支援システム、コマンド対応付け支援方法、およびコマンド対応付け支援プログラムに関する。   The present invention relates to a command association support system, a command association support method, and a command association support program, and in particular, a command association support system and a command that support the association of commands between two command groups. The present invention relates to an association support method and a command association support program.

ITシステムの構築や運用管理において、様々なコマンド群やプログラムが利用されている。例えば、ネットワークシステムの構築においては、ネットワーク機器の諸設定を登録するための機器設定コマンド群を利用し、また、Webアプリケーション等の開発においては、開発環境に応じたプログラミング言語の関数やシェルコマンド群を利用している。このような環境においては、例えば、利用機種やOS(Operating System)のバージョンが変わることで、各種コマンド群の名称や目的も変わることが多く、各種コマンド群に関する知識の浅いシステム開発者やネットワーク構築者は、効率良く業務を遂行するために各種コマンド群を熟知することが求められる。しかし、全ての機種やシステムのコマンド群を覚えることは困難である。そのため、コマンドの共通化等に関連する技術が種々提案されている。   Various command groups and programs are used in the construction and operation management of IT systems. For example, in the construction of a network system, a device setting command group for registering various settings of a network device is used. In the development of a Web application or the like, a programming language function or a shell command group corresponding to the development environment is used. Is used. In such an environment, for example, the names and purposes of various command groups often change due to changes in the model of use and OS (Operating System) version. A person is required to be familiar with various command groups in order to efficiently perform business. However, it is difficult to remember the command group of all models and systems. For this reason, various techniques related to command sharing have been proposed.

特許文献1には、ISDN(Integrated Services Digital Network )交換機の運用において、運用コマンドが異なる複数の電子交換機を、種々の電子交換機に対応する共通コマンドで集中保守できるようした運用コマンド統合システムが記載されている。特許文献1に記載されたシステムでは、管理対象の各電子交換機の運用コマンドと共通コマンドとの関係を記憶するメモリを備え、そのメモリを参照して、入力された共通コマンドを、宛先の電子交換機のコマンドに変換する。管理者は、共通コマンドの機能のみを理解しておくだけで、例えば、メーカや機種が異なる種々の電子交換機を運用できる。   Patent Document 1 describes an operation command integration system that enables centralized maintenance of a plurality of electronic exchanges having different operation commands using common commands corresponding to various electronic exchanges in the operation of an ISDN (Integrated Services Digital Network) exchange. ing. The system described in Patent Document 1 includes a memory that stores the relationship between the operation commands and common commands of each electronic switching device to be managed, and refers to the memory so that the input common command can be used as a destination electronic switching device. Is converted to For example, the administrator can operate various electronic exchanges with different manufacturers and models only by understanding only the function of the common command.

また、特許文献2には、コマンド間の類似度算出手段を備え、作業履歴の中の個々のコマンド同士の類似度を算出する作業支援システムが記載されている。   Patent Document 2 describes a work support system that includes a similarity calculation means between commands and calculates the similarity between individual commands in the work history.

特開平5−153239号公報(段落0015−0020、図2、図6)JP-A-5-153239 (paragraphs 0015-0020, FIGS. 2 and 6) 特開平9−305442号公報(段落0035)JP-A-9-305442 (paragraph 0035)

特許文献1に記載されたシステムでは、各電子交換機の運用コマンドと共通コマンドとの関係を人手で定めておき、メモリに予め記憶させておかなければならない。機器の台数が多くなると、このような作業に多くの時間を費やさなければならない。   In the system described in Patent Document 1, the relationship between the operation command and common command of each electronic exchange must be determined manually and stored in advance in a memory. As the number of devices increases, more time must be spent on such work.

また、コマンドの中には、関連するコマンドとともに使用されるものもある。そして、あるコマンド群では、一つのコマンドと関連するコマンドが共に使用されるが、その複数のコマンドの組み合わせと同じ内容が別のコマンド群では一つのコマンドで表されることもある。   Some commands are also used with related commands. In one command group, commands related to one command are used together, but the same content as a combination of the plurality of commands may be represented by one command in another command group.

そこで、本発明は、関連するコマンドとともに使用されるコマンドがある場合でも、2つのコマンド群間における各コマンドの対応付けを容易に短時間で行えるように支援するコマンド対応付け支援システム、コマンド対応付け支援方法、およびコマンド対応付け支援プログラムを提供することを目的とする。   Therefore, the present invention provides a command association support system and a command association for assisting in associating each command between two command groups easily in a short time even when there are commands used together with related commands. An object is to provide a support method and a command association support program.

本発明によるコマンド対応付け支援システムは、第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報およびそのコマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの必須パラメータに関する情報を必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの説明をコマンド関連情報に含める情報抽出手段と、第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出手段と、第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出手段と、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付け手段とを備えることを特徴とする。   The command association support system according to the present invention includes a first command manual including a command name of each command in the first command group, information on parameters, and information on related commands used in conjunction with the command, When the command name of each command in the command group, the second command manual including information on parameters and related command information is input, the range of information for each command in each input command manual is specified, For each command, the required parameter related information including information related to the required parameters of the command is generated. When there is a command related command, the information related to the required parameters of the related command is included in the required parameter related information. Generates command related information including explanation and Information extraction means for including the description of the related command in the command related information when there is a series command, essential parameter related information generated from the first command manual, and required parameter related information generated from the second command manual Essential parameter similarity calculating means for calculating similarity, command similarity calculating means for calculating similarity between command related information generated from the first command manual and command related information generated from the second command manual; The total similarity between commands is calculated using the similarity of the essential parameter related information and the similarity of the command related information, and the commands of the first command group and the second command group are calculated using the total similarity. Command association means for associating the command with each other is provided.

また、本発明によるコマンド対応付け支援方法は、第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報およびそのコマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの必須パラメータに関する情報を必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの説明をコマンド関連情報に含める情報抽出ステップと、第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出ステップと、第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出ステップと、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付けステップとを含むことを特徴とする。   In addition, the command association support method according to the present invention includes a first command manual including a command name of each command of the first command group, information on parameters, and information on related commands used in combination with the commands, When the command name of each command in the command group of 2 and the second command manual including information on parameters and related command information are input, the range of information for each command in each input command manual is specified. For each command, the required parameter related information including information on the required parameter of the command is generated. When there is a command related command, the required parameter related information of the related command is included in the required parameter related information. Generates command related information including command descriptions and commands If there is a related command, an information extraction step for including a description of the related command in the command related information, essential parameter related information generated from the first command manual, and required parameter related information generated from the second command manual An essential parameter similarity calculating step for calculating similarity, a command similarity calculating step for calculating similarity between command related information generated from the first command manual and command related information generated from the second command manual; The total similarity between commands is calculated using the similarity of the essential parameter related information and the similarity of the command related information, and the commands of the first command group and the second command group are calculated using the total similarity. And a command associating step for associating the command with each other.

また、本発明によるコマンド対応付け支援プログラムは、コンピュータに、第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報およびそのコマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの必須パラメータに関する情報を必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの説明をコマンド関連情報に含める情報抽出処理、第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出処理、第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出処理、および、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付け処理を実行させることを特徴とする。   In addition, the command association support program according to the present invention includes a first command manual including a command name of each command in the first command group, information on parameters, and information on related commands used together with the command. And a command name of each command of the second command group, a second command manual including information on parameters and related command information, a range of information for each command in each input command manual For each command, the required parameter related information including information related to the required parameter of the command is generated. If there is a command related command, the information related to the required parameter of the related command is included in the required parameter related information. Command-related including command description for each Information is generated, and if there is a command related command, the information extraction process for including the description of the related command in the command related information, the essential parameter related information generated from the first command manual, and the second command manual Mandatory parameter similarity calculation processing for calculating similarity with essential parameter related information, command for calculating similarity between command related information generated from first command manual and command related information generated from second command manual Using the similarity calculation process, the similarity of the essential parameter related information, and the similarity of the command related information, the total similarity between commands is calculated, and the command of the first command group is calculated using the total similarity. Executing a command association process for associating the commands of the second command group with each other. And butterflies.

本発明によれば、関連するコマンドとともに使用されるコマンドがある場合でも、2つのコマンド群間における各コマンドの対応付けを容易に短時間で行うことができる。   According to the present invention, even when there is a command used together with a related command, it is possible to easily associate each command between two command groups in a short time.

本発明の第1の実施形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of the 1st Embodiment of this invention. ネットワーク機器のコマンドマニュアルの例を示す説明図である。It is explanatory drawing which shows the example of the command manual of a network device. コマンドテーブルの生成例を示す説明図である。It is explanatory drawing which shows the example of a command table production | generation. コマンドテーブルの例を示す説明図である。It is explanatory drawing which shows the example of a command table. コマンドテーブルから必須パラメータ関連情報を生成する動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation | movement which produces | generates essential parameter relevant information from a command table. コマンドデーブルからコマンド関連情報を生成する動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation | movement which produces | generates command relevant information from a command table. 必須パラメータ関連情報の類似度算出動作の例を示すフローチャートである。It is a flowchart which shows the example of similarity calculation operation | movement of essential parameter relevant information. 必須パラメータ関連情報の類似度の計算例を示す説明図である。It is explanatory drawing which shows the example of calculation of the similarity of essential parameter relevant information. コマンド関連情報の類似度の算出動作の例を示すフローチャートである。It is a flowchart which shows the example of the calculation operation | movement of the similarity degree of command related information. コマンド関連情報の類似度の計算例を示す説明図である。It is explanatory drawing which shows the example of calculation of the similarity of command relevant information. 変換元コマンドと変換先コマンドとの対応付け処理の例を示すフローチャートである。It is a flowchart which shows the example of the matching process of a conversion origin command and a conversion destination command. コマンドの対応付けの具体例を示す説明図である。It is explanatory drawing which shows the specific example of matching of a command. 総合類似度テーブルを総合類似度順に並べ替えた結果を示す説明図である。It is explanatory drawing which shows the result of having rearranged the total similarity table in order of total similarity. 変換ルールを作成する処理の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the process which produces a conversion rule. 本発明の第2の実施形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of the 2nd Embodiment of this invention. コマンドテーブルからオプションパラメータ関連情報を生成する動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation | movement which produces | generates the option parameter relevant information from a command table. オプションパラメータ関連情報の類似度算出動作の例を示すフローチャートである。It is a flowchart which shows the example of the similarity calculation operation | movement of option parameter related information. オプションパラメータ関連情報の計算例を示す説明図である。It is explanatory drawing which shows the example of a calculation of option parameter relevant information. 変換元コマンドと変換先コマンドとの対応付け処理の例を示すフローチャートである。It is a flowchart which shows the example of the matching process of a conversion origin command and a conversion destination command. コマンドの対応付けの具体例を示す説明図である。It is explanatory drawing which shows the specific example of matching of a command. 総合類似度テーブルを総合類似度順に並べ替えた結果を示す説明図である。It is explanatory drawing which shows the result of having rearranged the total similarity table in order of total similarity. 本発明の第3の実施形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of the 3rd Embodiment of this invention. 機器設定ファイルの一部の具体例を示す説明図である。It is explanatory drawing which shows the example of a part of apparatus setting file. コマンド変換処理の処理経過の例を示すフローチャートである。It is a flowchart which shows the example of the process progress of a command conversion process. コマンド変換処理の具体例を示す説明図である。It is explanatory drawing which shows the specific example of a command conversion process. 本発明の最小構成を示すブロック図である。It is a block diagram which shows the minimum structure of this invention.

以下、本発明の実施形態を図面を参照して説明する。なお、以下の説明では、ネットワーク機器の機器設定コマンドの対応付けを支援する場合を例にして説明するが、本発明はネットワーク機器の機器設定コマンドの対応付けに限定されず、他の種類のコマンドの対応付け支援にも適用可能である。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the case of supporting the association of device setting commands for network devices will be described as an example. However, the present invention is not limited to the association of device setting commands for network devices, but other types of commands. It is also applicable to the association support.

実施形態1.
図1は、本発明の第1の実施形態の構成例を示すブロック図である。本実施形態のコマンド対応付け支援システム100は、情報抽出手段110と、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130と、コマンド対応付け手段140と、変換ルール作成手段150と、変換ルール記憶装置160とを備える。コマンド対応付け支援システム100にはマニュアル入力装置210が設けられるが、コマンド対応付け支援システム100自身が、マニュアル入力装置210を備えてもよい。本実施形態のコマンド対応付け支援システム100は、変換元コマンド群のコマンドと変換先コマンド群のコマンドとを対応付け、変換元のコマンドから変換先のコマンドへの変換ルールを作成する。変換元コマンド群のコマンドを単に変換元コマンドと記し、変換先コマンド群のコマンドを単に変換先コマンドと記す場合がある。
Embodiment 1. FIG.
FIG. 1 is a block diagram showing a configuration example of the first embodiment of the present invention. The command association support system 100 of the present embodiment includes an information extraction unit 110, an essential parameter similarity calculation unit 120, a command similarity calculation unit 130, a command association unit 140, a conversion rule creation unit 150, a conversion A rule storage device 160. The command association support system 100 is provided with the manual input device 210, but the command association support system 100 itself may include the manual input device 210. The command association support system 100 according to the present embodiment associates a command of the conversion source command group with a command of the conversion destination command group, and creates a conversion rule from the conversion source command to the conversion destination command. A command of the conversion source command group may be simply referred to as a conversion source command, and a command of the conversion destination command group may be simply referred to as a conversion destination command.

マニュアル入力装置210は、コマンドマニュアルをコマンド対応付け支援システム100に入力するためのインターフェイスである。コマンドマニュアルは、ネットワーク機器のコマンド毎に、コマンド名およびパラメータに関する情報と、そのコマンドと組み合わせて使用される他のコマンドに関する情報とを含むマニュアルである。あるコマンドと組み合わせて使用される他のコマンドを関連コマンドと記す。関連コマンドがない場合、コマンドマニュアルにおいて、関連コマンドに関する情報は、例えば「なし」と記述される。マニュアル入力装置210は、変換元コマンド群のコマンドマニュアルおよび変換先コマンド群のコマンドマニュアルがそれぞれ入力される。   The manual input device 210 is an interface for inputting a command manual to the command association support system 100. The command manual is a manual including information on command names and parameters and information on other commands used in combination with the commands for each command of the network device. Other commands used in combination with a certain command are referred to as related commands. When there is no related command, information related to the related command is described as, for example, “None” in the command manual. The manual input device 210 receives a command manual for the conversion source command group and a command manual for the conversion destination command group.

情報抽出手段110は、マニュアル入力装置210から変換元コマンド群のコマンドマニュアルまたは変換先コマンド群のコマンドマニュアルが入力されると、コマンドマニュアル内のコマンド毎の情報の範囲を特定する。コマンドマニュアルは、一つのネットワーク機器の個々のコマンドを一定の記述形式で記述している。従って、情報抽出手段110は、所定の記述条件に合致する部分を、一つ分のコマンドの情報の記述範囲として判定して、コマンド毎の情報の範囲を特定すればよい。例えば、情報抽出手段110は、一つのコマンドに関する情報の記述開始を表す箇所から、次のコマンドに関する情報の記述開始を表す箇所までを、一つ分のコマンドの情報の記述範囲と判定する。ただし、コマンドマニュアルの記述形式は機器によって異なるので、情報抽出手段110は、一つ分のコマンドの記述を特定するための記述条件を複数記憶しておき、いずれかの記述条件で一つ分のコマンドの情報の記述範囲を判定できたならば、その記述条件に合致する記述範囲をそれぞれ特定していけばよい。   When the command manual of the conversion source command group or the command manual of the conversion destination command group is input from the manual input device 210, the information extraction unit 110 specifies the range of information for each command in the command manual. The command manual describes individual commands of one network device in a fixed description format. Therefore, the information extraction unit 110 may determine a portion that matches a predetermined description condition as a description range of information for one command, and specify a range of information for each command. For example, the information extraction unit 110 determines that the description range of information for one command is from a location indicating the start of description of information about one command to a location indicating the start of description of information about the next command. However, since the description format of the command manual differs depending on the device, the information extraction unit 110 stores a plurality of description conditions for specifying one command description, and one description condition is stored for one description condition. If the description range of the command information can be determined, the description range that matches the description condition may be specified.

そして、情報抽出手段110は、各コマンドについて、必須パラメータに関する情報を含む情報である必須パラメータ関連情報と、コマンドの説明を含む情報であるコマンド関連情報とをコマンドマニュアルから抽出する。必須パラメータ関連情報は、必須パラメータに関する情報を含み、関連コマンドが存在する場合には関連コマンドの必須パラメータに関する情報も含む。また、コマンド関連情報は、コマンドの説明を含み、関連コマンドが存在する場合には関連コマンドの説明も含む。本実施形態では、情報抽出手段110が、必須パラメータ関連情報として、コマンド毎に、コマンドのコマンド名、必須パラメータ名および必須パラメータの説明文字列を抽出するとともに、そのコマンドの関連コマンドがある場合には、関連コマンドのコマンド名、必須パラメータ名および必須パラメータの説明文字列もその必須パラメータ関連情報に含める場合を例にする。また、情報抽出手段110が、コマンド関連情報として、コマンド毎に、コマンドのコマンド名およびコマンドの説明文字列を抽出するとともに、このコマンドの関連コマンドがある場合には、関連コマンドのコマンド名および関連コマンドの説明文字列もそのコマンド関連情報に含める場合を例にする。パラメータの説明文字列は、パラメータの説明を表す文字列であり、コマンドの説明文字列はコマンドの説明を表す文字列である。   Then, the information extraction unit 110 extracts, for each command, essential parameter related information that is information including information on essential parameters and command related information that is information including a description of the command from the command manual. The required parameter related information includes information on the required parameter, and also includes information on the required parameter of the related command when the related command exists. The command related information includes a description of the command, and also includes a description of the related command when the related command exists. In the present embodiment, when the information extraction unit 110 extracts the command name of the command, the required parameter name, and the description character string of the required parameter for each command as the required parameter related information, and there is a related command of the command. Is an example in which the command name of the related command, the required parameter name, and the description string of the required parameter are also included in the required parameter related information. Further, the information extraction unit 110 extracts the command name of the command and the command description character string for each command as the command related information, and if there is a related command of the command, the command name and the related command of the related command are extracted. For example, a command description character string is also included in the command related information. The parameter description character string is a character string representing the parameter description, and the command description character string is a character string representing the command description.

なお、必須パラメータは、1つのコマンドに対して必ず指定しなければならないパラメータである。また、オプションパラメータは、1つのコマンドに対して指定してもしなくてもよいパラメータである。コマンドマニュアルにおいて、個々のコマンドのパラメータは、必須パラメータ、またはオプションパラメータであるか否かを判定できるように記述される。   The essential parameter is a parameter that must be specified for one command. An optional parameter is a parameter that may or may not be specified for one command. In the command manual, parameters of individual commands are described so as to be able to determine whether they are essential parameters or optional parameters.

以下、変換元コマンド群のコマンドマニュアルから抽出された必須パラメータ関連情報およびコマンド関連情報を、変換元の必須パラメータ関連情報、変換元のコマンド関連情報と記す。同様に、変換先コマンド群のコマンドマニュアルから抽出された必須パラメータ関連情報およびコマンド関連情報を、変換先の必須パラメータ関連情報、変換先のコマンド関連情報と記す。   Hereinafter, the essential parameter related information and command related information extracted from the command manual of the conversion source command group are referred to as conversion source essential parameter related information and conversion source command related information. Similarly, the essential parameter related information and command related information extracted from the command manual of the conversion destination command group are referred to as conversion destination essential parameter related information and conversion destination command related information.

必須パラメータ類似度算出手段120は、情報抽出手段110から、変換元の各必須パラメータ関連情報および変換先の各必須パラメータ関連情報を取得する。そして、必須パラメータ類似度算出手段120は、変換元の必須パラメータ関連情報および変換先の必須パラメータ関連情報の組み合わせにおける必須パラメータ関連情報の類似度を算出する。具体的には、必須パラメータ名、必須パラメータの説明文字列の類似度を算出する。   The essential parameter similarity calculating unit 120 acquires each essential parameter related information of the conversion source and each essential parameter related information of the conversion destination from the information extracting unit 110. The essential parameter similarity calculating unit 120 calculates the similarity of the essential parameter related information in the combination of the essential parameter related information of the conversion source and the essential parameter related information of the conversion destination. Specifically, the similarity of the essential parameter name and the explanation string of the essential parameter is calculated.

コマンド類似度算出手段130は、情報抽出手段110から、変換元の各コマンド関連情報および変換先の各コマンド関連情報を取得する。そして、コマンド類似度算出手段130は、変換元のコマンド関連情報および変換先のコマンド関連情報の組み合わせにおけるコマンド関連情報の類似度を算出する。具体的には、コマンド名、コマンドの説明文字列の類似度を算出する。   The command similarity calculation unit 130 acquires each command related information of the conversion source and each command related information of the conversion destination from the information extraction unit 110. Then, the command similarity calculating unit 130 calculates the similarity of the command related information in the combination of the conversion source command related information and the conversion destination command related information. Specifically, the similarity between the command name and the description character string of the command is calculated.

コマンド対応付け手段140は、必須パラメータ関連情報の類似度と、コマンド関連情報の類似度とから、コマンドの類似度を表す総合類似度を算出する。そして、コマンド対応付け手段140は、総合類似度の順位の順番にコマンドをユーザに掲示する。例えば、コマンド対応付け支援システム100がディスプレイ装置(図示せず。)を備え、コマンド対応付け手段140は、そのディスプレイ装置に総合類似度の順番にコマンドを表示させる。また、コマンド対応付け支援システム100は、例えば、キーボードやマウス等のユーザに操作されるユーザ操作部(図示せず。)を備え、ユーザ操作部の操作によって、コマンドが指定された場合、コマンド対応付け手段140は、指定されたコマンドに対するコマンドの対応付けを行う。   The command association unit 140 calculates an overall similarity indicating the similarity of the command from the similarity of the essential parameter related information and the similarity of the command related information. Then, the command association unit 140 posts the commands to the user in the order of the overall similarity. For example, the command association support system 100 includes a display device (not shown), and the command association unit 140 causes the display device to display commands in the order of overall similarity. In addition, the command association support system 100 includes a user operation unit (not shown) that is operated by a user such as a keyboard and a mouse, for example. When a command is specified by an operation of the user operation unit, a command response is provided. The attaching unit 140 associates a command with a designated command.

変換ルール作成手段150は、コマンド対応付け手段140が対応付けを行ったコマンドの組み合わせ毎に、変換元コマンド群のコマンドを変換先コマンド群のコマンドに変換する変換ルールを作成する。   The conversion rule creation unit 150 creates a conversion rule for converting a command in the conversion source command group into a command in the conversion destination command group for each combination of commands associated by the command association unit 140.

変換ルール記憶装置160は、変換ルール作成手段150によって作成された変換ルールを記憶する記憶装置である。   The conversion rule storage device 160 is a storage device that stores the conversion rules created by the conversion rule creation means 150.

情報抽出手段110、必須パラメータ類似度算出手段120、コマンド類似度算出手段130、コマンド対応付け手段140、および変換ルール作成手段150は、例えば、プログラム(コマンド対応付け支援プログラム)によって動作するCPUによって実現される。情報抽出手段110と、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130と、コマンド対応付け手段140と、変換ルール作成手段150とが同一のCPUによって実現されてもよい。この場合、プログラムは、例えば、コマンド対応付け支援システム100が備えるプログラム記憶装置(図示せず。)に記憶される。CPUは、そのプログラムを読み込み、そのプログラムに従って、情報抽出手段110、必須パラメータ類似度算出手段120、コマンド類似度算出手段130、コマンド対応付け手段140、および変換ルール作成手段150として動作すればよい。また、各手段がそれぞれ専用の回路で実現されていてもよい。   The information extraction unit 110, the essential parameter similarity calculation unit 120, the command similarity calculation unit 130, the command association unit 140, and the conversion rule creation unit 150 are realized by a CPU that is operated by a program (command association support program), for example. Is done. The information extraction unit 110, the essential parameter similarity calculation unit 120, the command similarity calculation unit 130, the command association unit 140, and the conversion rule creation unit 150 may be realized by the same CPU. In this case, the program is stored in, for example, a program storage device (not shown) included in the command association support system 100. The CPU may read the program and operate as the information extraction unit 110, the essential parameter similarity calculation unit 120, the command similarity calculation unit 130, the command association unit 140, and the conversion rule creation unit 150 according to the program. Each means may be realized by a dedicated circuit.

変換ルール記憶装置160は、例えば、ハードディスク等の記憶装置によって実現される。   The conversion rule storage device 160 is realized by a storage device such as a hard disk, for example.

次に、コマンドマニュアルの例について説明する。コマンドマニュアルは、例えば、ファイル形式でマニュアル入力装置210を介して、情報抽出手段110に入力される。ファイル形式の例として、テキストファイル、ワードプロセッサによって作成された文書ファイル、PDF(Portable Document Format)ファイル等が挙げられるが、コマンドマニュアルの形式は特に限定されない。   Next, an example of a command manual will be described. The command manual is input to the information extraction unit 110 via the manual input device 210 in a file format, for example. Examples of the file format include a text file, a document file created by a word processor, a PDF (Portable Document Format) file, and the like, but the format of the command manual is not particularly limited.

図2は、ネットワーク機器のコマンドマニュアルの例を示す説明図である。例えば、図2に示すコマンドマニュアルの1行目は、コマンドの機能名を表す。例えば、「■ イーサネット回線設定」は、イーサネット回線設定のコマンドに関する各説明が以下に続くことを表す。このように所定の記号(文字列でもよい)が、コマンドに関する各説明の開始を表すように記載されていてもよい。   FIG. 2 is an explanatory diagram illustrating an example of a command manual of a network device. For example, the first line of the command manual shown in FIG. 2 represents the function name of the command. For example, “■ Ethernet line setting” indicates that each description regarding the Ethernet line setting command follows. In this way, a predetermined symbol (which may be a character string) may be described so as to indicate the start of each explanation regarding the command.

また、図2に示すコマンドマニュアルの2行目「入力形式」は、コマンド定義を示す。すなわち、コマンドがどのような形式で入力されるかに関する説明が次に続くことを示している。図2に示す例では、次の3行目の「interface ethernet port_no [sub_no]」が、イーサネット(登録商標)回線設定に関するコマンド定義を具体的に示している。「interface ethernet」の文字列部分がコマンド名であり、「port_no」、および「[sub_no]」は、それぞれコマンドに付随するパラメータを表している。このうち、括弧の記号“[]”はオプションパラメータであることを表す。従って、本例では、「port_no」が必須パラメータを表し、「[sub_no]」はオプションパラメータを表している。本例では、「入力形式」において、コマンド名の後に続くパラメータを、パラメータ名で直接記述しているが、例えば、パラメータを「P1,P2,P3」等の記号で表し、P1,P2,P3等の記号で表した各パラメータのパラメータ名や詳細な説明を「パラメータ」欄に記述してもよい。   The “input format” on the second line of the command manual shown in FIG. 2 indicates a command definition. That is, it is shown that the description regarding the format in which the command is input continues. In the example illustrated in FIG. 2, “interface Ethernet port_no [sub_no]” in the next third line specifically indicates a command definition related to Ethernet (registered trademark) line setting. The character string portion of “interface Ethernet” is a command name, and “port_no” and “[sub_no]” each represent a parameter associated with the command. Among these, the symbol “[]” in parentheses indicates an optional parameter. Therefore, in this example, “port_no” represents an essential parameter, and “[sub_no]” represents an optional parameter. In this example, in the “input format”, the parameter following the command name is directly described by the parameter name. For example, the parameter is represented by a symbol such as “P1, P2, P3”, and P1, P2, P3. The parameter name and detailed description of each parameter represented by a symbol such as may be described in the “parameter” column.

また、図2に示すコマンドマニュアルの4行目「パラメータ」は、コマンドに付随するパラメータの説明が次に続くことを示している。本例では、図2に示す5〜6行目がパラメータの説明部分に該当する。この部分では、パラメータ名とそのパラメータの説明文字列が記述されている。例えば、図2の5行目の「port_no:ポート番号」は、パラメータ「port_no」にはポート番号(数値)が入力されることを表す文字列である。また、6行目の「sub_no:サブインターフェイス番号」は、パラメータ「sub_no」にはサブインターフェイス番号(数値)が入力されることを表す文字列である。本例では、「ポート番号」、「サブインターフェイス番号」がそれぞれのパラメータの説明文字列に該当する。パラメータ欄は、コマンド定義で示された各パラメータについて記述される。また、パラメータの説明がない場合には、パラメータの説明がないことを表す所定の文字列(例えば「なし」)がパラメータの説明文字列として記述される。   Also, “parameter” on the fourth line of the command manual shown in FIG. 2 indicates that the description of the parameter associated with the command continues next. In this example, the 5th to 6th lines shown in FIG. In this part, the parameter name and the description character string of the parameter are described. For example, “port_no: port number” on the fifth line in FIG. 2 is a character string indicating that a port number (numerical value) is input to the parameter “port_no”. In addition, “sub_no: subinterface number” on the sixth line is a character string indicating that a subinterface number (numerical value) is input to the parameter “sub_no”. In this example, “port number” and “sub-interface number” correspond to the description character strings of the respective parameters. The parameter column is described for each parameter indicated in the command definition. When there is no description of the parameter, a predetermined character string (for example, “None”) indicating that there is no description of the parameter is described as the parameter description character string.

また、図2に示すコマンドマニュアルの7行目「説明」は、このコマンドの説明文字列が次に続くことを示している。本例では、8行目の「ポート番号を設定します。」という記載が、このコマンドの説明文字列に該当する。コマンドの説明がない場合には、コマンドの説明がないことを表す所定の文字列(例えば「なし」)がコマンドの説明文字列として記述される。   In addition, “Description” on the seventh line of the command manual shown in FIG. 2 indicates that the description character string of this command follows. In this example, the description “Set the port number” on the eighth line corresponds to the description character string of this command. When there is no command description, a predetermined character string (for example, “None”) indicating that there is no command description is described as the command description character string.

また、図2に示すコマンドマニュアルの9行目「デフォルト値」は、パラメータのデフォルト値が次に続くことを示している。本例では、10〜11行目がデフォルト値を具体的に示した部分である。10行目「port_no:なし」は、パラメータ「port_no」のデフォルト値は存在しないことを表す。11行目「sub_no:1」は、パラメータ「sub_no」のデフォルト値として「1」が入力されていることを表す。   Further, the “default value” on the ninth line of the command manual shown in FIG. 2 indicates that the default value of the parameter continues next. In this example, the 10th to 11th lines are the parts that specifically show the default values. The 10th line “port_no: None” indicates that there is no default value for the parameter “port_no”. The eleventh line “sub_no: 1” represents that “1” is input as a default value of the parameter “sub_no”.

また、図2に示すコマンドマニュアルの12行目「入力例」は、このコマンドを使った実際の入力例が次に続くことを示している。13行目の「interface ethernet 1/1」が実際の入力例を表す。本例では、ポート番号1/1番の設定を行う、というコマンドの例を示している。   Further, the “input example” on the 12th line of the command manual shown in FIG. 2 indicates that an actual input example using this command continues next. “Interface Ethernet 1/1” on the 13th line represents an actual input example. In this example, a command example for setting port number 1/1 is shown.

また、図2に示すコマンドマニュアルの14行目「ノート」は、このコマンドに関する備考が次に続くことを示している。本例では、次の15行目に「なし」と記載され、備考が特にない場合を例示している。備考がある場合には、その内容を説明する文字列が記述される。   Also, the “note” on the 14th line of the command manual shown in FIG. 2 indicates that remarks relating to this command will continue next. In this example, “None” is described in the next 15th line, and there is no particular remark. If there is a remark, a character string that describes the content is described.

また、図2に示すコマンドマニュアルの16行目「関連コマンド」は、このコマンドと組み合わせて使用される関連コマンドのコマンド名が次に続くことを示している。17行目の「bridge−group tag」は、コマンド「interface ethernet port_no [sub_no]」と複合的に併用されるコマンドが「bridge−group tag」であることを表す。関連コマンドがない場合には、関連コマンドがないことを表す所定の文字列(例えば「なし」)が「関連コマンド」欄に記述される。   Also, “Related Command” on the 16th line of the command manual shown in FIG. 2 indicates that the command name of the related command used in combination with this command follows. “Bridge-group tag” on the 17th line indicates that the command used in combination with the command “interface Ethernet port_no [sub_no]” is “bridge-group tag”. When there is no related command, a predetermined character string (for example, “None”) indicating that there is no related command is described in the “Related Command” column.

図2は、イーサネット回線設定に関するコマンドを例に示しているが、同じネットワーク機器に対する他のコマンドも、同じ書式で記述される。すなわち、コマンドに関する種々の説明(コマンド名、コマンドの説明文字列、必須パラメータ名、必須パラメータの説明文字列、オプションパラメータ名、オプションパラメータの説明文字列、関連コマンドのコマンド名等)は、コマンド毎に同じ書式で記述される。従って、情報抽出手段110は、1つのコマンドマニュアル内における共通の書式を元にして、コマンドに関する種々の説明を抽出することができる。   FIG. 2 shows an example of commands related to Ethernet line setting, but other commands for the same network device are also described in the same format. That is, various descriptions related to commands (command name, command description character string, required parameter name, required parameter description character string, option parameter name, option parameter description character string, command name of related command, etc.) Are described in the same format. Therefore, the information extraction unit 110 can extract various descriptions related to commands based on a common format in one command manual.

また、あるコマンドの関連コマンド(例えば、図2の17行目に示された関連コマンド)についても、コマンド名、コマンドの説明文字列、パラメータ名、パラメータの説明文字列、入力例、ノート、関連コマンド等が、コマンドマニュアル内に同様に記述されている。ただし、併せて使用される複数のコマンドは、そのコマンドの使用順序に従ってコマンドマニュアル内に記述されているものとする。   In addition, for a command related to a certain command (for example, a command related to the command shown in the 17th line in FIG. 2), a command name, a command description string, a parameter name, a parameter description string, an input example, a note, Commands and the like are similarly described in the command manual. However, a plurality of commands used together are described in the command manual according to the order of use of the commands.

次に、動作について説明する。
まず、ネットワーク機器のコマンドマニュアルがマニュアル入力装置210を介して、コマンド対応付け支援システム100の情報抽出手段110に入力される。ここで、コマンドマニュアルは、ネットワーク機器の各コマンドのコマンド名と、コマンドの説明分と、各パラメータと、各パラメータの説明文字列と、そのコマンドの関連コマンドとを記述している。コマンドマニュアルが入力されると、情報抽出手段110は、そのコマンドマニュアルを参照して、コマンド毎に、必須パラメータ関連情報と、コマンド関連情報とを抽出する。本実施形態では、情報抽出手段110は、コマンド毎に、そのコマンドのコマンド名、必須パラメータ名および必須パラメータの説明文字列をそのコマンドの必須パラメータ関連情報に含め、さらに、関連コマンドがある場合には、関連コマンドのコマンド名、必須パラメータ名および必須パラメータの説明文字列もその必須パラメータ関連情報に含める。このとき、必須パラメータの説明文字列として、説明がないことを表す「なし」等の所定の文字列を抽出して必須パラメータ関連情報に含めてもよい。また、情報抽出手段110は、コマンド毎に、そのコマンドのコマンド名およびコマンドの説明文字列をそのコマンドのコマンド関連情報に含め、さらに、関連コマンドがある場合には、関連コマンドのコマンド名およびコマンドの説明文字列もそのコマンド関連情報に含める。
Next, the operation will be described.
First, the command manual of the network device is input to the information extraction unit 110 of the command association support system 100 via the manual input device 210. Here, the command manual describes a command name of each command of the network device, a description of the command, each parameter, an explanation character string of each parameter, and a related command of the command. When a command manual is input, the information extraction unit 110 refers to the command manual and extracts essential parameter related information and command related information for each command. In this embodiment, the information extraction unit 110 includes, for each command, the command name of the command, the required parameter name, and the description character string of the required parameter in the required parameter related information of the command, and when there is a related command. Includes the command name of the related command, the required parameter name, and the description string of the required parameter in the required parameter related information. At this time, a predetermined character string such as “None” indicating that there is no description may be extracted and included in the essential parameter related information as the explanation character string of the essential parameter. In addition, for each command, the information extraction unit 110 includes the command name of the command and the description character string of the command in the command related information of the command, and if there is a related command, the command name and command of the related command. Is also included in the command related information.

情報抽出手段110は、変換元コマンド群のコマンドマニュアルが入力されたときも、変換先コマンド群のコマンドマニュアルが入力されたときも、同様に、必須パラメータ関連情報およびコマンド関連情報を抽出する。そして、情報抽出手段110は、変換元の各必須パラメータ関連情報および変換先の各必須パラメータ関連情報を必須パラメータ類似度計算手段120に渡す。また、変換元の各コマンド関連情報および変換先の各コマンド関連情報をコマンド類似度計算手段130に渡す。   The information extraction unit 110 similarly extracts the essential parameter related information and the command related information both when the command manual of the conversion source command group is input and when the command manual of the conversion destination command group is input. Then, the information extraction unit 110 passes each essential parameter related information of the conversion source and each essential parameter related information of the conversion destination to the essential parameter similarity calculation unit 120. Further, each command related information of the conversion source and each command related information of the conversion destination are passed to the command similarity calculation means 130.

以下、情報抽出手段110が必須パラメータ関連情報とコマンド関連情報とを抽出する動作の例を説明する。情報抽出手段110は予め、1つ分のコマンドの記述を特定するための記述条件を記憶する。そして、情報抽出手段110は入力されたコマンドマニュアルからその記述条件に該当する部分(1つ分のコマンドに関する記述部分)を特定し、その部分から、コマンド名、コマンドの説明文字列、必須パラメータ名、必須パラメータ名の説明文字列、オプションパラメータ名、オプションパラメータ名の説明文字列、および関連コマンドのコマンド名を抽出する。例えば、図2に例示する書式で記載されたコマンドマニュアルにおいて、図2の1行目(■から始まる行)から、次の■から始まる行の直前までを1つのコマンドに関する記述部分として特定し、その範囲から、コマンド名、コマンドの説明文字列、必須パラメータ名、必須パラメータ名の説明文字列、オプションパラメータ名、オプションパラメータ名の説明文字列、および関連コマンドのコマンド名を抽出する。同様の処理を繰り返し、コマンドマニュアルに記述された複数のコマンドについてそれぞれ、上記の各項目を抽出すればよい。ただし、1つ分のコマンドの記述を特定するための記述条件は、機器やソフトウェアによって異なるので、そのような記述条件として想定される条件を複数種類、情報抽出手段110に記憶させておけばよい。なお、第1の実施形態では、オプションパラメータ名、オプションパラメータ名の説明文字列は抽出しなくてもよい。   Hereinafter, an example of an operation in which the information extraction unit 110 extracts essential parameter related information and command related information will be described. The information extraction unit 110 stores in advance description conditions for specifying the description of one command. Then, the information extraction unit 110 identifies a part (description part related to one command) corresponding to the description condition from the input command manual, and from that part, a command name, a command description character string, an essential parameter name , The description string of the required parameter name, the option parameter name, the description string of the option parameter name, and the command name of the related command are extracted. For example, in the command manual described in the format illustrated in FIG. 2, the description from the first line in FIG. 2 (line starting from ■) to immediately before the next line starting from ■ is specified as the description part for one command. From the range, a command name, a command description character string, a required parameter name, a required parameter name description character string, an optional parameter name, an optional parameter name description character string, and a command name of a related command are extracted. The same processing is repeated, and each item described above may be extracted for each of a plurality of commands described in the command manual. However, the description conditions for specifying the description of one command differ depending on the device and software, and therefore, it is sufficient to store a plurality of types of conditions assumed as such description conditions in the information extraction means 110. . In the first embodiment, the option parameter name and the description character string of the option parameter name need not be extracted.

コマンド名、コマンドの説明文字列、必須パラメータ名、必須パラメータ名の説明文字列、オプションパラメータ名、オプションパラメータ名の説明文字列、および関連コマンドのコマンド名を各コマンド毎に抽出すると、情報抽出手段110は、抽出した項目をテーブルに格納する。以下、情報抽出手段110が抽出した情報を格納するためのテーブルをコマンドテーブルと記す。以下、図2に例示する書式のコマンドマニュアルから抽出する場合を例にして説明する。図3は、コマンドテーブルの生成例を示す説明図である。ここでは、コマンドマニュアルが変換元のコマンドマニュアルであるものとして、変換元コマンドテーブルを生成する場合を説明するが、情報抽出手段110は、変換先コマンドテーブルも同様に生成する。また、図4は、生成された変換元コマンドテーブルおよび変換先コマンドテーブルの例を示す。   If the command name, command description string, required parameter name, required parameter name description string, option parameter name, option parameter name description string, and related command name are extracted for each command, information extraction means 110 stores the extracted items in a table. Hereinafter, a table for storing information extracted by the information extraction unit 110 is referred to as a command table. Hereinafter, a case where extraction is performed from the command manual having the format illustrated in FIG. 2 will be described as an example. FIG. 3 is an explanatory diagram illustrating an example of generating a command table. Here, the case where the conversion source command table is generated on the assumption that the command manual is the conversion source command manual will be described. However, the information extraction unit 110 similarly generates the conversion destination command table. FIG. 4 shows an example of the generated conversion source command table and conversion destination command table.

本例では、変換元コマンドテーブル310に、機器名、変換元コマンド群のコマンド名、そのコマンドの説明文字列、そのコマンドの各必須パラメータ名、各必須パラメータの説明文字列、そのコマンドの各オプションパラメータ名、各オプションパラメータの説明文字列、変換元コマンドと組み合わせて使用される他のコマンド名のリストが格納される。変換先コマンドテーブルの書式は、変換元コマンドテーブルと同じである。   In this example, in the conversion source command table 310, the device name, the command name of the conversion source command group, the description character string of the command, each required parameter name of the command, the description character string of each required parameter, and each option of the command A parameter name, an explanation character string of each optional parameter, and a list of other command names used in combination with the conversion source command are stored. The format of the conversion destination command table is the same as that of the conversion source command table.

情報抽出手段110は、コマンド定義の記述開始を意味するキーワード(図2では「入力形式」)を検索し、そのキーワードの次の行の記述「interface ethernet port_no [sub_no]」を変換元コマンド群のコマンドのコマンド名として抽出し、変換元コマンドテーブル310に格納する(図3参照)。   The information extraction unit 110 searches for a keyword (“input format” in FIG. 2) meaning the start of description of the command definition, and describes the description “interface Ethernet port_no [sub_no]” in the next line of the keyword in the conversion source command group. It is extracted as the command name of the command and stored in the conversion source command table 310 (see FIG. 3).

また、情報抽出手段110は、コマンドのパラメータを意味するキーワード(図2では「パラメータ」)を検索し、パラメータ毎にパラメータ名およびパラメータの説明文字列を変換元コマンドテーブル310に格納する。例えば、5行目の「port_no」は、3行目のコマンド名「interface ethernet port_no [sub_no]」を参照すると、オプションパラメータを表す括弧の記号“[]”が付いていないため、必須パラメータであることが分かる。情報抽出手段110は、必須パラメータであると判定した後、「port_no」を必須パラメータ名として変換元コマンドテーブル310に格納する。そして、5行目の「port_no:」に続く文字列である「ポート番号」を必須パラメータの説明文字列として変換元コマンドテーブル310に格納する。同様に、6行目の「sub_no」は、3行目のコマンド名「interface ethernet port_no [sub_no]」を参照すると、オプションパラメータを表す括弧の記号“[]”が付いているため、オプションパラメータであることが分かる。情報抽出手段110は、オプションパラメータであると判定した後、「sub_no」をオプションパラメータ名として変換元コマンドテーブル310に格納する。そして、6行目の「sub_no:」に続く文字列である「サブインターフェイス番号」をオプションパラメータの説明文字列として変換元コマンドテーブル310に格納する(図3参照)。   Further, the information extraction unit 110 searches for a keyword (“parameter” in FIG. 2) that means a command parameter, and stores the parameter name and the parameter description character string for each parameter in the conversion source command table 310. For example, “port_no” on the 5th line is an indispensable parameter because the command name “interface Ethernet port_no [sub_no]” on the 3rd line does not include the bracket symbol “[]” that represents an optional parameter. I understand that. After determining that the information extraction unit 110 is an essential parameter, the information extraction unit 110 stores “port_no” in the conversion source command table 310 as an essential parameter name. Then, “port number”, which is a character string following “port_no:” on the fifth line, is stored in the conversion source command table 310 as an explanatory character string of an essential parameter. Similarly, “sub_no” on the 6th line refers to the command name “interface Ethernet port_no [sub_no]” on the 3rd line. I understand that there is. After determining that the information extraction unit 110 is an option parameter, the information extraction unit 110 stores “sub_no” in the conversion source command table 310 as an option parameter name. Then, the “sub interface number”, which is a character string following “sub_no:” on the sixth line, is stored in the conversion source command table 310 as an optional parameter description character string (see FIG. 3).

なお、コマンドに対して指定される必須パラメータおよびオプションパラメータの数はコマンド毎に異なる。コマンドに対して指定される必須パラメータおよびオプションパラメータの数に応じて、変換元コマンドテーブル310および変換先コマンドテーブル320(図4参照)における必須パラメータ名およびオプションパラメータ名の列を増やせばよい。必須パラメータの説明文字列およびオプションパラメータの説明文字列に関しても同様である。   Note that the number of required parameters and optional parameters specified for a command differs for each command. Depending on the number of mandatory parameters and optional parameters specified for the command, the columns of mandatory parameter names and optional parameter names in the conversion source command table 310 and the conversion destination command table 320 (see FIG. 4) may be increased. The same applies to the explanation character string of the essential parameter and the explanation character string of the optional parameter.

次に、情報抽出手段110は、コマンドの説明文字列の記述開始を意味するキーワード(図2では「説明」)を検索し、そのキーワードの次の行の記述「ポート番号を設定します。」を、コマンドの説明文字列として抽出し、変換元コマンドテーブル310に格納する(図3参照)。   Next, the information extraction means 110 searches for a keyword ("Description" in FIG. 2) that means the start of description of the command description character string, and the description "Set the port number" on the next line of the keyword. Are extracted as command explanation character strings and stored in the conversion source command table 310 (see FIG. 3).

次に、情報抽出手段110は、関連コマンドのコマンド名の記述開始を意味するキーワード(図2では「関連コマンド」)を検索し、そのキーワードの次の行の記述「bridge−group tag」を関連コマンドのコマンド名として抽出し、変換元コマンドテーブル310に格納する(図3参照)。   Next, the information extraction unit 110 searches for a keyword (“related command” in FIG. 2) meaning the start of description of the command name of the related command, and relates the description “bridge-group tag” on the next line of the keyword. It is extracted as the command name of the command and stored in the conversion source command table 310 (see FIG. 3).

情報抽出手段110は、コマンドの説明文字列、必須パラメータの説明文字列、オプションパラメータの説明文字列、および関連コマンドのコマンド名として、それらがないことを示す所定の文字列(例えば「なし」)が記述されていた場合、その文字列をコマンドテーブルに格納すればよい。   The information extraction unit 110 uses a predetermined character string (for example, “None”) indicating that there is no command description character string, an essential parameter description character string, an optional parameter description character string, and a command name of a related command. Is stored in the command table.

情報抽出手段110は、上記のようにコマンド名を判断するためのキーワード、コマンドの説明文字列を判断するためのキーワード、パラメータ名およびパラメータの説明文字列を判断するためのキーワード、関連コマンドのコマンド名を判断するためのキーワードを用いて、各情報を抽出する。これらのキーワードの定め方は、機器やソフトウェアのコマンドマニュアル毎に異なっている。また、必須パラメータとオプションパラメータとを区別するための記述方法も、コマンドマニュアル毎に異なっている。各情報を抽出するための条件(キーワードの定め方や、必須パラメータとオプションパラメータとの区別の仕方)として想定される条件を、情報抽出手段110に設定しておき、情報抽出手段110は、いずれかの条件を用いて、コマンド名等の各情報を抽出すればよい。   The information extraction means 110 is a keyword for determining a command name as described above, a keyword for determining a command description character string, a keyword for determining a parameter name and a parameter description character string, and a command for a related command. Each information is extracted using a keyword for judging a name. The method of defining these keywords differs depending on the command manual of the device or software. In addition, the description method for distinguishing the required parameter from the optional parameter is also different for each command manual. Conditions assumed as conditions for extracting each information (how to define keywords and how to distinguish between essential parameters and optional parameters) are set in the information extracting means 110, and the information extracting means 110 Each information such as a command name may be extracted using such a condition.

また、情報抽出手段110は、ネットワーク機器名を抽出する。機器名の抽出方法は、特に限定されない。例えば、情報抽出手段110は、コマンドマニュアルファイル内からネットワーク機器名を探してもよいし、各種ネットワーク機器に実装されているSNMP(Simple Network Management Protocol)を使ったMIB(Management Information Base)情報から探してもよい。機器名の抽出は、コマンド名およびコマンドの説明文字列、必須パラメータ名および必須パラメータの説明文字列、オプションパラメータ名およびオプションパラメータ名の説明文字列、関連コマンドのコマンド名の抽出前に行ってもよいし、抽出後に行ってよい。また、機器名の抽出は、初めの1度だけ行った後、変換元コマンドテーブル310中の機器名列に全て同じ文字列を入力してもよい。   Further, the information extraction unit 110 extracts a network device name. The method for extracting the device name is not particularly limited. For example, the information extraction unit 110 may search for a network device name from within a command manual file, or search for information from MIB (Management Information Base) information using SNMP (Simple Network Management Protocol) installed in various network devices. May be. The device name can be extracted before extracting the command name and command description string, required parameter name and required parameter description string, optional parameter name and optional parameter name description string, and related command name. It can be done after extraction. Further, the device name may be extracted only once at the beginning, and then the same character string may be input to all the device name columns in the conversion source command table 310.

また、情報抽出手段110は、コマンドマニュアルにおける記載順に各コマンドをコマンドテーブルに格納する。従って、併せて使用される複数のコマンドでは、先に使用されるコマンドから順にコマンドテーブルに格納される。   The information extraction unit 110 stores each command in the command table in the order described in the command manual. Accordingly, a plurality of commands used together are stored in the command table in order from the command used first.

情報抽出手段110は、このような抽出処理を、変換元コマンド群のコマンドマニュアルに記述されたコマンドの数だけ繰り返し行い、変換元コマンドテーブル310を作成する。この結果、例えば、図4に例示する変換元コマンドテーブル310を得る。同様に、情報抽出手段110は、変換先コマンド群のコマンドマニュアルについても同様の処理を行い、変換先コマンドテーブルを生成する。この結果、例えば図4に例示する変換先コマンドテーブル320を得る。   The information extraction unit 110 repeats such extraction processing as many times as the number of commands described in the command manual of the conversion source command group, and creates the conversion source command table 310. As a result, for example, the conversion source command table 310 illustrated in FIG. 4 is obtained. Similarly, the information extraction unit 110 performs similar processing for the command manual of the conversion destination command group, and generates a conversion destination command table. As a result, for example, the conversion destination command table 320 illustrated in FIG. 4 is obtained.

なお、情報抽出手段110に作成された変換元コマンドテーブル310および変換先コマンドテーブル320の内容をユーザが編集可能な構成であってもよい。例えば、コマンド対応付け支援システム100がキーボードやマウス等のユーザに操作されるユーザ操作部(図示せず。)と、そのユーザ操作部を介して入力されたユーザの指示により、情報抽出手段110に作成された変換元コマンドテーブル310および変換先コマンドテーブル320の内容を編集するコマンド編集手段(図示せず。)とを備えていてもよい。コマンド編集手段は、ユーザの指示に従って、新規コマンドに関する情報を変換元コマンドテーブル310および変換先コマンドテーブル320に追加したり、既に変換元コマンドテーブル310および変換先コマンドテーブル320に格納されている情報を修正したり、削除したりしてもよい。コマンド編集手段(図示せず。)も、例えば、プログラムに従って動作するCPUによって実現される。   Note that the user may be able to edit the contents of the conversion source command table 310 and the conversion destination command table 320 created in the information extraction unit 110. For example, a command operation support system 100 is operated by a user operation unit (not shown) that is operated by a user such as a keyboard and a mouse, and a user instruction input via the user operation unit. Command editing means (not shown) for editing the contents of the created conversion source command table 310 and conversion destination command table 320 may be provided. The command editing means adds information related to the new command to the conversion source command table 310 and the conversion destination command table 320 according to the user's instruction, or information already stored in the conversion source command table 310 and the conversion destination command table 320. It may be modified or deleted. Command editing means (not shown) is also realized by a CPU that operates according to a program, for example.

情報抽出手段110は、図4に例示するような変換元コマンドテーブル310の作成後、変換元コマンドテーブル310から変換元の必須パラメータ関連情報を生成する。同様に、図4に例示するような変換先コマンドテーブル320の作成後、変換先コマンドテーブル320から変換元の必須パラメータ関連情報を生成する。コマンドテーブルから必須パラメータ関連情報およびコマンド関連情報を生成する動作は、変換元コマンドテーブルでも変換先コマンドテーブルでも同様である。   After creating the conversion source command table 310 as illustrated in FIG. 4, the information extraction unit 110 generates essential parameter related information of the conversion source from the conversion source command table 310. Similarly, after creating the conversion destination command table 320 illustrated in FIG. 4, necessary parameter related information of the conversion source is generated from the conversion destination command table 320. The operation for generating the essential parameter related information and the command related information from the command table is the same for both the conversion source command table and the conversion destination command table.

図5は、コマンドテーブルから必須パラメータ関連情報を生成する動作の例を示すフローチャートである。情報抽出手段110は、コマンドテーブルから一つのコマンドを選択する(ステップS1)。例えば、図4に例示する変換元コマンドテーブル310の中から、コマンド「interface ethernet port_no [sub_no]」を選択する。次に、情報抽出手段110は、ステップS1で選択したコマンドに関連コマンドがあるか否かを判定する(ステップS2)。情報抽出手段110は、コマンドテーブルにおいて選択したコマンドの関連コマンドフィールドを参照し、関連コマンドがないことを示す所定文字列(「なし」等)が格納されていれば関連コマンドがないと判定し、他の文字列が格納されていれば関連コマンドがあると判定すればよい。   FIG. 5 is a flowchart illustrating an example of an operation for generating essential parameter related information from the command table. The information extraction unit 110 selects one command from the command table (step S1). For example, the command “interface Ethernet port_no [sub_no]” is selected from the conversion source command table 310 illustrated in FIG. Next, the information extraction unit 110 determines whether there is a related command in the command selected in step S1 (step S2). The information extraction unit 110 refers to the related command field of the command selected in the command table, and determines that there is no related command if a predetermined character string (such as “None”) indicating that there is no related command is stored. If another character string is stored, it may be determined that there is a related command.

関連コマンドがある場合(ステップS2におけるYes)、情報抽出手段110は、ステップS1で選択したコマンドのコマンド名、必須パラメータ名、および必須パラメータの説明文字列と、そのコマンドの関連コマンドのコマンド名、必須パラメータ名、および必須パラメータの説明文字列をコマンドテーブルから抽出してセットにし、必須パラメータ関連情報とする(ステップS3)。例えば、ステップS1で変換元コマンドテーブルからコマンド「interface ethernet port_no [sub_no]」を選択したとする。このコマンドには関連コマンド「bridge−group tag」が存在する(図4参照)。従って、情報抽出手段110は、「interface ethernet port_no [sub_no]」および「bridge−group tag」それぞれのコマンド名、必須パラメータ名および必須パラメータの説明文字列をセットにして、必須パラメータ関連情報とする。   When there is a related command (Yes in step S2), the information extraction unit 110 includes the command name of the command selected in step S1, the required parameter name, the description character string of the required parameter, the command name of the related command of the command, The essential parameter name and the description character string of the essential parameter are extracted from the command table and set as essential parameter related information (step S3). For example, assume that the command “interface Ethernet port_no [sub_no]” is selected from the conversion source command table in step S1. This command has a related command “bridge-group tag” (see FIG. 4). Accordingly, the information extraction unit 110 sets the command name, the required parameter name, and the explanatory character string of the required parameter for each of “interface Ethernet port_no [sub_no]” and “bridge-group tag” as the required parameter related information.

関連コマンドがない場合(ステップS2におけるNo)、情報抽出手段110は、ステップS1で選択したコマンドのコマンド名、必須パラメータ名、および必須パラメータの説明文字列をコマンドテーブルから抽出し、必須パラメータ関連情報とする。   When there is no related command (No in step S2), the information extraction unit 110 extracts the command name, the required parameter name, and the description character string of the required parameter selected in step S1 from the command table, and the required parameter related information. And

情報抽出手段110は、コマンドテーブルに格納された各コマンドについて上記の処理を行うことで各コマンドの必須パラメータ関連情報を生成する。ただし、コマンドA,Bが互いに関連コマンドである場合、例えば、コマンドA選択時に、コマンドA,Bそれぞれの必須パラメータ名等を含む必須パラメータ関連情報を生成しているので、その後コマンドBを選択しなくてよい。   The information extraction unit 110 generates the essential parameter related information of each command by performing the above-described processing for each command stored in the command table. However, if the commands A and B are related commands to each other, for example, when the command A is selected, the essential parameter related information including the required parameter names of the commands A and B is generated. It is not necessary.

ここでは、変換元コマンドテーブルから変換元の必須パラメータ関連情報を生成する場合を例示したが、情報抽出手段110は、変換先コマンドテーブルからも同様に必須パラメータ関連情報を生成する。   Here, the case where the conversion source essential parameter related information is generated from the conversion source command table is illustrated, but the information extraction unit 110 similarly generates the essential parameter related information from the conversion destination command table.

次に、コマンド関連情報の生成動作を説明する。図6は、コマンドデーブルからコマンド関連情報を生成する動作の例を示すフローチャートである。情報抽出手段110は、コマンドテーブルから一つのコマンドを選択する(ステップS11)。次に、情報抽出手段110は、ステップS11で選択したコマンドに関連コマンドがあるか否かを判定する(ステップS12)。ステップS11,S12の動作は、前述のステップS1,S2(図5参照)と同様である。   Next, a command related information generation operation will be described. FIG. 6 is a flowchart illustrating an example of an operation for generating command related information from a command table. The information extraction unit 110 selects one command from the command table (step S11). Next, the information extraction unit 110 determines whether there is a related command in the command selected in step S11 (step S12). The operations in steps S11 and S12 are the same as those in steps S1 and S2 (see FIG. 5) described above.

関連コマンドがある場合(ステップS12におけるYes)、情報抽出手段110は、ステップS11で選択したコマンドのコマンド名およびコマンドの説明文字列と、そのコマンドの関連コマンドのコマンド名およびコマンドの説明文字列をコマンドテーブルから抽出してセットにし、コマンド関連情報とする(ステップS13)。例えば、ステップS11で変換元コマンドテーブルからコマンド「interface ethernet port_no [sub_no]」を選択したとする。このコマンドには関連コマンド「bridge−group tag」が存在する(図4参照)。従って、情報抽出手段110は、「interface ethernet port_no [sub_no]」および「bridge−group tag」それぞれのコマンド名、コマンドの説明文字列をセットにして、コマンド関連情報とする。   When there is a related command (Yes in step S12), the information extraction unit 110 obtains the command name and command description character string of the command selected in step S11, and the command name and command description character string of the related command of the command. Extracted from the command table and set as command-related information (step S13). For example, it is assumed that the command “interface ethernet port_no [sub_no]” is selected from the conversion source command table in step S11. This command has a related command “bridge-group tag” (see FIG. 4). Therefore, the information extraction unit 110 sets the command name and the description character string of each of “interface Ethernet port_no [sub_no]” and “bridge-group tag” as command-related information.

関連コマンドがない場合(ステップS12におけるNo)、情報抽出手段110は、ステップS11で選択したコマンドのコマンド名およびコマンドの説明文字列をコマンドテーブルから抽出し、コマンド関連情報とする。   When there is no related command (No in step S12), the information extraction unit 110 extracts the command name of the command selected in step S11 and the description character string of the command from the command table, and uses it as command related information.

情報抽出手段110は、コマンドテーブルに格納された各コマンドについて上記の処理を行うことで各コマンドのコマンド関連情報を生成する。ただし、コマンドA,Bが互いに関連コマンドである場合、例えば、コマンドA選択時に、コマンドA,Bそれぞれのコマンド名等を含むコマンド関連情報を生成しているので、その後コマンドBを選択しなくてよい。   The information extraction unit 110 generates the command related information of each command by performing the above processing for each command stored in the command table. However, if the commands A and B are related commands to each other, for example, when the command A is selected, the command related information including the command names of the commands A and B is generated. Good.

ここでは、変換元コマンドテーブルから変換元のコマンド関連情報を生成する場合を例示したが、情報抽出手段110は、変換先コマンドテーブルからも同様にコマンド関連情報を生成する。   Although the case where the conversion source command related information is generated from the conversion source command table is illustrated here, the information extraction unit 110 similarly generates command related information from the conversion destination command table.

また、ステップS3,S13では、コマンドテーブルにおける選択したコマンドのレコードと関連コマンドのレコードとをセットにした情報を必須パラメータ関連情報、コマンド関連情報としてもよい。そして、ステップS4,S14では、コマンドテーブルにおける選択したコマンドのレコードを必須パラメータ関連情報、コマンド関連情報としてもよい。この場合、コマンド名、コマンドの説明文字列、必須パラメータ名、必須パラメータの説明文字列、オプションパラメータ名、オプションパラメータの説明文字列等を含んだ情報を必須パラメータ関連情報およびコマンド関連情報とすることとなる。そして、必須パラメータ関連情報およびコマンド関連情報が同じ内容の情報として生成されるので、ステップS1〜S4の動作と、ステップS11〜S14とを重複して行わなくてよい。   In steps S3 and S13, information obtained by setting a record of a selected command and a record of a related command in the command table may be set as essential parameter related information and command related information. In steps S4 and S14, the record of the selected command in the command table may be used as essential parameter related information and command related information. In this case, information including the command name, command description string, required parameter name, required parameter description string, option parameter name, option parameter description string, etc. shall be required parameter related information and command related information. It becomes. And since essential parameter relevant information and command relevant information are produced | generated as the information of the same content, it is not necessary to perform the operation | movement of step S1-S4 and step S11-S14 redundantly.

情報抽出手段110は、必須パラメータ関連情報およびコマンド関連情報の生成後、変換元および変換先の各必須パラメータを必須パラメータ類似度算出手段120に渡し、変換元および変換先の各コマンド関連パラメータをコマンド類似度算出手段130に渡す。また、情報抽出手段110は、例えば、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストを生成しておく。必須パラメータ関連情報(またはコマンド関連情報)は、個々のコマンドと対応しているので、必須パラメータ関連情報(またはコマンド関連情報)を対応付けの対象となる変換元コマンドおよび変換先コマンドのリストとして用いてもよい。この時点で、ステップS3,S13の処理により、併せて使用されるコマンド同士は、セットにして一つのコマンドとみなす。このようにセットにしたコマンドを複合コマンドと記す場合がある。   After the generation of the essential parameter related information and the command related information, the information extraction unit 110 passes the conversion source and conversion destination essential parameters to the essential parameter similarity calculation unit 120, and the conversion source and conversion destination command related parameters are sent to the command. Pass to similarity calculation means 130. In addition, the information extraction unit 110 generates a list of conversion source commands and conversion destination commands to be matched, for example. Since the required parameter related information (or command related information) corresponds to each command, the required parameter related information (or command related information) is used as a list of conversion source commands and conversion destination commands to be matched. May be. At this time, the commands used together by the processing of steps S3 and S13 are regarded as one command as a set. A command set in this way may be referred to as a compound command.

そして、必須パラメータ類似度算出手段120(コマンド類似度算出手段130でもよい。)は、変換先コマンドと対応付けようとする一つの変換元コマンドをリストから選択する。必須パラメータ類似度算出手段120は、選択した変換元コマンドの必須パラメータ関連情報および各変換先コマンドの必須パラメータ関連情報の各組み合わせにおける必須パラメータ関連情報の類似度を算出する。また、コマンド類似度算出手段130は、選択した変換元コマンドのコマンド関連情報および各変換先コマンドのコマンド関連情報の各組み合わせにおけるコマンド関連情報の類似度を算出する。以下、この必須パラメータ類似度算出手段120とコマンド類似度算出手段130の動作を説明する。   Then, the essential parameter similarity calculating unit 120 (or the command similarity calculating unit 130) selects one conversion source command to be associated with the conversion destination command from the list. The essential parameter similarity calculating unit 120 calculates the similarity of the essential parameter related information in each combination of the essential parameter related information of the selected conversion source command and the essential parameter related information of each conversion destination command. Further, the command similarity calculation unit 130 calculates the similarity of the command related information in each combination of the command related information of the selected conversion source command and the command related information of each conversion destination command. Hereinafter, operations of the essential parameter similarity calculating unit 120 and the command similarity calculating unit 130 will be described.

まず、必須パラメータ類似度算出手段120の動作を説明する。図7は、必須パラメータ関連情報の類似度算出動作の例を示すフローチャートである。図8は、必須パラメータ関連情報の類似度の計算例を示す説明図である。必須パラメータ類似度算出手段120は、変換元側の必須パラメータ名および必須パラメータの説明文字列と、変換先側の必須パラメータ名および必須パラメータの説明文字列との類似度を、必須パラメータ関連情報の類似度として算出する。   First, the operation of the essential parameter similarity calculating unit 120 will be described. FIG. 7 is a flowchart illustrating an example of the similarity parameter calculating operation of the essential parameter related information. FIG. 8 is an explanatory diagram illustrating a calculation example of the similarity of the essential parameter related information. The required parameter similarity calculating unit 120 calculates the similarity between the required parameter name on the conversion source side and the description character string of the required parameter, and the required parameter name on the conversion destination side and the description character string of the required parameter. Calculated as similarity.

必須パラメータ類似度算出手段120は、選択した変換元コマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列をベクトル化する。必須パラメータ類似度算出手段120は、同様に、変換先の各必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列をベクトル化する(ステップS21)。ステップS21で求めたベクトルは、必須パラメータベクトルと呼ぶことができる。   The required parameter similarity calculating unit 120 vectorizes the required parameter name and the description character string of the required parameter included in the required parameter related information of the selected conversion source command. Similarly, the essential parameter similarity calculating means 120 vectorizes the essential parameter name and the explanatory character string of the essential parameter included in each essential parameter related information of the conversion destination (step S21). The vector obtained in step S21 can be called an essential parameter vector.

必須パラメータ類似度算出手段120は、変換元および変換先の各必須パラメータ関連情に含まれる必須パラメータ名および必須パラメータの説明文字列を、以下のようにベクトル化する。必須パラメータ類似度算出手段120は、ベクトル化しようとしている変換元および変換先の各必須パラメータ関連情報における必須パラメータ名および必須パラメータの説明文字列に含まれる単語を複数抽出する。本実施形態では、各名詞を抽出する場合を例にして説明する。必須パラメータ類似度算出手段120は、抽出した個々の名詞毎に、名詞が、一つの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数する。必須パラメータ類似度算出手段120は、名詞の種類毎に出現回数を計数した結果を要素とするベクトルを、その必須パラメータ関連情報(必須パラメータ名およびその説明文字列)のベクトルとして定める。必須パラメータ類似度算出手段120は、選択した変換元の必須パラメータ関連情および変換先の必須パラメータ関連情毎に、このようにベクトルを定めればよい。   The essential parameter similarity calculating unit 120 vectorizes the essential parameter name and the explanatory character string of the essential parameter included in each essential parameter related information of the conversion source and the conversion destination as follows. The essential parameter similarity calculating unit 120 extracts a plurality of words included in the essential parameter name and the explanation string of the essential parameter in the essential parameter related information of the conversion source and the conversion destination to be vectorized. In this embodiment, a case where each noun is extracted will be described as an example. The essential parameter similarity calculation means 120 counts the number of times that a noun appears in the essential parameter name and the explanatory character string of the essential parameter included in one essential parameter related information for each extracted noun. The essential parameter similarity calculation means 120 determines a vector whose element is the result of counting the number of appearances for each type of noun as a vector of essential parameter related information (essential parameter name and its explanatory character string). The essential parameter similarity calculating unit 120 may determine a vector in this way for each selected essential parameter related information of the conversion source and essential parameter related information of the conversion destination.

例えば、選択した変換元コマンドの必須パラメータ関連情報が、図8に例示するコマンド「interface ethernet port_no [sub_no] bridge−group tag vlan_no」の必須パラメータ関連情報311であるとする。また、変換先の必須パラメータ関連情報として、図8に例示するコマンド「set vlan tagbase port_no vlan_no」の必須パラメータ関連情報315と、コマンド「set spantree port_no enable」の必須パラメータ関連情報316が与えられたとする。   For example, it is assumed that the essential parameter related information of the selected conversion source command is the essential parameter related information 311 of the command “interface Ethernet port_no [sub_no] bridge-group tag vlan_no” illustrated in FIG. Further, it is assumed that essential parameter related information 315 of the command “set vlan tagbase port_no vlan_no” illustrated in FIG. 8 and required parameter related information 316 of the command “set spantree port_no enable” illustrated in FIG. .

必須パラメータ類似度算出手段120は、各必須パラメータ関連情報311,315,316における必須パラメータ名および必須パラメータの説明文字列から名詞となる文字列を抽出する。すなわち、必須パラメータ関連情報311の必須パラメータ名「port_no vlan_no」および必須パラメータの説明文字列「ポート番号 VLAN番号」と、必須パラメータ関連情報315の必須パラメータ名「port_no vlan_no」および必須パラメータの説明文字列「ポート番号 VLAN番号、又はVLAN名」と、必須パラメータ関連情報316の必須パラメータ名「port_no enable」および必須パラメータの説明文字列「ポート番号 有効、又は無効」とから、名詞となる文字列を抽出する。必須パラメータ類似度算出手段120は、例えば、形態素解析により、名詞となる文字列の抽出を行えばよいが、名詞となる文字列の抽出方法は特に限定されない。次に、必須パラメータ類似度算出手段120は、必須パラメータ関連情報311の必須パラメータ名「port_no vlan_no」および必須パラメータの説明文字列「ポート番号 VLAN番号」の中に、抽出した名詞が何回出現するかを個々の名詞毎に計数する。例えば、「port_no」は1回、「vlan_no」は1回、「ポート番号」は1回、・・・等のように計数を行う。必須パラメータ類似度算出手段120は、名詞毎の計数結果を格納したテーブル330(図8参照。以下、ベクトル計算テーブルと記す。)を作成する。また、必須パラメータ類似度算出手段120は、変換先の各必須パラメータ関連情報315,316についても同様に、抽出した名詞が何回出現するかを計数し、ベクトル計算テーブル330に計数結果を格納する。この結果、図8に例示するベクトル計算テーブル330が生成される。各必須パラメータ関連情報について、名詞毎に求めた計数結果の数値を並べることによって、ベクトルが得られる。計数結果の数値を並べる際の基準となる名詞の順番は、各ベクトルで共通である。図8に示すベクトル計算テーブル330において、最初の数値の並びである(1,1,1,1,0,0,0,0)は、変換元の必須パラメータ関連情報311のベクトルである。2番目の数値の並びである(1,1,1,1,1,0,0,0)は、変換先の必須パラメータ関連情報315のベクトルである。3番目の数値の並びである(1,0,1,0,0,1,1,1)は、変換先の必須パラメータ関連情報316のベクトルである。   The essential parameter similarity calculation means 120 extracts a character string that becomes a noun from the essential parameter name and the explanation character string of the essential parameter in each of the essential parameter related information 311, 315, 316. That is, the required parameter name “port_no vlan_no” of the required parameter related information 311 and the description character string “port number VLAN number” of the required parameter, the required parameter name “port_no vlan_no” of the required parameter related information 315, and the description character string of the required parameter Extract a character string that is a noun from "Port number VLAN number or VLAN name", required parameter name "port_no enable" of required parameter related information 316, and description string of required parameter "port number valid or invalid" To do. The essential parameter similarity calculation unit 120 may extract a character string that becomes a noun by, for example, morphological analysis, but the extraction method of the character string that becomes a noun is not particularly limited. Next, the required parameter similarity calculating unit 120 shows how many times the extracted noun appears in the required parameter name “port_no vlan_no” of the required parameter related information 311 and the description string “port number VLAN number” of the required parameter. Count for each noun. For example, “port_no” is counted once, “vlan_no” is counted once, “port number” is counted once, and so on. The essential parameter similarity calculation means 120 creates a table 330 (see FIG. 8; hereinafter referred to as a vector calculation table) that stores the count results for each noun. The essential parameter similarity calculating unit 120 similarly counts how many times the extracted noun appears for each of the essential parameter related information 315 and 316 of the conversion destination, and stores the count result in the vector calculation table 330. . As a result, a vector calculation table 330 illustrated in FIG. 8 is generated. For each essential parameter-related information, a vector is obtained by arranging numerical values of count results obtained for each noun. The order of nouns serving as a reference when arranging the numerical values of the counting results is common to each vector. In the vector calculation table 330 shown in FIG. 8, the first numerical value sequence (1, 1, 1, 1, 0, 0, 0, 0) is a vector of the essential parameter related information 311 of the conversion source. The second numerical sequence (1, 1, 1, 1, 1, 0, 0, 0) is a vector of essential parameter related information 315 at the conversion destination. The third numerical sequence (1, 0, 1, 0, 0, 1, 1, 1) is a vector of the conversion target essential parameter related information 316.

ステップS21の処理の後、必須パラメータ類似度算出手段120は、変換元の必須パラメータ関連情報から求めたベクトルと、変換先の必須パラメータ関連情報から求めたベクトルとの組毎に、必須パラメータ名および必須パラメータの説明文字列の類似度を計算する(ステップS22)。この類似度は、変換元側のベクトルと変換先側のベクトルとのコサイン類似度を計算することによって求めればよい。すなわち、ベクトル間のコサイン類似度を、必須パラメータ名および必須パラメータの説明文字列の類似度として計算すればよい。コサイン類似度の計算方法は、既知の手法でよい。すなわち、変換元側のベクトルをV1と表し、変換先側のベクトルをV2と表したときに、以下に示す(1)の左辺のcosθをV1,V2のコサイン類似度として計算すればよい。   After the processing of step S21, the essential parameter similarity calculating unit 120 calculates the essential parameter name and the parameter for each set of the vector obtained from the essential parameter related information of the conversion source and the vector obtained from the essential parameter related information of the conversion destination. The similarity of the explanatory character string of the essential parameter is calculated (step S22). This similarity may be obtained by calculating the cosine similarity between the vector on the conversion source side and the vector on the conversion destination side. That is, the cosine similarity between vectors may be calculated as the similarity between the essential parameter name and the explanatory character string of the essential parameter. The cosine similarity calculation method may be a known method. That is, when the vector on the conversion source side is expressed as V1 and the vector on the conversion destination side is expressed as V2, cos θ on the left side of (1) shown below may be calculated as the cosine similarity of V1 and V2.

Figure 2010231638
Figure 2010231638

ただし、<V1,V2>は、ベクトルV1,V2の内積である。また、||V1||はV1のノルムであり、||V2||はV2のノルムである。   However, <V1, V2> is an inner product of the vectors V1, V2. || V1 || is the norm of V1, and || V2 || is the norm of V2.

図8に示す例において、変換元の必須パラメータ関連情報311から求めたベクトルと、変換先の必須パラメータ関連情報315から求めたベクトルとのコサイン類似度を求めると、0.893となる。また、変換元の必須パラメータ関連情報311から求めたベクトルと、変換先の必須パラメータ関連情報316から求めたベクトルとのコサイン類似度を求めると、0.446となる。必須パラメータ類似度算出手段120は、変換元のベクトルと変換先のベクトルとの組毎に求めたコサイン類似度を格納したテーブル(必須パラメータ類似度テーブル340)を作成し、コマンド対応付け手段140に渡す。図8に示す必須パラメータ類似度テーブル340において、コサイン類似度は、必須パラメータ名および必須パラメータの説明文字列の類似度である。   In the example shown in FIG. 8, when the cosine similarity between the vector obtained from the conversion source essential parameter related information 311 and the vector obtained from the conversion destination essential parameter related information 315 is obtained, 0.893 is obtained. Further, when the cosine similarity between the vector obtained from the conversion source essential parameter related information 311 and the vector obtained from the conversion destination essential parameter related information 316 is obtained, it is 0.446. The essential parameter similarity calculating unit 120 creates a table (essential parameter similarity table 340) that stores the cosine similarity obtained for each pair of the conversion source vector and the conversion destination vector. hand over. In the essential parameter similarity table 340 shown in FIG. 8, the cosine similarity is the similarity between the essential parameter name and the explanation character string of the essential parameter.

次に、コマンド類似度算出手段130の動作を説明する。図9は、コマンド関連情報の類似度の算出動作の例を示すフローチャートである。図10は、コマンド関連情報の類似度の計算例を示す説明図である。コマンド類似度算出手段130は、変換元側のコマンド名およびコマンドの説明文字列と、変換先側のコマンド名およびコマンドの説明文字列との類似度を、コマンド関連情報の類似度として算出する。   Next, the operation of the command similarity calculation unit 130 will be described. FIG. 9 is a flowchart illustrating an example of an operation for calculating the similarity of command-related information. FIG. 10 is an explanatory diagram illustrating a calculation example of the similarity of the command related information. The command similarity calculation unit 130 calculates the similarity between the command name and command description character string on the conversion source side and the command name and command description character string on the conversion destination side as the similarity of the command related information.

コマンド類似度算出手段130は、選択した変換元コマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列をベクトル化する。コマンド類似度算出手段130は、同様に、変換先の各コマンド関連情報に含まれるコマンド名およびコマンドの説明文字列をベクトル化する(ステップS31)。ステップS31で求めたベクトルは、コマンドベクトルと呼ぶことができる。   The command similarity calculation unit 130 vectorizes the command name and the command description character string included in the command related information of the selected conversion source command. Similarly, the command similarity calculation unit 130 vectorizes the command name and the command description character string included in each command-related information of the conversion destination (step S31). The vector obtained in step S31 can be called a command vector.

コマンド類似度算出手段130は、変換元および変換先の各コマンド関連情報に含まれるコマンド名およびコマンドの説明文字列を、以下のようにベクトル化する。コマンド類似度算出手段130は、ベクトル化しようとしている変換元および変換先の各コマンド関連情報におけるコマンド名およびコマンドの説明文字列に含まれる単語を複数抽出する。ここでも各名詞を抽出する場合を例にして説明する。コマンド類似度算出手段130は、抽出した個々の名詞毎に、名詞が、一つのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列に出現する回数を計数する。コマンド類似度算出手段130は、名詞の種類毎に出現回数を計数した結果を要素とするベクトルを、そのコマンド関連情報(コマンド名およびその説明文字列)のベクトルとして定める。コマンド類似度算出手段130は、選択した変換元のコマンド関連情報および変換先のコマンド関連情報毎に、このようにベクトルを定めればよい。   The command similarity calculation unit 130 vectorizes the command name and the command description character string included in the command related information of the conversion source and the conversion destination as follows. The command similarity calculation unit 130 extracts a plurality of words included in the command name and the command description character string in each command related information of the conversion source and conversion destination to be vectorized. Here, the case where each noun is extracted will be described as an example. For each extracted noun, the command similarity calculation means 130 counts the number of times the noun appears in the command name and command description character string included in one command related information. The command similarity calculation means 130 determines a vector having the result of counting the number of appearances for each type of noun as a vector of the command related information (command name and its explanatory character string). The command similarity calculating unit 130 may determine a vector in this way for each selected conversion source command related information and conversion destination command related information.

例えば、選択した変換元のコマンド関連情報が、図10に例示するコマンド「interface ethernet port_no [sub_no] bridge−group tag vlan_no」のコマンド関連情報701であるとする。同様に、変換先のコマンド関連情報として、図10に例示するコマンド「set vlan tagbase port_no vlan_no」のコマンド関連情報702と、コマンド「set spantree port_no enable」のコマンド関連情報703が与えられたとする。   For example, it is assumed that the command-related information of the selected conversion source is command-related information 701 of the command “interface Ethernet port_no [sub_no] bridge-group tag vlan_no” illustrated in FIG. Similarly, assume that command-related information 702 of the command “set vlan tagbase port_no vlan_no” and command-related information 703 of the command “set spantree port_no enable” illustrated in FIG. 10 are given as command-related information of the conversion destination.

コマンド類似度算出手段130は、各コマンド関連情報701〜703におけるコマンド名およびコマンド名の説明文字列から名詞となる文字列を抽出する。すなわち、コマンド関連情報701におけるコマンド名「interface ethernet port_no [sub_no] bridge−group tag vlan_no」およびコマンドの説明文字列「ポート番号を設定します。 タグVLANを設定します。」と、コマンド関連情報702におけるコマンド名「set vlan tagbase port_no vlan_no」およびコマンドの説明文字列「各ポート番号にタグVLANを設定します。」と、コマンド関連情報703におけるコマンド名「set spantree port_no enable」およびコマンドの説明文字列「各ポートにスパニングツリーを設定します。」とから、名詞となる文字列を抽出する。コマンド類似度算出手段130は、例えば、形態素解析により、名詞となる文字列の抽出を行えばよいが、名詞となる文字列の抽出方法は特に限定されない。次に、コマンド類似度算出手段130は、コマンド関連情報701におけるコマンド名「interface ethernet port_no [sub_no] bridge−group tag vlan_no」およびコマンドの説明文字列「ポート番号を設定します。 タグVLANを設定します。」の中に、抽出した名詞が何回出現するかを個々の名詞毎に計数する。例えば、「port_no」は1回、「vlan_no」は1回、「ポート番号」は1回、・・・等のように計数を行う。コマンド類似度算出手段130は、名詞毎の計数結果を格納したテーブル331(ベクトル計算テーブル、図10参照)を作成する。また、コマンド類似度算出手段130は、変換先の各コマンド関連情報についても同様に、抽出した名詞が何回出現するかを計数し、ベクトル計算テーブル331に計数結果を格納する。この結果、図10に例示するベクトル計算テーブル331が生成される。各コマンドについて、名詞毎に求めた計数結果の数値を並べることによって、ベクトルが得られる。計数結果の数値を並べる際の基準となる名詞の順番は、各ベクトルで共通である。図10に示すベクトル計算テーブル331において、最初の数値の並びである(1,1,1,1,1,1,1,0,・・・)は、変換元のコマンド関連情報701のベクトルである。2番目の数値の並びである(0,0,1,0,0,0,1,1,・・・)は、変換先のコマンド関連情報702のベクトルである。3番目の数値の並びである(0,0,1,0,0,0,0,1,・・・)は、変換先のコマンド関連情報703のベクトルである。   The command similarity calculation unit 130 extracts a character string that is a noun from the command name and the command character description character string in each of the command related information 701 to 703. That is, the command name “interface Ethernet port_no [sub_no] bridge-group tag vlan_no” in the command related information 701 and the command description character string “Set the port number. Set the tag VLAN” and the command related information 702. Command name “set vlan tagbase port_no vlan_no” and command description character string “Set tag VLAN to each port number”, and command name “set spantree port_no enable” and command description character string in command related information 703 From "Set a spanning tree for each port." The command similarity calculation unit 130 may extract a character string that becomes a noun by, for example, morphological analysis, but the extraction method of the character string that becomes a noun is not particularly limited. Next, the command similarity calculating unit 130 sets the command name “interface Ethernet port_no [sub_no] bridge-group tag vlan_no” and the command description character string “port number” in the command related information 701. The number of times the extracted noun appears is counted for each noun. For example, “port_no” is counted once, “vlan_no” is counted once, “port number” is counted once, and so on. The command similarity calculation means 130 creates a table 331 (vector calculation table, see FIG. 10) that stores the count results for each noun. Similarly, the command similarity calculation unit 130 counts how many times the extracted noun appears for each command related information of the conversion destination, and stores the count result in the vector calculation table 331. As a result, a vector calculation table 331 illustrated in FIG. 10 is generated. For each command, a vector is obtained by arranging the numerical values of the counting results obtained for each noun. The order of nouns serving as a reference when arranging the numerical values of the counting results is common to each vector. In the vector calculation table 331 shown in FIG. 10, the first numerical value sequence (1, 1, 1, 1, 1, 1, 1, 0,...) Is a vector of the command related information 701 of the conversion source. is there. The second numerical sequence (0, 0, 1, 0, 0, 0, 1, 1,...) Is a vector of command related information 702 to be converted. The third numerical sequence (0, 0, 1, 0, 0, 0, 0, 1,...) Is a vector of command related information 703 to be converted.

ステップS31の処理の後、コマンド類似度算出手段130は、変換元のコマンド関連情報から求めたベクトルと、変換先のコマンド関連情報から求めたベクトルとの組毎に、コマンド名およびコマンドの説明文字列の類似度を計算する(ステップS32)。この類似度は、変換元側のベクトルと変換先側のベクトルとのコサイン類似度を計算することによって求めればよい。すなわち、ベクトル間のコサイン類似度を、コマンド名およびコマンドの説明文字列の類似度として計算すればよい。コサイン類似度の計算は、ステップS22(図7参照)と同様に行えばよい。   After the processing of step S31, the command similarity calculating unit 130 determines the command name and the command explanatory character for each set of the vector obtained from the command related information of the conversion source and the vector obtained from the command related information of the conversion destination. Column similarity is calculated (step S32). This similarity may be obtained by calculating the cosine similarity between the vector on the conversion source side and the vector on the conversion destination side. That is, the cosine similarity between vectors may be calculated as the similarity between the command name and the command description character string. The cosine similarity calculation may be performed in the same manner as in step S22 (see FIG. 7).

図10に示す例において、変換元のコマンド関連情報701から求めたベクトルと、変換先のコマンド関連情報702から求めたベクトルとのコサイン類似度を求めると、0.558となる。また、変換元のコマンド関連情報701から求めたベクトルと、変換先のコマンド関連情報703から求めたベクトルとのコサイン類似度を求めると、0.335となる。コマンド類似度算出手段130は、変換元のベクトルと変換先のベクトルとの組毎に求めたコサイン類似度を格納したテーブル(コマンド類似度テーブル350)を作成し、コマンド対応付け手段140に渡す。図10に示すコマンド類似度テーブル350において、コサイン類似度は、コマンド名およびコマンドの説明文字列の類似度である。   In the example shown in FIG. 10, when the cosine similarity between the vector obtained from the command related information 701 at the conversion source and the vector obtained from the command related information 702 at the conversion destination is obtained, 0.558 is obtained. Further, when the cosine similarity between the vector obtained from the command related information 701 at the conversion source and the vector obtained from the command related information 703 at the conversion destination is obtained, 0.335 is obtained. The command similarity calculation unit 130 creates a table (command similarity table 350) that stores the cosine similarity obtained for each pair of the conversion source vector and the conversion destination vector, and passes it to the command association unit 140. In the command similarity table 350 shown in FIG. 10, the cosine similarity is the similarity between the command name and the description character string of the command.

なお、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130とが独立したコンピュータによって実現され、2つのコンピュータが同時に処理を行ってもよい。   The essential parameter similarity calculating unit 120 and the command similarity calculating unit 130 may be realized by independent computers, and two computers may perform processing simultaneously.

必須パラメータ類似度算出手段120(コマンド類似度算出手段130でもよい。)に選択された変換元コマンドと各変換先コマンドについて、必須パラメータ名および必須パラメータの説明文字列の類似度、コマンド名およびコマンドの説明文字列の類似度がそれぞれ計算された後、コマンド対応付け手段140は、それらの値を用いて、変換元コマンドと変換先コマンドとの総合類似度を計算する。コマンド対応付け手段140は、選択されている変換元コマンドと各変換先コマンドとの総合類似度をそれぞれ計算し、総合類似度に基づいて、その変換元コマンドと、いずれかの変換先コマンドとを対応付ける。   For the conversion source command and each conversion destination command selected by the required parameter similarity calculation unit 120 (or command similarity calculation unit 130), the similarity of the required parameter name and the description string of the required parameter, the command name and the command Are calculated, the command association unit 140 calculates the total similarity between the conversion source command and the conversion destination command using those values. The command association unit 140 calculates the total similarity between the selected conversion source command and each conversion destination command, and based on the total similarity, the conversion source command and any conversion destination command are calculated. Associate.

図11は、変換元コマンドと変換先コマンドとの対応付け処理の例を示すフローチャートである。図12は、コマンド対応付け手段140が実行するコマンドの対応付けの具体例を示す説明図である。   FIG. 11 is a flowchart illustrating an example of the association process between the conversion source command and the conversion destination command. FIG. 12 is an explanatory diagram illustrating a specific example of command association executed by the command association unit 140.

まず、コマンド対応付け手段140は、必須パラメータ類似度算出手段120の算出結果(コマンドの必須パラメータ名および必須パラメータの説明文字列の類似度)と、コマンド類似度算出手段130の算出結果(コマンド名およびコマンドの説明文字列の類似度)とを用いて、選択されている変換元コマンドと各変換先コマンドとの組毎に、変換元コマンドおよび変換先コマンドの総合類似度を計算する(ステップV1)。コマンドの必須パラメータ名および必須パラメータの説明文字列の類似度は、必須パラメータ類似度テーブル340を参照すればよい。また、コマンド名およびコマンドの説明文字列の類似度は、コマンド類似度テーブル350を参照すればよい。   First, the command association unit 140 calculates the calculation result of the essential parameter similarity calculation unit 120 (the similarity of the required parameter name of the command and the description character string of the essential parameter) and the calculation result of the command similarity calculation unit 130 (command name). And the similarity of the description character string of the command), the total similarity of the conversion source command and the conversion destination command is calculated for each pair of the selected conversion source command and each conversion destination command (step V1). ). The essential parameter similarity table 340 may be referred to for the essential parameter name of the command and the similarity of the explanation character string of the essential parameter. Also, the command similarity table 350 may be referred to for the similarity between the command name and the command description character string.

コマンド対応付け手段140は、必須パラメータ名および必須パラメータの説明文字列の類似度(必須パラメータ関連情報の類似度)と、コマンド名およびコマンドの説明文字列の類似度(コマンド関連情報の類似度)とに、それぞれの重み値を乗じる。そして、この2種類の類似度にそれぞれの重み値を乗じた結果の和を総合類似度として算出する。必須パラメータ名および必須パラメータの説明文字列の類似度(必須パラメータ関連情報の類似度)に乗じる重み値を、第1の重み値と記す。コマンド名およびコマンドの説明文字列の類似度(コマンド関連情報の類似度)に乗じる重み値を、第2の重み値と記す。なお、重み値は、重み係数と称されることもある。   The command associating unit 140 uses the similarity between the required parameter name and the description string of the required parameter (similarity of the required parameter related information) and the similarity of the command name and the description text of the command (similarity of the command related information). And the respective weight values. Then, the sum of the results of multiplying these two types of similarity by the respective weight values is calculated as the total similarity. The weight value to be multiplied by the similarity of the essential parameter name and the description string of the essential parameter (similarity of the essential parameter related information) is referred to as a first weight value. A weight value to be multiplied by the similarity between the command name and the description character string of the command (similarity of command related information) is referred to as a second weight value. The weight value may be referred to as a weight coefficient.

第1の重み値および第2の重み値は、例えば、予め設定されている。このとき、第1の重み値は、第2の重み値より大きな値として定められていることが好ましい。例えば、第1の重み値を0.70に設定し、第2の重み値を0.30に設定すれば、「第1の重み値>第2の重み値」という条件に合う。なお、本例では、第1の重み値と第2の重み値との和が1になるように設定しているが、第1の重み値および第2の重み値は、「第1の重み値>第2の重み値」という条件を満たせば、どのような値であってもよい。重み値は、例えば重み値テーブル370(図12参照)のように予め定められているが、ユーザが自由に変更できる構成であってもよい。   The first weight value and the second weight value are set in advance, for example. At this time, it is preferable that the first weight value is determined as a value larger than the second weight value. For example, if the first weight value is set to 0.70 and the second weight value is set to 0.30, the condition “first weight value> second weight value” is met. In this example, the sum of the first weight value and the second weight value is set to 1, but the first weight value and the second weight value are “first weight value”. Any value may be used as long as the condition “value> second weight value” is satisfied. The weight value is determined in advance as in, for example, the weight value table 370 (see FIG. 12), but may be configured so that the user can freely change it.

選択されているコマンドが、図12(a)に示す変換元コマンドAであるとする。また、変換先コマンドとして、図12(b)に示す変換先コマンドB,Cがあるとする。なお、変換コマンドAは、併せて使用される2つのコマンドを一つとみなしたものである。この変換元コマンドAと変換先コマンドB,Cとの各組について、必須パラメータ関連情報の類似度を求めた結果として、図12(c)に示す必須パラメータ類似度340が生成されているとする。また、変換元コマンドAと変換先コマンドB,Cとの各組について、コマンド関連情報の類似度を求めた結果として、図12(c)に示すコマンド類似度テーブル350が生成されているとする。本例では、コマンドA,Bの必須パラメータ関連情報の類似度は0.893であり、コマンドA,Bのコマンド関連情報の類似度は0.558である。また、図12(c)に示す重み値テーブル370が予め設定され、第1の重み値が0.70であり、第2の重み値が0.30であるとする。この場合、コマンド対応付け手段140は、コマンドA,Bの総合類似度を、以下のように計算する。   Assume that the selected command is a conversion source command A shown in FIG. Also, assume that conversion destination commands B and C shown in FIG. Note that the conversion command A is a combination of two commands used together. Assume that the required parameter similarity 340 shown in FIG. 12C is generated as a result of obtaining the similarity of the essential parameter related information for each pair of the conversion source command A and the conversion destination commands B and C. . Also, assume that a command similarity table 350 shown in FIG. 12C is generated as a result of obtaining the similarity of command related information for each set of conversion source command A and conversion destination commands B and C. . In this example, the similarity of the essential parameter related information of the commands A and B is 0.893, and the similarity of the command related information of the commands A and B is 0.558. Further, it is assumed that the weight value table 370 shown in FIG. 12C is preset, the first weight value is 0.70, and the second weight value is 0.30. In this case, the command association unit 140 calculates the overall similarity between the commands A and B as follows.

(0.893×0.70)+(0.558×0.30)=0.792 (0.893 x 0.70) + (0.558 x 0.30) = 0.792

コマンド対応付け手段140は、コマンドA,Cの総合類似度についても、同様に、以下のように計算する。   Similarly, the command association unit 140 calculates the total similarity of the commands A and C as follows.

(0.446×0.70)+(0.335×0.30)=0.413 (0.446 × 0.70) + (0.335 × 0.30) = 0.413

ステップV1において、コマンド対応付け手段140は、変換元コマンドと変換先コマンドの総合類似度をテーブルに格納する。以下、このテーブルを総合類似度テーブル380と記す。本例では、ステップV1の結果、図12に示す総合類似度テーブル380が得られる。   In step V1, the command association unit 140 stores the total similarity between the conversion source command and the conversion destination command in a table. Hereinafter, this table is referred to as an overall similarity table 380. In this example, as a result of step V1, a total similarity table 380 shown in FIG. 12 is obtained.

次に、コマンド対応付け手段140は、選択されている変換元コマンドと対応付けられる候補(すなわち、各変換先コマンド)を、その変換元コマンドとの総合類似度が高い順に並べ替える。そして、並べ替えた順に、変換元コマンドと、各変換先コマンドとの組をユーザに提示する(ステップV2)。ステップV2では、総合類似度の値も提示してもよい。例えば、コマンド対応付け支援システム100が備えるディスプレイ装置(図示せず。)に表示させればよい。ユーザへの提示方法は、特に限定されない。例えば、ディスプレイ装置上にGUI(Graphical User Interface)を表示させてもよい。あるいは、コマンドプロンプトに標準出力することによって出力してもよい。   Next, the command associating unit 140 rearranges the candidates associated with the selected conversion source command (that is, each conversion destination command) in descending order of the total similarity with the conversion source command. Then, a set of the conversion source command and each conversion destination command is presented to the user in the rearranged order (step V2). In step V2, the value of total similarity may be presented. For example, what is necessary is just to display on the display apparatus (not shown) with which the command matching assistance system 100 is provided. The presentation method to the user is not particularly limited. For example, a GUI (Graphical User Interface) may be displayed on the display device. Or you may output by carrying out standard output to a command prompt.

ステップV2において、例えば、総合類似度テーブル380に格納された各コマンドを総合類似度順に並べ替えてもよい。図13は、図12に示す総合類似度テーブル380を総合類似度順に並べ替えた結果を示す。ただし、図13に示す例では、並べ替え前後で、総合類似度テーブル380は変化していない(図12、図13参照)。   In step V2, for example, the commands stored in the overall similarity table 380 may be rearranged in the order of overall similarity. FIG. 13 shows the result of rearranging the overall similarity table 380 shown in FIG. 12 in the order of overall similarity. However, in the example shown in FIG. 13, the total similarity table 380 does not change before and after the rearrangement (see FIGS. 12 and 13).

選択している変換元コマンドと各変換先コマンドとの組を出力する場合、例えば、変換元コマンドと、並べ替え後の総合類似度テーブル380を出力すればよい。総合類似度テーブル380に含まれる個々のコマンドは、同時に出力された変換元コマンドとの組を表す。   When outputting a combination of the selected conversion source command and each conversion destination command, for example, the conversion source command and the rearranged total similarity table 380 may be output. Each command included in the total similarity table 380 represents a set with a conversion source command output at the same time.

ユーザは、総合類似度が高い順に出力される総合類似度テーブル380に含まれる個々のコマンドを参照して、変換元コマンドと対応付けるべき変換先コマンドを判断し、そのコマンドを指定する操作を行う。すなわち、対応付けるべき変換元コマンドと変換先コマンドとの組を指定する。ステップV2において、コマンド対応付け手段140は、例えば、ユーザ操作部(図示せず。)を介して、ユーザによる指定を受けると、指定された組み合わせにおけるコマンド同士を対応付ける。例えば、図12に示す総合類似度テーブル380におけるコマンドB(set vlan tagbase port_no vlan_no)がユーザに選択されることで、コマンドA(interface ethernet port_no [sub_no] bridge−group tag vlan_no)とコマンドBとの組が指定される。すると、コマンド対応付け手段140は、そのコマンド同士を対応付ける。コマンド対応付け手段140は、対応付けた変換元コマンドおよび変換先コマンドを変換ルール作成手段150に通知する。例えば、コマンド名の組を変換ルール作成手段150に渡す。   The user refers to individual commands included in the overall similarity table 380 output in descending order of the overall similarity, determines a conversion destination command to be associated with the conversion source command, and performs an operation of designating the command. That is, a pair of a conversion source command and a conversion destination command to be associated is designated. In step V <b> 2, for example, when the command association unit 140 receives a designation by the user via a user operation unit (not shown), the commands in the designated combination are associated with each other. For example, the command B (set vlan tagbase port_no vlan_no) in the total similarity table 380 illustrated in FIG. A set is specified. Then, the command association unit 140 associates the commands with each other. The command association unit 140 notifies the conversion rule creation unit 150 of the associated conversion source command and conversion destination command. For example, the command name pair is passed to the conversion rule creation means 150.

また、コマンド対応付け手段140は、ユーザに指定された組に含まれるコマンド(すなわち対応付けしたコマンド)を、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストから除外する(ステップV3)。例えば、図12に示すコマンドA,Bを対応付けたならば、対応付けの対象となる変換元コマンドのリストからコマンドAを除外し、対応付けの対象となる変換先コマンドのリストからコマンドBを除外する。   In addition, the command association unit 140 excludes commands included in the set designated by the user (that is, associated commands) from the list of conversion source commands and conversion destination commands to be associated (step V3). . For example, if the commands A and B shown in FIG. 12 are associated, the command A is excluded from the list of conversion source commands to be associated, and the command B is converted from the list of conversion destination commands to be associated. exclude.

ステップV3が完了したならば、ステップV3でコマンドが除外された対応付けの対象となる変換元コマンドおよび変換先コマンドのリストを用いて、必須パラメータ類似度算出手段120(コマンド類似度算出手段130でもよい。)は、変換先コマンドと対応付けようとする一つの変換元コマンドを新たに選択する。そして、その変換元コマンドについて、必須パラメータ類似度算出手段120がステップS21〜S22(図7参照)を行い、コマンド類似度算出手段130がステップS31〜S32(図9参照)を行う。さらに、コマンド対応付け手段140がステップV1〜V3を行う。この処理を繰り返すことで、コマンドの対応付けを順次行っていく。対応付けの完了したコマンドを、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストから除外していくので、必須パラメータ類似度算出手段120やコマンド類似度算出手段130における類似度計算を高速化することができる。そして、例えば、変換元コマンド群の全てのコマンドについて対応付けが完了したならば、繰り返し処理を終了する。   When step V3 is completed, the essential parameter similarity calculation unit 120 (also in the command similarity calculation unit 130) is used by using the list of conversion source commands and conversion destination commands to be matched in which the command is excluded in step V3. (Yes) selects a new conversion source command to be associated with the conversion destination command. For the conversion source command, the essential parameter similarity calculating unit 120 performs steps S21 to S22 (see FIG. 7), and the command similarity calculating unit 130 performs steps S31 to S32 (see FIG. 9). Further, the command association unit 140 performs steps V1 to V3. By repeating this process, the commands are sequentially associated. Since the command for which the association has been completed is excluded from the list of conversion source commands and conversion destination commands to be associated, the similarity calculation in the essential parameter similarity calculation unit 120 and the command similarity calculation unit 130 is performed at high speed. Can be For example, when the association is completed for all commands in the conversion source command group, the iterative process is terminated.

また、ステップV2において、総合類似度だけでなく、コマンドの必須パラメータ名および必須パラメータの説明文字列の類似度(コサイン類似度)と、コマンド名およびコマンドの説明文字列の類似度(コサイン類似度)とを同時に提示してもよい。そして、それらの項目のうち、いずれかがユーザに指定されたならば、指定された項目の値の大きい順に、再度並べ替えを行って、並べ替え毎のコマンドの組を再提示してもよい。   In step V2, not only the overall similarity, but also the required parameter name of the command and the description character string similarity of the required parameter (cosine similarity), and the similarity of the command name and command description character string (cosine similarity) ) May be presented at the same time. Then, if any of these items is designated by the user, it may be rearranged again in descending order of the value of the designated item, and a command set for each rearrangement may be presented again. .

また、上記の例では、ユーザにコマンドを提示し、ユーザに指定されたコマンドの組を対応付ける場合を示したが、ユーザに対する提示を行わずに対応付け処理を行ってもよい。例えば、コマンド対応付け手段140は、ステップV1で算出した総合類似度が最大となる変換元コマンドと、変換先コマンドとの組を特定し、総合類似度が最大となる変換元コマンドと変換先コマンドとを対応付けてもよい。その後、コマンド対応付け手段140は、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストから、対応付けの完了したコマンドを除外すればよい。他の点については、既に説明した動作と同様である。   In the above example, a case is shown in which a command is presented to the user and a set of commands designated by the user is associated. However, the association process may be performed without presenting to the user. For example, the command associating unit 140 identifies a pair of a conversion source command and a conversion destination command with the maximum total similarity calculated at step V1, and a conversion source command and a conversion destination command with the maximum total similarity. May be associated with each other. Thereafter, the command association unit 140 may exclude the command for which association has been completed from the list of conversion source commands and conversion destination commands to be associated. The other points are the same as those already described.

コマンド対応付け手段140によって、コマンド同士の対応付けが行われた後、変換ルール作成手段150は、対応付けられたコマンドの組毎に、変換元コマンド群のコマンドを変換先コマンド群のコマンドに変換する変換ルールを生成する。例えば、変換ルール作成手段150は、対応付けられたコマンドの組における変換元側のコマンドのコマンド名を変換先側のコマンド名に変換し、変換元側のコマンドの各パラメータを、変換先側のコマンドにおける各パラメータに用いることを指定する変換ルールを作成する。なお、変換ルール作成手段150は、対応付けられたコマンドをコマンド対応付け手段140から通知される。通知されたコマンドの各コマンドのパラメータは、例えば、変換元コマンドテーブルおよび変換先コマンドテーブルを参照すればよい。変換元コマンドテーブルおよび変換先コマンドテーブルは、それぞれ、情報抽出手段110から渡されればよい。   After the commands are associated with each other by the command associating unit 140, the conversion rule creating unit 150 converts the commands of the conversion source command group into the commands of the conversion destination command group for each set of associated commands. Generate a conversion rule. For example, the conversion rule creation unit 150 converts the command name of the conversion source side command in the associated command set into the conversion destination side command name, and converts each parameter of the conversion source side command to the conversion destination side command name. Create a conversion rule that specifies use for each parameter in the command. The conversion rule creation unit 150 is notified of the associated command from the command association unit 140. For parameters of each command of the notified command, for example, a conversion source command table and a conversion destination command table may be referred to. The conversion source command table and the conversion destination command table may be passed from the information extraction unit 110, respectively.

図14は、変換ルールを作成する処理の具体例を示す。図14に示す変換元コマンド801と変換先コマンド802が対応付けられているとする。本例では、変換元コマンド801は、併せて使用される2つのコマンドをセットにして一つのコマンドとみなした複合コマンドである。変換ルール作成手段150は、対応付けられた変換元コマンドの機器名と、コマンド名と、各パラメータ名とを格納し、さらに、変換元コマンドに対応する変換先コマンドの機器名と、コマンド名と、各パラメータ名とを格納したテーブル(以下、変換ルールテーブル)を作成する。また、変換元コマンドまたは変換先コマンドが、関連コマンドをセットにした複合コマンドである場合、変換ルール作成手段150は、セットにされる前の個々のコマンドの機器名と、コマンド名と、各パラメータ名とを変換ルールテーブルに格納する。このとき、変換ルール作成手段150は、関連コマンドの情報をコマンドマニュアルにおける記載順に変換ルールテーブルに格納する。すなわち、併せて使用される複数のコマンドについてはコマンドの使用順序に従って各コマンドの情報を変換ルールテーブルに格納する。パラメータ同士の対応付けでは、例えば、パラメータ名が同一の文字列を含んでいるパラメータ同士が対応付けられると判定すればよい。この変換ルールテーブルが、変換ルールとなる。また、本例では、コマンドマニュアルが機器のコマンドマニュアルである場合を例示したが、コマンドマニュアルはソフトウェアのコマンドマニュアルであってもよい。その場合、情報抽出手段110がコマンドマニュアルからソフトウェア名を抽出し、変換ルール作成手段150は、ソフトウェア名を指定する情報を変換ルールテーブルに格納すればよい。   FIG. 14 shows a specific example of processing for creating a conversion rule. Assume that the conversion source command 801 and the conversion destination command 802 shown in FIG. 14 are associated with each other. In this example, the conversion source command 801 is a composite command in which two commands used together are regarded as one command. The conversion rule creating means 150 stores the device name of the conversion source command, the command name, and each parameter name associated with each other, and further, the device name of the conversion destination command corresponding to the conversion source command, the command name, A table storing the parameter names (hereinafter referred to as a conversion rule table) is created. Also, when the conversion source command or the conversion destination command is a composite command in which related commands are set, the conversion rule creation unit 150 sets the device name, command name, and parameters of each command before being set. The name is stored in the conversion rule table. At this time, the conversion rule creating means 150 stores the information on the related commands in the conversion rule table in the order described in the command manual. That is, for a plurality of commands used together, information on each command is stored in the conversion rule table in accordance with the order in which the commands are used. In association between parameters, for example, it may be determined that parameters including character strings having the same parameter name are associated with each other. This conversion rule table becomes a conversion rule. Further, in this example, the case where the command manual is a command manual of the device is illustrated, but the command manual may be a software command manual. In that case, the information extraction unit 110 may extract the software name from the command manual, and the conversion rule creation unit 150 may store information specifying the software name in the conversion rule table.

図14に示す例では、ステップV2(図11参照)において、「interface ethernet port_no [sub_no] bridge−group tag vlan_no」と組をなすコマンドとして「set vlan tagbase port_no vlan_no」が選択された場合を例にしている。図14に示す変換ルールテーブル390では、変換元コマンドのコマンド名「interface ethernet port_no [sub_no]」および「bridge−group tag vlan_no」が格納されている。また、それぞれの変換元コマンドの必須パラメータ名およびオプションパラメータ名がそれぞれ格納されている。変換先のコマンド名として「set vlan tagbase port_no vlan_no」が格納され、その2つの必須パラメータが格納されている。そして、セットにされる前の個々の変換元コマンドと、一つの変換先コマンドとを対応づけて変換ルールテーブルに格納することにより、その個々の変換コマンドのセットを、一つの変換先コマンドに変換することを表している。図14に示す変換ルールテーブル390は、「機器名がAで変換元コマンド名『interface ethernet port_no [sub_no]』と、『bridge−group tag vlan_no』との複合コマンドである場合、変換先コマンド名『set vlan tagbase port_no vlan_no』に変換し、変換元コマンドの必須パラメータ『port_no』および『vlan_no』を、変換先コマンドの必須パラメータ『port_no』および『vlan_no』として入力する。」ということを表す。変換ルールテーブル390における各パラメータを格納する列の数は、変換元側のコマンドや変換先側のコマンドのパラメータ数に応じて可変である。変換ルールの記述形式は、コマンド名および各パラメータの対応付けができれば、図14に例示する記述形式に限定されない。   In the example illustrated in FIG. 14, in the case of “set vlan tag port_no vo_no vo_no ov” in step V2 (see FIG. 11), “set vlan tag base port_no ov” is selected as a command that forms a pair with “interface Ethernet port_no [sub_no] bridge-group tag vlan_no”. ing. In the conversion rule table 390 illustrated in FIG. 14, the command names “interface ethernet port_no [sub_no]” and “bridge-group tag vlan_no” of the conversion source command are stored. Also, essential parameter names and optional parameter names of the respective conversion source commands are stored. “Set vlan tagbase port_no vlan_no” is stored as the command name of the conversion destination, and the two essential parameters are stored. Then, by converting the individual conversion source commands before being set into one conversion destination command and storing them in the conversion rule table, the individual conversion command set is converted into one conversion destination command. Represents what to do. The conversion rule table 390 shown in FIG. 14 indicates that “when the device name is A and the conversion source command name“ interface Ethernet port_no [sub_no] ”and“ bridge-group tag vlan_no ”are combined commands, the conversion destination command name“ It is converted to “set vlan tagbase port_no vlan_no”, and the required parameters “port_no” and “vlan_no” of the conversion source command are input as the required parameters “port_no” and “vlan_no” of the conversion destination command. The number of columns for storing each parameter in the conversion rule table 390 is variable according to the number of parameters of the conversion source side command and the conversion destination side command. The description format of the conversion rule is not limited to the description format illustrated in FIG. 14 as long as the command name can be associated with each parameter.

また、一つの変換元コマンドと、セットにされる前の個々の変換先コマンドとを対応付けて変換ルールテーブル390に格納してもよい。その場合、一つの変換元コマンドを、セットにして使用される個々の変換先コマンドに変換することを表す。また、複合コマンド同士を対応付けて、変換ルールテーブル390に格納してもよい。   One conversion source command and each conversion destination command before being set may be associated with each other and stored in the conversion rule table 390. In that case, one conversion source command is converted into individual conversion destination commands used as a set. Further, the complex commands may be associated with each other and stored in the conversion rule table 390.

変換ルール作成手段150は、作成した変換ルール(本例では変換ルールテーブル390)を変換ルール記憶装置160に記憶される。   The conversion rule creation means 150 stores the created conversion rule (in this example, the conversion rule table 390) in the conversion rule storage device 160.

なお、図14の例のように、変換ルール作成手段150が変換ルールを作成する際に、対応付けられているコマンド同士でパラメータ数が一致せず、対応付けられないパラメータが生じる場合もあり得る。例えば、図14に示す例では、変換元コマンドのオプションパラメータに対応する変換先コマンドのオプションパラメータがない。対応付けられなかったパラメータが存在する場合、変換ルール作成手段150は、変換ルールとともに、そのパラメータのパラメータ名も変換ルール記憶装置160に記憶させればよい。   As in the example of FIG. 14, when the conversion rule creation unit 150 creates a conversion rule, the number of parameters does not match between the commands that are associated with each other, and an uncorrelated parameter may occur. . For example, in the example shown in FIG. 14, there is no option parameter of the conversion destination command corresponding to the option parameter of the conversion source command. If there is a parameter that has not been associated, the conversion rule creation unit 150 may store the parameter name of the parameter in the conversion rule storage device 160 together with the conversion rule.

変換ルール記憶装置160が記憶する変換ルールテーブル390をユーザが編集可能な構成であってもよい。例えば、コマンド対応付け支援システム100がキーボードやマウス等のユーザに操作されるユーザ操作部(図示せず。)と、そのユーザ操作部を介して入力されたユーザの指示により、変換ルール記憶装置160が記憶する変換ルールテーブル390を編集する変換ルール編集手段(図示せず。)とを備えていてもよい。変換ルール編集手段は、ユーザの指示に従って、変換ルール記憶装置160が記憶する変換ルールテーブル390に対して、新たな内容を追加したり、修正したり、削除したりしてもよい。変換ルール編集手段(図示せず。)も、例えば、プログラムに従って動作するCPUによって実現される。   The conversion rule table 390 stored in the conversion rule storage device 160 may be configured to be editable by the user. For example, the conversion rule storage device 160 is operated according to a user operation unit (not shown) operated by the user such as a keyboard and a mouse, and a user instruction input via the user operation unit. Conversion rule editing means (not shown) for editing the conversion rule table 390 stored therein. The conversion rule editing unit may add, modify, or delete new contents in the conversion rule table 390 stored in the conversion rule storage device 160 in accordance with a user instruction. The conversion rule editing means (not shown) is also realized by a CPU that operates according to a program, for example.

本実施形態によれば、ユーザが変換元および変換先のコマンドマニュアルを入力すると、必須パラメータ関連情報の類似度と、コマンド関連情報の類似度とをそれぞれ算出し、それら類似度から、コマンド同士の総合類似度を算出する。そして、変換元コマンド群のコマンドとの総合類似度が高い順に、変換先コマンド群のコマンドをユーザに提示し、変換元コマンド群のコマンドと変換先コマンド群のコマンドとの組が指定された場合、その変換元コマンド群のコマンドと変換先コマンド群のコマンドとを対応付ける。よって、2つのコマンド群間における各コマンドの対応付けを正確、かつ高速に行うことができる。総合類似度の高い順にコマンドが提示されるので、ユーザは適切な判断をしやすくなり、その結果、正確で高速な対応付けが可能となる。ユーザが選択するのではなく、変換元コマンド群のコマンドとの総合類似度が最も高いコマンドを自動的に選択して対応付けを行う場合でも同様の効果が得られる。   According to this embodiment, when the user inputs the command manual of the conversion source and the conversion destination, the similarity of the essential parameter related information and the similarity of the command related information are calculated, respectively, and the command Calculate the overall similarity. When the commands of the conversion destination command group are presented to the user in descending order of the total similarity with the commands of the conversion source command group, and a combination of the command of the conversion source command group and the command of the conversion destination command group is specified The command of the conversion source command group is associated with the command of the conversion destination command group. Therefore, it is possible to accurately and quickly associate each command between the two command groups. Since commands are presented in descending order of the overall similarity, the user can easily make an appropriate determination, and as a result, accurate and high-speed association is possible. The same effect can be obtained even when the user automatically selects and associates the command having the highest overall similarity with the command of the conversion source command group, instead of selecting by the user.

また、本発明では、コマンドマニュアルにおけるコマンド毎の情報の範囲を特定して、コマンド毎に、必須パラメータ関連情報と、コマンド関連情報とを抽出する。そして、併せて使用される関連コマンドが存在する場合、関連コマンドの情報も必須パラメータ関連情報およびコマンド関連情報に含める。そのような必須パラメータ関連情報およびコマンド関連情報を用いて類似度を計算し、上記のように対応付けを行う。従って、コマンドマニュアルに含まれる複数のコマンドについてそれぞれ対応付けを行うことができ、セットにして使用される複数の変換元コマンドを変換先コマンドに変換したり、変換元コマンドを、セットにして使用される複数の変換先コマンドに変換したりすることができる。   Further, in the present invention, the range of information for each command in the command manual is specified, and the essential parameter related information and the command related information are extracted for each command. If there is a related command used together, the information on the related command is also included in the essential parameter related information and the command related information. Similarity is calculated using such essential parameter-related information and command-related information, and association is performed as described above. Therefore, a plurality of commands included in the command manual can be associated with each other, and a plurality of conversion source commands used as a set can be converted into a conversion destination command, or conversion source commands can be used as a set. Can be converted into multiple conversion destination commands.

実施形態2.
図15は、本発明の第2の実施形態の構成例を示すブロック図である。第1の実施形態と同様の構成要素については、図1と同一の符号を付して説明を省略する。第2の実施形態のコマンド対応付け支援システム100は、情報抽出手段110と、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130と、コマンド対応付け手段140と、変換ルール作成手段150と、変換ルール記憶装置160と、オプションパラメータ類似度算出手段410とを備える。
Embodiment 2. FIG.
FIG. 15 is a block diagram illustrating a configuration example of the second exemplary embodiment of the present invention. The same components as those in the first embodiment are denoted by the same reference numerals as those in FIG. A command association support system 100 according to the second embodiment includes an information extraction unit 110, an essential parameter similarity calculation unit 120, a command similarity calculation unit 130, a command association unit 140, and a conversion rule creation unit 150. The conversion rule storage device 160 and the option parameter similarity calculation means 410 are provided.

本実施形態では、情報抽出手段110は、第1の実施形態と同様に動作するが、第1の実施形態の動作に加え、以下の動作も行う。情報抽出手段110は、各コマンドについて、必須パラメータ関連情報およびコマンド関連情報の他に、オプションパラメータに関する情報を含む情報であるオプションパラメータ関連情報もコマンドマニュアルから抽出する。オプションパラメータ関連情報は、オプションパラメータに関する情報を含み、関連コマンドが存在する場合には関連コマンドのオプションパラメータに関する情報も含む。本実施形態では、情報抽出手段110が、オプションパラメータ関連情報として、コマンド毎に、コマンドのコマンド名、オプションパラメータ名およびオプションパラメータの説明文字列を抽出するとともに、そのコマンドの関連コマンドのコマンド名、オプションパラメータ名およびオプションパラメータの説明文字列もそのオプションパラメータ関連情報に含める場合を例にする。   In this embodiment, the information extraction unit 110 operates in the same manner as in the first embodiment, but performs the following operations in addition to the operations in the first embodiment. For each command, the information extraction unit 110 extracts, from the command manual, optional parameter related information, which is information including information related to optional parameters, in addition to the essential parameter related information and command related information. The option parameter related information includes information on the option parameter, and also includes information on the option parameter of the related command when the related command exists. In this embodiment, the information extraction unit 110 extracts the command name of the command, the option parameter name, and the description character string of the option parameter for each command as the option parameter related information, and the command name of the related command of the command, In this example, the option parameter name and the description string of the option parameter are also included in the option parameter related information.

変換元コマンド群のコマンドマニュアルから抽出されたオプションパラメータ関連情報を変換元のオプションパラメータ関連情報と記す。同様に、変換先コマンド群のコマンドマニュアルから抽出されたオプションパラメータ関連情報を変換先のオプションパラメータ関連情報と記す。   The option parameter related information extracted from the command manual of the conversion source command group is referred to as conversion source option parameter related information. Similarly, option parameter related information extracted from the command manual of the conversion destination command group is referred to as conversion destination option parameter related information.

オプションパラメータ類似度算出手段410は、情報抽出手段110から、変換元の各オプションパラメータ関連情報および変換先の各オプションパラメータ関連情報を取得する。そして、オプションパラメータ類似度算出手段410は、変換元のオプションパラメータ関連情報および変換先のオプションパラメータ関連情報の組み合わせにおけるオプションパラメータ関連情報の類似度を算出する。具体的には、オプションパラメータ名、オプションパラメータの説明文字列の類似度を算出する。   The option parameter similarity calculation unit 410 acquires the conversion source option parameter related information and the conversion destination option parameter related information from the information extraction unit 110. Then, the option parameter similarity calculation unit 410 calculates the similarity of the option parameter related information in the combination of the conversion source option parameter related information and the conversion destination option parameter related information. Specifically, the similarity between the option parameter name and the explanation string of the option parameter is calculated.

コマンド対応付け手段140は、総合類似度算出時に、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度の他に、オプションパラメータ関連情報の類似度も用いて総合類似度を計算する。総合類似度計算後の動作は、第1の実施形態と同様である。   At the time of calculating the total similarity, the command association unit 140 calculates the total similarity using not only the similarity of the essential parameter related information and the similarity of the command related information but also the similarity of the option parameter related information. The operation after calculating the total similarity is the same as that in the first embodiment.

オプションパラメータ類似度算出手段410は、例えば、プログラム(コマンド対応付け支援プログラム)によって動作するCPUによって実現される。情報抽出手段110と、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130と、オプションパラメータ類似度算出手段410と、コマンド対応付け手段140と、変換ルール作成手段150とが同一のCPUによって実現されてもよい。この場合、プログラムは、例えば、コマンド対応付け支援システム100が備えるプログラム記憶装置(図示せず。)に記憶される。CPUは、そのプログラムを読み込み、そのプログラムに従って、情報抽出手段110、必須パラメータ類似度算出手段120、コマンド類似度算出手段130、オプションパラメータ類似度算出手段410、コマンド対応付け手段140、および変換ルール作成手段150として動作すればよい。また、各手段がそれぞれ専用の回路で実現されていてもよい。   The option parameter similarity calculation means 410 is realized by a CPU that is operated by a program (command association support program), for example. The information extraction unit 110, the essential parameter similarity calculation unit 120, the command similarity calculation unit 130, the option parameter similarity calculation unit 410, the command association unit 140, and the conversion rule creation unit 150 are executed by the same CPU. It may be realized. In this case, the program is stored in, for example, a program storage device (not shown) included in the command association support system 100. The CPU reads the program, and in accordance with the program, the information extraction unit 110, the essential parameter similarity calculation unit 120, the command similarity calculation unit 130, the option parameter similarity calculation unit 410, the command association unit 140, and a conversion rule creation It only has to operate as the means 150. Each means may be realized by a dedicated circuit.

次に、本実施形態の動作について説明する。
情報抽出手段110が変換元および変換先の各コマンドテーブルを生成し、さらに、変換元および変換先それぞれの必須パラメータ関連情報、コマンド関連情報を生成する動作は第1の実施形態と同様である。さらに、情報抽出手段110は、変換元コマンドテーブルから変換元のオプションパラメータテーブルを生成し、変換先コマンドテーブルから変換先のオプションパラメータテーブルを生成する。コマンドテーブルからオプションパラメータ関連情報を生成する動作は、変換元コマンドテーブルでも変換先コマンドテーブルでも同様である。
Next, the operation of this embodiment will be described.
The operation of the information extraction unit 110 generating the conversion source and conversion destination command tables and generating the essential parameter related information and command related information of the conversion source and conversion destination are the same as in the first embodiment. Further, the information extraction unit 110 generates a conversion source option parameter table from the conversion source command table, and generates a conversion destination option parameter table from the conversion destination command table. The operation for generating the option parameter related information from the command table is the same for both the conversion source command table and the conversion destination command table.

図16は、コマンドテーブルからオプションパラメータ関連情報を生成する動作の例を示すフローチャートである。情報抽出手段110は、コマンドテーブルから一つのコマンドを選択する(ステップS41)。次に、情報抽出手段110は、ステップS41で選択したコマンドに関連コマンドがあるか否かを判定する(ステップS42)。ステップS41,S42の動作は、図5に示すステップS1,2や、図6に示すステップS11,S12と同様である。   FIG. 16 is a flowchart illustrating an example of an operation for generating option parameter related information from the command table. The information extraction unit 110 selects one command from the command table (step S41). Next, the information extraction unit 110 determines whether or not there is a related command in the command selected in step S41 (step S42). The operations of steps S41 and S42 are the same as steps S1 and S2 shown in FIG. 5 and steps S11 and S12 shown in FIG.

関連コマンドがある場合(ステップS42におけるYes)、情報抽出手段110は、ステップS41で選択したコマンドのコマンド名、オプションパラメータ名、およびオプションパラメータの説明文字列と、そのコマンドの関連コマンドのコマンド名、オプションパラメータ名、およびオプションパラメータの説明文字列とをコマンドテーブルから抽出してセットにし、オプションパラメータ関連情報とする(ステップS43)。例えば、図4に示す変換元コマンドテーブル310からコマンド「interface ethernet port_no [sub_no]」を選択したとする。このコマンドには関連コマンド「bridge−group tag」が存在する(図4参照)。従って、情報抽出手段110は、「interface ethernet port_no [sub_no]」および「bridge−group tag」それぞれのコマンド名、オプションパラメータ名、オプションパラメータの説明文字列をセットにして、オプションパラメータ関連情報とする。   When there is a related command (Yes in step S42), the information extraction unit 110, the command name of the command selected in step S41, the option parameter name, the description string of the option parameter, the command name of the related command of the command, The option parameter name and the descriptive character string of the option parameter are extracted from the command table and set as option parameter related information (step S43). For example, it is assumed that the command “interface Ethernet port_no [sub_no]” is selected from the conversion source command table 310 illustrated in FIG. This command has a related command “bridge-group tag” (see FIG. 4). Therefore, the information extraction unit 110 sets the command name, the option parameter name, and the description character string of the option parameter for each of “interface Ethernet port_no [sub_no]” and “bridge-group tag” as the option parameter related information.

関連コマンドがない場合(ステップS42におけるNo)、情報抽出手段110は、ステップS41で選択したコマンドのコマンド名、オプションパラメータ名およびオプションパラメータの説明文字列をオプションパラメータ関連情報とする(ステップS44)。   If there is no related command (No in step S42), the information extracting unit 110 sets the command name, option parameter name, and option character description character string selected in step S41 as option parameter related information (step S44).

情報抽出手段110は、コマンドテーブルに格納された各コマンドについて上記の処理を行うことで各コマンドのオプションパラメータ情報を生成する。ただし、コマンドA,Bが互いに関連コマンドである場合、例えば、コマンドA選択時に、コマンドA,Bそれぞれのオプションパラメータ名等を含むオプションパラメータ関連情報を生成しているので、その後コマンドBを選択しなくてよい。   The information extraction unit 110 generates option parameter information for each command by performing the above-described processing for each command stored in the command table. However, when the commands A and B are related commands, for example, when the command A is selected, the option parameter related information including the option parameter names of the commands A and B is generated. It is not necessary.

ここでは、変換元コマンドテーブルから変換元のオプションパラメータ関連情報を生成する場合を例示したが、情報抽出手段110は、変換先コマンドテーブルからも同様にオプションパラメータ関連情報を生成する。   Although the case where the conversion source option parameter related information is generated from the conversion source command table is illustrated here, the information extraction unit 110 similarly generates option parameter related information from the conversion destination command table.

また、図5、図6および図16に示すステップS3,S13,S43では、コマンドテーブルにおける選択したコマンドのレコードと関連コマンドのレコードとをセットにした情報をそれぞれ、必須パラメータ関連情報、コマンド関連情報、オプションパラメータ関連情報としてもよい。そして、ステップS4,S14,S44では、コマンドテーブルにおける選択したコマンドのレコードを必須パラメータ関連情報、コマンド関連情報、オプションパラメータ関連情報としてもよい。この場合、必須パラメータ関連情報、コマンド関連情報およびオプションパラメータ関連情報が同じ内容の情報として生成されるので、ステップS41〜S43を省略してもよい。   Further, in steps S3, S13, and S43 shown in FIG. 5, FIG. 6, and FIG. 16, information obtained by setting the record of the selected command and the record of the related command in the command table is set as essential parameter related information and command related information, respectively. It may be optional parameter related information. In steps S4, S14, and S44, the record of the selected command in the command table may be required parameter related information, command related information, and option parameter related information. In this case, since the essential parameter related information, the command related information, and the option parameter related information are generated as information having the same content, steps S41 to S43 may be omitted.

情報抽出手段110は、オプションパラメータ関連情報を生成後、変換元および変換先の各オプションパラメータ関連情報をオプションパラメータ類似度算出手段410に渡す。   After generating the option parameter related information, the information extracting unit 110 passes each option parameter related information of the conversion source and the conversion destination to the option parameter similarity calculating unit 410.

本実施形態においても、応付けの対象となる変換元コマンドおよび変換先コマンドのリストを生成しておく。ここでは、必須パラメータ類似度算出手段120がこのリストを作成する場合を例にするが、コマンド類似度算出手段140またはオプションパラメータ類似度算出手段410がリストを作成してもよい。必須パラメータ関連情報(またはコマンド関連情報、オプションパラメータ関連情報)は、個々のコマンドと対応しているので、必須パラメータ関連情報(またはコマンド関連情報)を対応付けの対象となる変換元コマンドおよび変換先コマンドのリストとして用いてもよい。この時点で、ステップS3,S13,S43の処理により、互いに併せて使用されるコマンド同士は、セットにして一つのコマンドとみなす。   Also in this embodiment, a list of conversion source commands and conversion destination commands to be attached is generated. Here, the case where the essential parameter similarity calculating unit 120 creates this list is taken as an example, but the command similarity calculating unit 140 or the optional parameter similarity calculating unit 410 may create the list. Since the required parameter related information (or command related information, optional parameter related information) corresponds to each command, the conversion source command and the conversion destination for which the required parameter related information (or command related information) is to be matched. It may be used as a list of commands. At this point, the commands used in combination with each other by the processes of steps S3, S13, and S43 are regarded as one command in a set.

第1の実施形態と同様に、必須パラメータ類似度算出手段120(コマンド類似度算出手段130またはオプションパラメータ類似度算出手段410でもよい。)は、変換先コマンドと対応付けようとする一つの変換元コマンドを選択する。そして、選択した変換元コマンドと各変換先コマンドとの総合類似度を求め、総合類似度に基づいて、その変換元コマンドと変換先コマンドを対応付ける。対応付けられたコマンドはリストから除外して、再度、変換元コマンドを選択して、同様に処理を行っていく。   Similar to the first embodiment, the essential parameter similarity calculating unit 120 (the command similarity calculating unit 130 or the option parameter similarity calculating unit 410 may be used) is one conversion source to be associated with the conversion destination command. Select a command. Then, the total similarity between the selected conversion source command and each conversion destination command is obtained, and the conversion source command and the conversion destination command are associated with each other based on the total similarity. The associated command is excluded from the list, the conversion source command is selected again, and the same processing is performed.

必須パラメータ関連情報の類似度およびコマンド関連情報の類似度の算出は第1の実施形態と同様であり、説明を省略する。オプションパラメータ類似度算出手段410は、選択された変換元コマンドのオプションパラメータ関連情報および各変換先コマンドのオプションパラメータ関連情報の各組み合わせにおけるオプションパラメータの類似度を算出する。   The calculation of the similarity of the essential parameter related information and the similarity of the command related information is the same as in the first embodiment, and a description thereof will be omitted. The option parameter similarity calculation unit 410 calculates the option parameter similarity in each combination of the option parameter related information of the selected conversion source command and the option parameter related information of each conversion destination command.

図17は、オプションパラメータ関連情報の類似度算出動作の例を示すフローチャートである。図18は、オプションパラメータ関連情報の計算例を示す説明図である。オプションパラメータ類似度算出手段410は、変換元側のオプションパラメータ名およびオプションパラメータの説明文字列と、変換先側のオプションパラメータ名およびオプションパラメータの説明文字列との類似度を、オプションパラメータ関連情報の類似度として算出する。   FIG. 17 is a flowchart illustrating an example of the similarity parameter calculating operation of the option parameter related information. FIG. 18 is an explanatory diagram of a calculation example of option parameter related information. The option parameter similarity calculation means 410 calculates the similarity between the option parameter name and option parameter description character string on the conversion source side and the option parameter name and option parameter description character string on the conversion destination side in the option parameter related information. Calculated as similarity.

オプションパラメータ類似度算出手段410は、選択されている変換元コマンドのオプションパラメータ関連情報に含まれているオプションパラメータ名およびオプションパラメータの説明文字列をベクトル化する。オプションパラメータ類似度算出手段410は、同様に、変換先の各オプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列をベクトル化する(ステップU1)。ステップU1で求めたベクトルは、オプションパラメータベクトルと呼ぶことができる。   The option parameter similarity calculation means 410 vectorizes the option parameter name and the option parameter description character string included in the option parameter related information of the selected conversion source command. Similarly, the option parameter similarity calculation unit 410 vectorizes the option parameter name and the option character description character string included in each option parameter related information of the conversion destination (step U1). The vector obtained in step U1 can be referred to as an option parameter vector.

オプションパラメータ類似度算出手段410は、変換元および変換先の各オプションパラメータ関連情報に含まれるオプションパラメータ名および必須パラメータの説明文字列を、以下のようにベクトル化する。オプションパラメータ類似度算出手段410は、ベクトル化しようとしている変換元および変換先の各オプションパラメータ関連情報におけるオプションパラメータ名およびオプションパラメータの説明文字列に含まれる単語を複数抽出する。ここでは、各名詞を抽出する場合を例にして説明する。オプションパラメータ類似度算出手段410は、抽出した個々の名詞毎に、名詞が、一つのオプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列に出現する回数を計数する。オプションパラメータ類似度算出手段410は、名詞の種類毎に出現回数を計数した結果を要素とするベクトルを、そのオプションパラメータ関連情報(オプションパラメータ名およびその説明文字列)のベクトルとして定める。オプションパラメータ類似度算出手段410は、選択されている変換元のオプションパラメータ関連情報および変換先のオプションパラメータ関連情報毎に、このようにベクトルを定めればよい。   The option parameter similarity calculation means 410 vectorizes the option parameter name and the descriptive character string of the essential parameter included in each option parameter related information of the conversion source and the conversion destination as follows. The option parameter similarity calculation means 410 extracts a plurality of words included in the option parameter name and the option parameter description character string in each option parameter related information of the conversion source and conversion destination to be vectorized. Here, a case where each noun is extracted will be described as an example. For each extracted noun, the option parameter similarity calculation means 410 counts the number of times that the noun appears in the option parameter name and the option parameter description character string included in one option parameter related information. The option parameter similarity calculation means 410 determines a vector whose element is the result of counting the number of appearances for each type of noun as a vector of the option parameter related information (option parameter name and its explanatory character string). The option parameter similarity calculation means 410 may determine a vector in this way for each selected option parameter related information of the conversion source and option parameter related information of the conversion destination.

例えば、選択されている変換元コマンドのオプションパラメータ関連情報が、図18に示すコマンド「interface ethernet port_no [sub_no] bridge−group tag vlan_no」のオプションパラメータ関連情報711であるとする。また、変換先のオプションパラメータ関連情報として、図18に示すコマンド「set vlan tagbase port_no vlan_no」のオプションパラメータ関連情報712と、コマンド「set spantree port_no enable」のオプションパラメータ関連情報713が与えられたとする。   For example, it is assumed that the option parameter related information of the selected conversion source command is the option parameter related information 711 of the command “interface Ethernet port_no [sub_no] bridge-group tag vlan_no” illustrated in FIG. Also, it is assumed that the option parameter related information 712 of the command “set vlan tagbase port_no vlan_no” and the option parameter related information 713 of the command “set spantree port_no enable” shown in FIG. 18 are given as the conversion destination option parameter related information.

オプションパラメータ類似度算出手段410は、各オプションパラメータ関連情報711〜713におけるオプションパラメータ名およびオプションパラメータの説明文字列から名詞となる文字列を抽出する。すなわち、オプションパラメータ関連情報711のオプションパラメータ名「sub_no」、オプションパラメータの説明文字列「サブインターフェイス番号」、および文字列「なし」と、オプションパラメータ関連情報712、713における文字列「なし」を抽出する。オプションパラメータ類似度算出手段410は、例えば、形態素解析により、名詞となる文字列の抽出を行えばよいが、名詞となる文字列の抽出方法は特に限定されない。次に、オプションパラメータ類似度算出手段410は、オプションパラメータ関連情報711のオプションパラメータ名「sub_no」およびオプションパラメータの説明文字列「サブインターフェイス番号」と「なし」にの中に、抽出した名詞が何回出現するかを個々の名詞毎に計数する。例えば、「sub_no」は1回、「サブインターフェイス番号」は1回、「なし」は2回、・・・等のように計数を行う。オプションパラメータ類似度算出手段410は、名詞毎の計数結果を格納したテーブル(ベクトル計算テーブル322、図18参照。)を作成する。また、オプションパラメータ類似度算出手段410は、変換先の各オプションパラメータ関連情報712,713についても同様に、抽出した名詞が何回出現するかを計数し、ベクトル計算テーブル330に計数結果を格納する。この結果、図18に例示するベクトル計算テーブル322が生成される。各オプションパラメータ関連情報について、名詞毎に求めた計数結果の数値を並べることによって、ベクトルが得られる。計数結果の数値を並べる際の基準となる名詞の順番は、各ベクトルで共通である。図18に例示するベクトル計算テーブル322において、最初の数値の並びである(1,1,2)は、オプションパラメータ関連情報711のベクトルである。2番目の数値の並び(0,0,2)は、オプションパラメータ関連情報712のベクトルである。3番目の数値の並び(0,0,2)は、オプションパラメータ関連情報713のベクトルである。   The option parameter similarity calculation means 410 extracts a character string that becomes a noun from the option parameter name and the option parameter explanation character string in each of the option parameter related information 711 to 713. That is, the option parameter name “sub_no” of the option parameter related information 711, the explanation character string “sub-interface number” of the option parameter, and the character string “none”, and the character string “none” in the option parameter related information 712 and 713 are extracted. To do. The option parameter similarity calculation unit 410 may extract a character string that becomes a noun by, for example, morphological analysis, but the extraction method of the character string that becomes a noun is not particularly limited. Next, the option parameter similarity calculation means 410 determines what the extracted noun is in the option parameter name “sub_no” of the option parameter related information 711 and the description strings “subinterface number” and “none” of the option parameter. The number of occurrences is counted for each noun. For example, “sub_no” is counted once, “subinterface number” is counted once, “none” is counted twice, and so on. The option parameter similarity calculation means 410 creates a table (vector calculation table 322, see FIG. 18) that stores the count results for each noun. Similarly, the option parameter similarity calculation means 410 counts how many times the extracted noun appears for each option parameter related information 712 and 713 of the conversion destination, and stores the count result in the vector calculation table 330. . As a result, a vector calculation table 322 illustrated in FIG. 18 is generated. For each option parameter related information, a vector is obtained by arranging numerical values of count results obtained for each noun. The order of nouns serving as a reference when arranging the numerical values of the counting results is common to each vector. In the vector calculation table 322 illustrated in FIG. 18, (1, 1, 2), which is the first numerical value sequence, is a vector of the option parameter related information 711. The second numerical sequence (0, 0, 2) is a vector of option parameter related information 712. The third numerical sequence (0, 0, 2) is a vector of option parameter related information 713.

ステップU1の後、オプションパラメータ類似度算出手段410は、変換元のオプションパラメータ関連情報から求めたベクトルと、変換先のオプションパラメータ関連情報から求めたベクトルとの組毎に、オプションパラメータ名およびオプションパラメータの説明文字列の類似度を計算する(ステップU2)。この類似度は、変換元側のベクトルと変換先側のベクトルとのコサイン類似度を計算することによって求めればよい。すなわち、ベクトル間のコサイン類似度を、オプションパラメータ名およびオプションパラメータの説明文字列の類似度として計算すればよい。コサイン類似度の計算は、ステップS22(図7参照)と同様に行えばよい。   After step U1, the option parameter similarity calculation means 410 determines the option parameter name and the option parameter for each set of the vector obtained from the conversion source option parameter related information and the vector obtained from the conversion destination option parameter related information. Is calculated (step U2). This similarity may be obtained by calculating the cosine similarity between the vector on the conversion source side and the vector on the conversion destination side. That is, the cosine similarity between vectors may be calculated as the similarity between the option parameter name and the option parameter description character string. The cosine similarity calculation may be performed in the same manner as in step S22 (see FIG. 7).

図18に示す例において、変換元のオプションパラメータ関連情報711から求めたベクトルと、変換先の必須パラメータ関連情報712から求めたベクトルとのコサイン類似度を求めると、0.817となる。また、変換元のオプションパラメータ関連情報711から求めたベクトルと、変換先の必須パラメータ関連情報713から求めたベクトルとのコサイン類似度を求めると、0.817となる。オプションパラメータ類似度算出手段410は、変換元のベクトルと変換先のベクトルとの組毎に求めたコサイン類似度を格納したテーブル(オプションパラメータ類似度テーブル360)を作成し、コマンド対応付け手段140に渡す。オプションパラメータ類似度テーブル360において、コサイン類似度は、オプションパラメータ名およびオプションパラメータの説明文字列の類似度である。   In the example shown in FIG. 18, the cosine similarity between the vector obtained from the conversion source option parameter related information 711 and the vector obtained from the conversion destination required parameter related information 712 is 0.817. Further, when the cosine similarity between the vector obtained from the conversion source option parameter related information 711 and the vector obtained from the conversion destination required parameter related information 713 is obtained, 0.817 is obtained. The option parameter similarity calculation unit 410 creates a table (option parameter similarity table 360) storing the cosine similarity obtained for each pair of the conversion source vector and the conversion destination vector, and sends it to the command association unit 140. hand over. In the option parameter similarity table 360, the cosine similarity is the similarity between the option parameter name and the explanation string of the option parameter.

なお、必須パラメータ類似度算出手段120の処理に続いて、コマンド類似度算出手段130がコマンド名およびコマンドの説明文字列の類似度を算出する処理と、オプションパラメータ類似度算出手段410がオプションパラメータ名およびオプションパラメータの説明文字列の類似度を算出する処理とでは、どちらの処理を先におこなってもよい。また、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130と、オプションパラメータ類似度算出手段410とが独立したコンピュータによって実現され、3つのコンピュータが同時に処理を行ってもよい。   Subsequent to the processing of the required parameter similarity calculation unit 120, the command similarity calculation unit 130 calculates the command name and the description character string similarity, and the option parameter similarity calculation unit 410 sets the option parameter name. Either processing may be performed first in the processing for calculating the degree of similarity of the explanation strings of the option parameters. In addition, the essential parameter similarity calculating unit 120, the command similarity calculating unit 130, and the option parameter similarity calculating unit 410 may be realized by independent computers, and three computers may perform processing simultaneously.

選択されている変換元コマンドについて、必須パラメータ名および必須パラメータの説明文字列の類似度、コマンド名およびコマンドの説明文字列の類似度、オプションパラメータ名およびオプションパラメータの説明文字列の類似度がそれぞれ計算された後、コマンド対応付け手段140は、それらの値を用いて、変換元コマンドと変換先コマンドとの総合類似度を計算する。コマンド対応付け手段140は、選択されている変換元コマンドと各変換先コマンドとの総合類似度をそれぞれ計算し、総合類似度に基づいて、その変換元コマンドと、いずれかの変換先コマンドとを対応付ける。   About the selected conversion source command, the similarity of the required parameter name and the description string of the required parameter, the similarity of the command name and the description string of the command, the similarity of the option parameter name and the description string of the option parameter, respectively After the calculation, the command association unit 140 calculates the total similarity between the conversion source command and the conversion destination command using those values. The command association unit 140 calculates the total similarity between the selected conversion source command and each conversion destination command, and based on the total similarity, the conversion source command and any conversion destination command are calculated. Associate.

図19は、変換元コマンドと変換先コマンドとの対応付け処理の例を示すフローチャートである。図20は、コマンド対応付け手段140が実行するコマンドの対応付けの具体例を示す説明図である。   FIG. 19 is a flowchart illustrating an example of the association process between the conversion source command and the conversion destination command. FIG. 20 is an explanatory diagram illustrating a specific example of command association executed by the command association unit 140.

まず、コマンド対応付け手段140は、必須パラメータ類似度算出手段120の算出結果(必須パラメータ名および必須パラメータの説明文字列の類似度)と、コマンド類似度算出手段130の算出結果(コマンド名およびコマンドの説明文字列の類似度)と、オプションパラメータ類似度算出手段410の算出結果(オプションパラメータ名およびオプションパラメータの説明文字列の類似度)とを用いて、選択されている変換元コマンドと、各変換先コマンドとの組毎に、変換元コマンドおよび変換先コマンドの総合類似度を計算する(ステップX1)。コマンドの必須パラメータ名および必須パラメータの説明文字列の類似度は、必須パラメータ類似度テーブル340を参照すればよい。また、コマンド名およびコマンドの説明文字列の類似度は、コマンド類似度テーブル350を参照すればよい。オプションパラメータ名およびオプションパラメータの説明文字列の類似度は、オプションパラメータ類似度テーブル360を参照すればよい。   First, the command association unit 140 calculates the calculation result of the required parameter similarity calculation unit 120 (similarity of the required parameter name and the description string of the required parameter) and the calculation result of the command similarity calculation unit 130 (command name and command). ) And the calculation result of the option parameter similarity calculation means 410 (option parameter name and similarity of the description string of the option parameter), the conversion source command selected, and each The total similarity between the conversion source command and the conversion destination command is calculated for each pair with the conversion destination command (step X1). The essential parameter similarity table 340 may be referred to for the essential parameter name of the command and the similarity of the explanation character string of the essential parameter. Also, the command similarity table 350 may be referred to for the similarity between the command name and the command description character string. The option parameter similarity table 360 may be referred to for the similarity of the option parameter name and the explanation string of the option parameter.

本実施形態では、コマンド対応付け手段140は、必須パラメータ名および必須パラメータの説明文字列の類似度(必須パラメータ関連情報の類似度)と、コマンド名およびコマンドの説明文字列の類似度(コマンド関連情報の類似度)と、オプションパラメータ名およびオプションパラメータの説明文字列の類似度(オプションパラメータ関連情報の類似度)に、それぞれの重み値を乗じる。そして、この3種類の類似度にそれぞれの重み値を乗じた結果の和を総合類似度として算出する。オプションパラメータ名およびオプションパラメータの説明文字列の類似度(オプションパラメータ関連情報の類似度)に乗じる重み値を、第3の重み値と記す。なお、第1および第2の重み値は第1の実施形態と同様である。   In the present embodiment, the command association unit 140 includes the similarity between the required parameter name and the description string of the required parameter (similarity of the required parameter related information) and the similarity of the command name and the description text string of the command (command related Information similarity) and the option parameter name and the description character string similarity of the option parameter (similarity of the option parameter related information) are multiplied by respective weight values. Then, the sum of the results of multiplying these three types of similarity by the respective weight values is calculated as the total similarity. The weight value to be multiplied by the similarity of the option parameter name and the explanation string of the option parameter (similarity of the option parameter related information) is referred to as a third weight value. The first and second weight values are the same as those in the first embodiment.

第1から第3までの各重み値は、例えば予め設定されている。このとき、各重み値は、「第1の重み値>第2の重み値>第3の重み値」という条件を満足するように定められていることが好ましい。例えば、第1の重み値を0.55に設定し、第2の重み値を0.30に設定し、第3の重み値を0.15に設置すれば、上記の条件にある。なお、本例では、第1から第3までの各重み値の和が1になるように設定しているが、第1から第3までの各重み値は、「第1の重み値>第2の重み値>第3の重み値」という条件を満たせば、どのような値であってもよい。重み値は、例えば重み値テーブル371(図20参照)のように予め定められているが、ユーザが自由に変更できる構成であってもよい。   Each of the first to third weight values is set in advance, for example. At this time, each weight value is preferably determined so as to satisfy a condition of “first weight value> second weight value> third weight value”. For example, if the first weight value is set to 0.55, the second weight value is set to 0.30, and the third weight value is set to 0.15, the above condition is satisfied. In this example, the sum of the first to third weight values is set to be 1. However, the first to third weight values are “first weight value> first”. Any value may be used as long as the condition “weight value of 2> third weight value” is satisfied. The weight value is determined in advance, for example, as in the weight value table 371 (see FIG. 20), but may be configured so that the user can freely change it.

選択されているコマンドが、図20(a)に示す変換元コマンドAであるとする。また、変換先コマンドとして、図20(b)に示す変換先コマンドB,Cがあるとする。なお、変換コマンドAは、併せて使用される2つのコマンドを一つとみなしたものである。この変換元コマンドAと変換先コマンドB,Cとの各組について、必須パラメータ関連情報の類似度を求めた結果として、図20(c)に示す必須パラメータ類似度340が生成されているとする。また、変換元コマンドAと変換先コマンドB,Cとの各組について、コマンド関連情報の類似度を求めた結果として、図20(c)に示すコマンド類似度テーブル350が生成されているとする。また、変換元コマンドAと変換先コマンドB,Cとの各組について、オプションパラメータ関連情報の類似度を求めた結果として、図20(c)に示すオプションパラメータ類似度テーブル360が生成されているとする。   Assume that the selected command is a conversion source command A shown in FIG. Further, it is assumed that conversion destination commands B and C shown in FIG. Note that the conversion command A is a combination of two commands used together. Assume that the required parameter similarity 340 shown in FIG. 20C is generated as a result of obtaining the similarity of the essential parameter related information for each pair of the conversion source command A and the conversion destination commands B and C. . Further, it is assumed that a command similarity table 350 shown in FIG. 20C is generated as a result of obtaining the similarity of the command related information for each pair of the conversion source command A and the conversion destination commands B and C. . Further, as a result of obtaining the similarity of the option parameter related information for each set of the conversion source command A and the conversion destination commands B and C, an option parameter similarity table 360 shown in FIG. 20C is generated. And

本例では、コマンドA,Bの必須パラメータ関連情報の類似度は0.893であり、コマンドA,Bのコマンド関連情報の類似度は0.558である。同様に、コマンドA,Bのオプションパラメータ関連情報の類似度は0.817である。図20(c)に示す重み値テーブル371が予め設定され、第1の重み値が0.70であり、第2の重み値が0.30であり、第3の重み値が0.15であるとする。この場合、コマンド対応付け手段140は、コマンドA,Bの総合類似度を、以下のように計算する。   In this example, the similarity of the essential parameter related information of the commands A and B is 0.893, and the similarity of the command related information of the commands A and B is 0.558. Similarly, the similarity of the option parameter related information of the commands A and B is 0.817. The weight value table 371 shown in FIG. 20C is preset, the first weight value is 0.70, the second weight value is 0.30, and the third weight value is 0.15. Suppose there is. In this case, the command association unit 140 calculates the overall similarity between the commands A and B as follows.

0.893×0.55+0.558×0.30+0.817×0.15=0.781 0.893 x 0.55 + 0.558 x 0.30 + 0.817 x 0.15 = 0.781

コマンド対応付け手段140は、コマンドA,Cの総合類似度についても、同様に、以下のように計算する。   Similarly, the command association unit 140 calculates the total similarity of the commands A and C as follows.

0.446×0.55+0.335×0.30+0.817×0.15=0.469 0.446 × 0.55 + 0.335 × 0.30 + 0.817 × 0.15 = 0.469

ステップX1において、コマンド対応付け手段140は、変換元コマンドと変換先コマンドの総合類似度を総合類似度テーブルに格納する。本例では、ステップX1の結果、図20に示す総合類似度テーブル381が得られる。   In step X1, the command association unit 140 stores the total similarity of the conversion source command and the conversion destination command in the total similarity table. In this example, as a result of step X1, a comprehensive similarity table 381 shown in FIG. 20 is obtained.

次に、コマンド対応付け手段140は、選択されている変換元コマンドと対応付けられる候補(すなわち、各変換先コマンド)を、その変換元コマンドとの総合類似度が高い順に並べ替える。そして、並べ替えた順に、変換元コマンドと、各変換先コマンドとの組をユーザに提示する(ステップX2)。ステップX2では、総合類似度の値も提示してもよい。例えば、コマンド対応付け支援システム100が備えるディスプレイ装置(図示せず。)に表示させればよい。ユーザへの提示方法は、特に限定されない。例えば、ディスプレイ装置上にGUI(Graphical User Interface)を表示させてもよい。あるいは、コマンドプロンプトに標準出力することによって出力してもよい。   Next, the command associating unit 140 rearranges the candidates associated with the selected conversion source command (that is, each conversion destination command) in descending order of the total similarity with the conversion source command. Then, a set of the conversion source command and each conversion destination command is presented to the user in the rearranged order (step X2). In step X2, the value of total similarity may be presented. For example, what is necessary is just to display on the display apparatus (not shown) with which the command matching assistance system 100 is provided. The presentation method to the user is not particularly limited. For example, a GUI (Graphical User Interface) may be displayed on the display device. Or you may output by carrying out standard output to a command prompt.

ステップX2において、例えば、総合類似度テーブル381に格納された各コマンドを総合類似度順に並べ替えてもよい。図21は、図20に示す総合類似度テーブル381を総合類似度順に並べ替えた結果を示す。ただし、図21に示す例では、並べ替え前後で、総合類似度テーブル381は変化していない(図20、図21参照)。   In step X2, for example, the commands stored in the total similarity table 381 may be rearranged in the order of total similarity. FIG. 21 shows the result of rearranging the overall similarity table 381 shown in FIG. 20 in the order of overall similarity. However, in the example shown in FIG. 21, the total similarity table 381 does not change before and after the rearrangement (see FIGS. 20 and 21).

選択されている変換元コマンドと各変換先コマンドとの組を出力する場合、例えば、変換元コマンドと、並べ替え後の総合類似度テーブル381を出力すればよい。総合類似度テーブル381に含まれる個々のコマンドは、同時に出力された変換元コマンドとの組を表す。   When outputting a combination of the selected conversion source command and each conversion destination command, for example, the conversion source command and the rearranged total similarity table 381 may be output. Each command included in the total similarity table 381 represents a set with a conversion source command output at the same time.

ユーザは、総合類似度が高い順に出力される総合類似度テーブル381に含まれる個々のコマンドを参照して、変換元コマンドと対応付けるべき変換先コマンドを判断し、そのコマンドを指定する操作を行う。すなわち、対応付けるべき変換元コマンドと変換先コマンドとの組を指定する。ステップX2において、コマンド対応付け手段140は、例えば、ユーザ操作部(図示せず。)を介して、ユーザによる指定を受けると、指定された組み合わせにおけるコマンド同士を対応付ける。例えば、図20に示す総合類似度テーブル381におけるコマンドBがユーザに選択されることで、コマンドA,Bの組が指定される。すると、コマンド対応付け手段140は、そのコマンド同士を対応付ける。コマンド対応付け手段140は、対応付けた変換元コマンドおよび変換先コマンドを変換ルール作成手段150に通知する。例えば、コマンド名の組を変換ルール作成手段150に渡す。   The user refers to each command included in the overall similarity table 381 output in descending order of the overall similarity, determines a conversion destination command to be associated with the conversion source command, and performs an operation of designating the command. That is, a pair of a conversion source command and a conversion destination command to be associated is designated. In step X <b> 2, for example, when the command association unit 140 receives a designation by the user via a user operation unit (not shown), the commands in the designated combination are associated with each other. For example, when a command B in the total similarity table 381 shown in FIG. 20 is selected by the user, a set of commands A and B is designated. Then, the command association unit 140 associates the commands with each other. The command association unit 140 notifies the conversion rule creation unit 150 of the associated conversion source command and conversion destination command. For example, the command name pair is passed to the conversion rule creation means 150.

また、コマンド対応付け手段140は、ユーザに指定された組に含まれるコマンド(すなわち対応付けしたコマンド)を、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストから除外する(ステップX3)。例えば、図20に示すコマンドA,Bを対応付けたならば、対応付けの対象となる変換元コマンドのリストからコマンドAを除外し、対応付けの対象となる変換先コマンドのリストからコマンドBを除外する。   In addition, the command association unit 140 excludes commands included in the set designated by the user (that is, associated commands) from the list of conversion source commands and conversion destination commands to be associated (step X3). . For example, if the commands A and B shown in FIG. 20 are associated, the command A is excluded from the list of conversion source commands to be matched, and the command B is converted from the list of conversion destination commands to be matched. exclude.

ステップX2,X3の処理は、第1の実施形態におけるステップV2,V3と同様であある。   Steps X2 and X3 are the same as steps V2 and V3 in the first embodiment.

ステップX3が完了したならば、ステップX3でコマンドが除外された対応付けの対象となる変換元コマンドおよび変換先コマンドのリストを用いて、必須パラメータ類似度算出手段120(コマンド類似度算出手段130またはオプションパラメータ類似度算出手段410でもよい。)は、変換先コマンドと対応付けようとする一つの変換元コマンドを新たに選択する。そして、その変換元コマンドについて、必須パラメータ類似度算出手段120がステップS21〜S22(図7参照)を行う。また、コマンド類似度算出手段130がステップS31〜S32(図9参照)を行う。また、オプションパラメータ類似度算出手段410がステップS41〜S43を行う。さらに、コマンド対応付け手段140がステップがステップX1〜X3を行う。この処理を繰り返すことで、コマンドの対応付けを順次行っていく。対応付けの完了したコマンドを、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストから除外していくので、必須パラメータ類似度算出手段120、コマンド類似度算出手段130およびオプションパラメータ算出手段410における類似度計算を高速化することができる。そして、例えば、変換元コマンド群の全てのコマンドについて対応付けが完了したならば、繰り返し処理を終了する。   When step X3 is completed, the essential parameter similarity calculation means 120 (command similarity calculation means 130 or 130) is used by using the list of conversion source commands and conversion destination commands to be matched in which the command is excluded in step X3. The option parameter similarity calculating unit 410 may newly select one conversion source command to be associated with the conversion destination command. And the essential parameter similarity calculation means 120 performs step S21-S22 (refer FIG. 7) about the conversion origin command. Further, the command similarity calculation unit 130 performs steps S31 to S32 (see FIG. 9). Also, the option parameter similarity calculation unit 410 performs steps S41 to S43. Further, the command association means 140 performs steps X1 to X3. By repeating this process, the commands are sequentially associated. Since the command for which association has been completed is excluded from the list of conversion source commands and conversion destination commands to be associated, essential parameter similarity calculation means 120, command similarity calculation means 130, and optional parameter calculation means 410 The similarity calculation in can be speeded up. For example, when the association is completed for all commands in the conversion source command group, the iterative process is terminated.

また、ステップX2において、総合類似度だけでなく、コマンドの必須パラメータ名および必須パラメータの説明文字列の類似度(コサイン類似度)と、コマンド名およびコマンドの説明文字列の類似度(コサイン類似度)と、オプションパラメータ名およびオプションパラメータの説明文字列の類似度(コサイン類似度)とを同時に提示してもよい。そして、それらの項目のうち、いずれかがユーザに指定されたならば、指定された項目の値の大きい順に、再度並べ替えを行って、並べ替え毎のコマンドの組を再提示してもよい。   Further, in step X2, not only the overall similarity, but also the similarity of the required parameter name of the command and the explanatory character string of the required parameter (cosine similarity), and the similarity of the command name and the explanatory character string of the command (cosine similarity) ) And the similarity (cosine similarity) of the option parameter name and the explanation string of the option parameter may be presented simultaneously. Then, if any of these items is designated by the user, it may be rearranged again in descending order of the value of the designated item, and a command set for each rearrangement may be presented again. .

また、上記の例では、ユーザにコマンドを提示し、ユーザに指定されたコマンドの組を対応付ける場合を示したが、ユーザに対する提示を行わずに対応付け処理を行ってもよい。例えば、コマンド対応付け手段140は、ステップX1で算出した総合類似度が最大となる変換元コマンドと、変換先コマンドとの組を特定し、総合類似度が最大となる変換元コマンドと変換先コマンドとを対応付けてもよい。その後、コマンド対応付け手段140は、対応付けの対象となる変換元コマンドおよび変換先コマンドのリストから、対応付けの完了したコマンドを除外すればよい。他の点については、ユーザが指定を行う場合の動作と同様である。   In the above example, a case is shown in which a command is presented to the user and a set of commands designated by the user is associated. However, the association process may be performed without presenting to the user. For example, the command associating unit 140 specifies a pair of a conversion source command and a conversion destination command with the maximum total similarity calculated in step X1, and a conversion source command and a conversion destination command with the maximum total similarity. May be associated with each other. Thereafter, the command association unit 140 may exclude the command for which association has been completed from the list of conversion source commands and conversion destination commands to be associated. About another point, it is the same as that of the operation | movement when a user designates.

コマンド対応付け手段140によって、コマンド同士の対応付けが行われた後、変換ルール作成手段150は、対応付けられたコマンドの組毎に、変換元コマンド群のコマンドを変換先コマンド群のコマンドに変換する変換ルールを生成する。例えば、変換ルール作成手段150は、対応付けられたコマンドの組における変換元側のコマンドのコマンド名を変換先側のコマンド名に変換し、変換元側のコマンドの各パラメータを、変換先側のコマンドにおける各パラメータに用いることを指定する変換ルールを作成する。なお、変換ルール作成手段150は、対応付けられたコマンドをコマンド対応付け手段140から通知される。通知されたコマンドの各コマンドのパラメータは、例えば、変換元コマンドテーブルおよび変換先コマンドテーブルを参照すればよい。変換元コマンドテーブルおよび変換先コマンドテーブルは、それぞれ、情報抽出手段110から渡されればよい。この変換ルール作成手段150の動作は、第1の実施形態と同様である。   After the commands are associated with each other by the command associating unit 140, the conversion rule creating unit 150 converts the commands of the conversion source command group into the commands of the conversion destination command group for each set of associated commands. Generate a conversion rule. For example, the conversion rule creation unit 150 converts the command name of the conversion source side command in the associated command set into the conversion destination side command name, and converts each parameter of the conversion source side command to the conversion destination side command name. Create a conversion rule that specifies use for each parameter in the command. The conversion rule creation unit 150 is notified of the associated command from the command association unit 140. For parameters of each command of the notified command, for example, a conversion source command table and a conversion destination command table may be referred to. The conversion source command table and the conversion destination command table may be passed from the information extraction unit 110, respectively. The operation of this conversion rule creation means 150 is the same as that in the first embodiment.

本実施形態によれば、ユーザが変換元および変換先のコマンドマニュアルを入力すると、必須パラメータ関連情報の類似度と、コマンド関連情報の類似度と、オプションパラメータ関連情報の類似度とをそれぞれ算出し、それら類似度から、コマンド同士の総合類似度を算出する。そして、変換元コマンド群のコマンドとの総合類似度が高い順に、変換先コマンド群のコマンドをユーザに提示し、変換元コマンド群のコマンドと変換先コマンド群のコマンドとの組が指定された場合、その変換元コマンド群のコマンドと変換先コマンド群のコマンドとを対応付ける。よって、2つのコマンド群間における各コマンドの対応付けを正確、かつ高速に行うことができる。総合類似度の高い順にコマンドが提示されるので、ユーザは適切な判断をしやすくなり、その結果、正確で高速な対応付けが可能となる。ユーザが選択するのではなく、変換元コマンド群のコマンドとの総合類似度が最も高いコマンドを自動的に選択して対応付けを行う場合でも同様の効果が得られる。   According to this embodiment, when the user inputs the conversion source and conversion destination command manuals, the similarity of the essential parameter related information, the similarity of the command related information, and the similarity of the option parameter related information are respectively calculated. The total similarity between commands is calculated from these similarities. When the commands of the conversion destination command group are presented to the user in descending order of the total similarity with the commands of the conversion source command group, and a combination of the command of the conversion source command group and the command of the conversion destination command group is specified The command of the conversion source command group is associated with the command of the conversion destination command group. Therefore, it is possible to accurately and quickly associate each command between the two command groups. Since commands are presented in descending order of the overall similarity, the user can easily make an appropriate determination, and as a result, accurate and high-speed association is possible. The same effect can be obtained even when the user automatically selects and associates the command having the highest overall similarity with the command of the conversion source command group, instead of selecting by the user.

また、本発明では、コマンドマニュアルにおけるコマンド毎の情報の範囲を特定して、コマンド毎に、必須パラメータ関連情報、コマンド関連情報およびオプションパラメータ関連情報を抽出する。そして、併せて使用される関連コマンドが存在する場合、関連コマンドの情報も必須パラメータ関連情報、コマンド関連情報およびオプションパラメータ関連情報に含める。そのような必須パラメータ関連情報、コマンド関連情報、オプションパラメータ関連情報を用いて類似度を計算し、上記のように対応付けを行う。従って、コマンドマニュアルに含まれる複数のコマンドについてそれぞれ対応付けを行うことができ、セットにして使用される複数の変換元コマンドを変換先コマンドに変換したり、変換元コマンドを、セットにして使用される複数の変換先コマンドに変換したりすることができる。   In the present invention, the range of information for each command in the command manual is specified, and the essential parameter related information, command related information, and optional parameter related information are extracted for each command. If there is a related command used together, the information on the related command is also included in the essential parameter related information, command related information, and optional parameter related information. Similarity is calculated using such essential parameter-related information, command-related information, and option parameter-related information, and association is performed as described above. Therefore, a plurality of commands included in the command manual can be associated with each other, and a plurality of conversion source commands used as a set can be converted into a conversion destination command, or conversion source commands can be used as a set. Can be converted into multiple conversion destination commands.

実施形態3.
図22は、本発明の第3の実施形態の構成例を示すブロック図である。第1の実施形態および第2の実施形態と同様の構成要素については、図1、図15と同一の符号を付して説明を省略する。第3の実施形態のコマンド対応付け支援システム100は、情報抽出手段110と、必須パラメータ類似度算出手段120と、コマンド類似度算出手段130と、オプションパラメータ類似度算出手段410と、コマンド対応付け手段140と、変換ルール作成手段150と、変換ルール記憶装置160と、コマンド変換手段510とを備える。コマンド対応付け支援システム100には、コンフィグ入力装置220と出力装置230とが設けられるが、コマンド対応付け支援システム100自身が、コンフィグ入力装置220および出力装置230を備えていてもよい。
Embodiment 3. FIG.
FIG. 22 is a block diagram showing a configuration example of the third embodiment of the present invention. Constituent elements similar to those in the first embodiment and the second embodiment are denoted by the same reference numerals as those in FIGS. 1 and 15 and description thereof is omitted. The command association support system 100 according to the third embodiment includes an information extraction unit 110, an essential parameter similarity calculation unit 120, a command similarity calculation unit 130, an option parameter similarity calculation unit 410, and a command association unit. 140, conversion rule creation means 150, conversion rule storage device 160, and command conversion means 510. The command association support system 100 is provided with the configuration input device 220 and the output device 230, but the command association support system 100 itself may include the configuration input device 220 and the output device 230.

コンフィグ入力装置220は、ネットワーク機器が持つ機器設定ファイルをコマンド対応付け支援システム100のコマンド変換手段510に入力するためのインターフェイスである。機器設定ファイルは、変換元コマンド群のコマンドの集合であり、例えば、テキスト等の文書フォーマットで作成されたファイルである。ここでは、ネットワーク機器に対する機器設定ファイルを例に説明するが、コンフィグ入力装置220に入力される設定ファイルは、ソフトウェアに対する設定を規定したものであってもよい。これらの機器設定ファイルやソフトウェアに対する設定ファイルは、機器やソフトウェアに対する設定を行うための設定情報ということができる。機器やソフトウェアに対する設定情報は、変換元コマンド群のコマンドを含むファイル形式で入力されてもよい。また、変換元コマンド群の個々のコマンドが一つずつ、あるいは、複数まとめて、設定情報として入力されてもよい。このような設定情報がコンフィグ入力装置220を介してコマンド変換手段510に入力される。ここでは、機器設定ファイルが入力される場合を例にして説明する。なお、コンフィグ入力装置220およびマニュアル入力装置210が同一の装置によって実現されていてもよい。   The configuration input device 220 is an interface for inputting a device setting file of a network device to the command conversion unit 510 of the command association support system 100. The device setting file is a set of commands of the conversion source command group, and is a file created in a document format such as text, for example. Here, a device setting file for a network device will be described as an example. However, the setting file input to the configuration input device 220 may define settings for software. These device setting files and setting files for software can be referred to as setting information for setting the devices and software. The setting information for the device or software may be input in a file format including commands of the conversion source command group. In addition, individual commands of the conversion source command group may be input as setting information one by one or a plurality. Such setting information is input to the command conversion means 510 via the configuration input device 220. Here, a case where a device setting file is input will be described as an example. The configuration input device 220 and the manual input device 210 may be realized by the same device.

コマンド変換手段510は、変換ルール作成手段150が作成して変換ルール記憶装置160に記憶させた変換ルールに従い、機器設定ファイル(設定情報)に含まれる変換前コマンド群のコマンドを、変換先コマンド群のコマンドに変換する。   The command conversion unit 510 converts the commands of the pre-conversion command group included in the device setting file (setting information) into the conversion destination command group according to the conversion rule created by the conversion rule creation unit 150 and stored in the conversion rule storage device 160. Is converted to

出力装置230は、コマンド変換手段510によってコマンドが変換された機器設定ファイルを出力する出力装置である。出力装置230は、例えば、ディスプレイ装置によって実現され、コマンド変換後の機器設定ファイルを表示する。ただし、出力装置230はディスプレイ装置に限定されず、機器設定ファイルの出力態様も表示に限定されない。   The output device 230 is an output device that outputs the device setting file in which the command is converted by the command conversion unit 510. The output device 230 is realized by a display device, for example, and displays a device setting file after command conversion. However, the output device 230 is not limited to the display device, and the output mode of the device setting file is not limited to display.

コマンド変換手段510は、例えば、プログラムによって動作するCPUによって実現される。なお、プログラムは、例えば、コマンド対応付け支援システム100が備えるプログラム記憶装置(図示せず。)に記憶される。CPUは、そのプログラムを読み込み、そのプログラムに従って、コマンド変換手段510や他の各手段として動作する。コマンド変換手段510は、専用の回路によって実現されていてもよい。   The command conversion unit 510 is realized by a CPU that operates according to a program, for example. The program is stored in, for example, a program storage device (not shown) included in the command association support system 100. The CPU reads the program and operates as the command conversion means 510 and other means according to the program. The command conversion unit 510 may be realized by a dedicated circuit.

次に、本実施形態の動作について説明する。
変換ルール作成手段150が変換ルールを作成して変換ルール記憶装置160に記憶させるまでの動作は、第2の実施形態と同様である。あるいは、コマンド対応付けシステム100がオプションパラメータ類似度算出手段410を備えずに、第1の実施形態と同様に変換ルールを作成して変換ルール記憶装置160に記憶させる構成であってもよい。
Next, the operation of this embodiment will be described.
The operations until the conversion rule creating means 150 creates a conversion rule and stores it in the conversion rule storage device 160 are the same as in the second embodiment. Alternatively, the command association system 100 may be configured to create a conversion rule and store the conversion rule storage device 160 in the same manner as in the first embodiment without including the option parameter similarity calculation unit 410.

変換ルールが記憶された後、コンフィグ入力装置220は、例えば、ユーザの操作に従って、機器設定ファイルをコマンド変換手段510に入力する。なお、機器設定ファイルは、ユーザが各ネットワーク機器から手作業で抽出してもよい。あるいは、各ネットワーク機器とコンフィグ入力装置220との間で適切なネットワークプロトコルを用いた通信を行い、コンフィグ入力装置220が機器設定ファイルを自動的に抽出してもよい。図23は、コンフィグ入力装置220がコマンド変換手段510に入力する機器設定ファイルの一部の具体例を示す説明図である。図23に示す2行目から4行目は、コマンド「interface ethernet」、およびコマンド「bridge−group tag」によって機器に対する設定を規定している部分である。   After the conversion rule is stored, the configuration input device 220 inputs the device setting file to the command conversion unit 510 in accordance with, for example, a user operation. The device setting file may be manually extracted from each network device by the user. Alternatively, communication using an appropriate network protocol may be performed between each network device and the configuration input device 220, and the configuration input device 220 may automatically extract the device setting file. FIG. 23 is an explanatory diagram showing a specific example of a part of a device setting file input to the command conversion unit 510 by the configuration input device 220. The second to fourth lines shown in FIG. 23 are parts that define the setting for the device by the command “interface Ethernet” and the command “bridge-group tag”.

コマンド変換手段510は、機器設定ファイルが入力されると、変換ルール記憶装置160が記憶する変換ルールに従って、機器設定ファイルに含まれるコマンド(変換元コマンド群のコマンド)を、変換先コマンド群のコマンドに変換する。図24は、コマンド変換手段510のコマンド変換処理の処理経過の例を示すフローチャートである。また、図25は、コマンド変換手段510のコマンド変換処理の具体例を示す説明図である。図25において、コマンド変換前機器設定ファイル610はコマンド変換前の機器設定ファイルの例であり、コマンド変換後機器設定ファイル620はコマンド変換後の機器設定ファイルの例である。   When the device setting file is input, the command conversion unit 510 converts the command (command of the conversion source command group) included in the device setting file according to the conversion rule stored in the conversion rule storage device 160 into the command of the conversion destination command group. Convert to FIG. 24 is a flowchart showing an example of the process of command conversion processing by the command conversion means 510. FIG. 25 is an explanatory diagram showing a specific example of command conversion processing by the command conversion means 510. In FIG. 25, a device setting file 610 before command conversion is an example of a device setting file before command conversion, and a device setting file 620 after command conversion is an example of a device setting file after command conversion.

コマンド変換手段510は、コンフィグ入力装置220から入力された機器設定ファイルの中から変換元コマンドを1つ選択する(ステップW1)。ここでは、機器設定ファイル内では1行に1つのコマンドが記述されているものとする。この場合、コマンド変換手段510は、ステップW1において、機器設定ファイルにおける1行分の記述を選択すればよい。例えば、コマンド変換手段510は、図25に例示するコマンド変換前機器設定ファイル610中の2行目「interface ethernet」を選択する。このとき、コマンド変換前機器設定ファイル610の2行目の最後に記載の「1/1」等の数値情報は検索キーワードから除外する。   The command conversion means 510 selects one conversion source command from the device setting file input from the configuration input device 220 (step W1). Here, it is assumed that one command is described in one line in the device setting file. In this case, the command conversion means 510 may select the description for one line in the device setting file in step W1. For example, the command conversion unit 510 selects the second line “interface Ethernet” in the device setting file 610 before command conversion illustrated in FIG. At this time, numerical information such as “1/1” described at the end of the second line of the pre-command conversion device setting file 610 is excluded from the search keyword.

次に、コマンド変換手段510は、ステップW1で選択したコマンドに該当する変換元コマンドを、変換ルール記憶装置160に記憶された変換ルールの中から検索する(ステップW2)。例えば、各変換ルールにおける変換元コマンドのコマンド名と、ステップW1で選択したコマンドのコマンド名とを照合して、コマンド名が一致する変換元コマンドを検索すればよい。図25に示す変換ルールテーブル391が変換ルール記憶装置160に記憶されているとする。コマンド変換手段510は、ステップW1で選択したコマンドのコマンド名「interface ethernet」に合う変換元コマンドを検索する。その結果、変換ルールテーブル391の1番目「interface ethernet port_no [sub_no]」と、3番目「interface ethernet port_no [sub_no]」を検索結果として得る。   Next, the command conversion means 510 searches the conversion rule stored in the conversion rule storage device 160 for a conversion source command corresponding to the command selected in step W1 (step W2). For example, the command name of the conversion source command in each conversion rule may be compared with the command name of the command selected in step W1, and a conversion source command with a matching command name may be searched. Assume that the conversion rule table 391 shown in FIG. 25 is stored in the conversion rule storage device 160. The command conversion means 510 searches for a conversion source command that matches the command name “interface Ethernet” of the command selected in step W1. As a result, the first “interface Ethernet port_no [sub_no]” and the third “interface Ethernet port_no [sub_no]” in the conversion rule table 391 are obtained as search results.

ステップW2の後、コマンド変換手段510は、変換ルールテーブル391を参照して、ステップW2の検索結果として得たコマンドが他のコマンドと併せて使用される関連コマンド(すなわち、複合コマンドとなるコマンド)であるか否かを判定する(ステップW3)。ステップW3では、ステップW2の検索結果が関連コマンドであるか否かを、変換ルールテーブル391によって判定すればよい。例えば、変換ルールテーブル391の1番目のコマンド「interface ethernet port_no [sub_no]」が他のコマンド「bridge−group tag」と併せて変換先コマンド「set vlan tagbase port_no vlan_no」に変換されることが変換ルールテーブル391内の変換ルールに示されている。従って、コマンド変換手段510は、「interface ethernet port_no [sub_no]」が関連コマンドであると判定する(ステップW3におけるYes)。同様に、変換ルールテーブル391の3番目のコマンド「interface ethernet port_no [sub_no]」についても、関連コマンドであると判定する。   After step W2, the command conversion means 510 refers to the conversion rule table 391, and the related command in which the command obtained as the search result of step W2 is used in combination with other commands (that is, a command that becomes a composite command). (Step W3). In step W3, it may be determined by the conversion rule table 391 whether or not the search result in step W2 is a related command. For example, the first command “interface Ethernet port_no [sub_no]” in the conversion rule table 391 is converted into a conversion destination command “set vlan tagport port_no vlan_no” together with another command “bridge-group tag”. It is shown in the conversion rule in the table 391. Therefore, the command conversion unit 510 determines that “interface Ethernet port_no [sub_no]” is a related command (Yes in Step W3). Similarly, the third command “interface Ethernet port_no [sub_no]” in the conversion rule table 391 is also determined to be a related command.

ステップW2の検索結果として得たコマンドが関連コマンドである場合(ステップW3におけるYes)、コマンド変換手段510は、ステップW1で選択した変換元コマンドが変換ルールテーブルにおいて、併せて使用される複数のコマンドのうち先頭のコマンドになっているか否かを判定する(ステップW4)。   When the command obtained as a search result in step W2 is a related command (Yes in step W3), the command conversion means 510 uses a plurality of commands in which the conversion source command selected in step W1 is used in the conversion rule table. It is determined whether or not it is the first command (step W4).

ステップW1で選択したコマンドが、併せて使用される複数のコマンドのうちの先頭コマンドである場合(ステップW4におけるYes)、コマンド変換手段510は、入力された機器設定ファイル内で選択しているコマンドの直後に記載されているコマンドをキーとして、変換ルール記憶装置160に記憶された変換元コマンドを検索する。そして、その結果得たコマンドと、ステップW2で検索したコマンドとを変換元コマンドとする変換ルールを特定する(ステップW5)。本例では、機器設定ファイルにおいて、ステップW1で選択したコマンド「interface ethernet」の直後のコマンドは「bridge−group tag」である(図23参照)。そして、「bridge−group tag」に該当するコマンドを、変換ルールテーブル391における変換元コマンドから検索すると、変換ルールテーブル391における2番目に変換元コマンドが得られる(図25参照)。この検索時においても、機器設定ファイルに記述された「10」等の数値情報は除外して検索する。そして、コマンド変換手段510は、ステップW1およびステップW3で得たコマンドを変換元コマンドテーブル391から特定する。本例では、変換元コマンドテーブル391における1番目、2番目の変換元コマンドを変換先コマンド「set vlan tagbase port_no vlan_no」に変換する変換ルールを特定する。よって、ステップW2では、変換ルールテーブル391の1番目および3番目のコマンドが検索されるが、ステップW4において、そのうち1番目のコマンドを変換元コマンドに含むルールが特定される。   When the command selected in step W1 is the first command among a plurality of commands used together (Yes in step W4), the command conversion means 510 selects the command selected in the input device setting file. The conversion source command stored in the conversion rule storage device 160 is searched using the command described immediately after the key as a key. And the conversion rule which uses the command obtained as a result and the command searched at step W2 as a conversion source command is specified (step W5). In this example, in the device setting file, the command immediately after the command “interface Ethernet” selected in step W1 is “bridge-group tag” (see FIG. 23). Then, when a command corresponding to “bridge-group tag” is searched from the conversion source command in the conversion rule table 391, the conversion source command is obtained second in the conversion rule table 391 (see FIG. 25). Also in this search, numerical information such as “10” described in the device setting file is excluded and searched. Then, the command conversion means 510 specifies the command obtained in step W1 and step W3 from the conversion source command table 391. In this example, the conversion rule for converting the first and second conversion source commands in the conversion source command table 391 into the conversion destination command “set vlan tagbase port_no vlan_no” is specified. Therefore, in step W2, the first and third commands in the conversion rule table 391 are searched. In step W4, a rule including the first command in the conversion source command is specified.

ステップW1で選択したコマンドが、併せて使用される複数のコマンドのうちの先頭コマンドでない場合(ステップW4におけるNo)、コマンド変換手段510は、入力された機器設定ファイル内で選択しているコマンドの直前に記載されているコマンドをキーとして、変換ルール記憶装置160に記憶された変換元コマンドを検索する。そして、その結果得たコマンドと、ステップW2で検索したコマンドとを変換元コマンドとする変換ルールを特定する(ステップW6)。例えば、ステップW1で機器設定ファイルの「bridge−group tag」を選択したとする。この場合、選択したコマンドは関連コマンドであるのでステップW4に移行し、先頭のコマンドではないので、ステップW6に移行する。この場合、ステップW1で選択したコマンド「bridge−group tag」の直前のコマンドは「interface ethernet」である(図23参照)。そして、「interface ethernet」に該当するコマンドを、変換ルールテーブル391における変換元コマンドから検索すると、変換ルールテーブル391における1番目の変換元コマンドが得られる(図25参照)。この検索時においても、機器設定ファイルに記述された「1/1」等の数値情報は除外して検索する。そして、コマンド変換手段510は、ステップW1,W4で検索した「interface ethernet」および「bridge−group tag」を変換先コマンド「set vlan tagbase port_no vlan_no」に変換する変換ルールを特定する。   When the command selected in step W1 is not the first command among a plurality of commands used together (No in step W4), the command conversion means 510 determines the command selected in the input device setting file. The conversion source command stored in the conversion rule storage device 160 is searched by using the command described immediately before as a key. And the conversion rule which uses the command obtained as a result and the command searched at step W2 as a conversion source command is specified (step W6). For example, it is assumed that “bridge-group tag” of the device setting file is selected in step W1. In this case, since the selected command is a related command, the process proceeds to step W4, and since it is not the first command, the process proceeds to step W6. In this case, the command immediately before the command “bridge-group tag” selected in step W1 is “interface Ethernet” (see FIG. 23). When a command corresponding to “interface Ethernet” is searched from the conversion source command in the conversion rule table 391, the first conversion source command in the conversion rule table 391 is obtained (see FIG. 25). Even in this search, the search is performed excluding numerical information such as “1/1” described in the device setting file. Then, the command conversion means 510 identifies a conversion rule for converting “interface Ethernet” and “bridge-group tag” searched in steps W1 and W4 into a conversion destination command “set vlan tagbase port_no vlan_no”.

また、ステップW2の検索結果として得たコマンドが関連コマンドでない場合(ステップW3におけるNo)、コマンド変換手段510は、ステップW1で選択したコマンドを単一の変換元コマンドであると判定して、ステップW1で選択したコマンドを単一の変換元コマンドとする変換ルールを変換ルールテーブル391から特定する(ステップW7)。   If the command obtained as the search result in step W2 is not a related command (No in step W3), the command conversion means 510 determines that the command selected in step W1 is a single conversion source command, and the step A conversion rule having the command selected in W1 as a single conversion source command is specified from the conversion rule table 391 (step W7).

ステップW5、ステップW6またはステップW7で、変換ルールを特定した後、コマンド変換手段510は、ステップW1で選択したコマンドを、その変換ルールに従って変換先ルールに変換する(ステップW8)。ステップW1で選択したコマンドが、他のコマンドと併せて使用されるコマンドである場合には、そのコマンドと併せて変換先コマンドに変換する。ステップW1で選択したコマンドに関連コマンドがある場合、ステップW5またはステップW6に移行し、ステップW5,W6では選択したコマンドの直後または直前のコマンドを機器設定ファイルから読み込んでいる。このコマンドが、ステップW1で選択したコマンドの関連コマンドである。コマンド変換手段510は、この関連コマンドおよびステップW1で選択したコマンドを変換ルールに従って変換すればよい。また、ステップW1で選択したコマンドに関連コマンドがなければ、ステップW7の後にステップW8に移行する。この場合、コマンド変換手段510は、ステップW1で選択したコマンドを、ステップW7で特定したコマンドに変換する。   After specifying the conversion rule in step W5, step W6 or step W7, the command conversion means 510 converts the command selected in step W1 into a conversion destination rule according to the conversion rule (step W8). If the command selected in step W1 is a command used in combination with another command, the command is converted into a conversion destination command together with the command. If there is a related command in the command selected in step W1, the process proceeds to step W5 or step W6. In steps W5 and W6, the command immediately after or immediately before the selected command is read from the device setting file. This command is a related command of the command selected in step W1. The command conversion means 510 may convert the related command and the command selected in step W1 according to the conversion rule. If there is no related command in the command selected in step W1, the process proceeds to step W8 after step W7. In this case, the command conversion means 510 converts the command selected in step W1 into the command specified in step W7.

コマンド変換の具体例を示す。例えば、図25に例示する変換ルールテーブル391における変換ルール392は、変換元コマンド名「interface ethernet」および「bridge−group tag」を変換先コマンド名「set vlan tagbase」に変換し、必須パラメータ名「port−no」および「vlan_no」を「port_no vlan_no」に変換し、オプションパラメータ名「sub_no」を変換先なしとすることを定めている。コマンド変換手段510は、ステップW1で変換前の機器設定ファイルから「interface ethernet(図23における第2行参照)」を選択し、ステップW2〜W5を行ってステップW8に移行したとする。この場合、ステップW5で、機器設定ファイルから第2行の直後の第3行「bridge−group tag」を読み込み、変換ルール392(図25参照)を特定する。コマンド変換手段510は、この変換ルール392に従い、機器設定ファイルにおける選択行およびその直後の行のコマンドを変換する。すなわち、機器設定ファイルの第2行のコマンド「interface ethernet 1/1」、および第3行のコマンド「bridge−group tag 10」を、「set vlan tagbase 1/1 10」に変換する。   A specific example of command conversion is shown. For example, the conversion rule 392 in the conversion rule table 391 illustrated in FIG. 25 converts the conversion source command names “interface Ethernet” and “bridge-group tag” into the conversion destination command name “set vlan tagbase”, and the required parameter name “set vlan tagbase”. “port-no” and “vlan_no” are converted to “port_no vlan_no”, and the option parameter name “sub_no” is defined as no conversion destination. It is assumed that the command conversion means 510 selects “interface Ethernet (see the second line in FIG. 23)” from the device setting file before conversion in step W1, performs steps W2 to W5, and moves to step W8. In this case, in step W5, the third line “bridge-group tag” immediately after the second line is read from the device setting file, and the conversion rule 392 (see FIG. 25) is specified. The command conversion unit 510 converts the command in the selected line in the device setting file and the command immediately after that in accordance with the conversion rule 392. That is, the command “interface Ethernet 1/1” on the second line and the command “bridge-group tag 10” on the third line of the device setting file are converted to “set vlan tagbase 1/1 10”.

以降、同様に、コマンド変換手段510は、機器設定ファイルから1つのコマンドを選択し、そのコマンドに応じた変換ルールを特定して、コマンドを変換する処理(ステップW1〜W8)を繰り返す(ステップW9)。機器設定ファイルの全コマンドに対して変換が完了するまで、この繰り返し処理を行う。この結果、図25に示すコマンド変換前機器設定ファイル610の内容は、図25に示すコマンド変換後機器設定ファイル620のように変換される。   Thereafter, similarly, the command conversion unit 510 selects one command from the device setting file, specifies a conversion rule according to the command, and repeats the process of converting the command (steps W1 to W8) (step W9). ). This process is repeated until the conversion is completed for all commands in the device setting file. As a result, the contents of the pre-command conversion device setting file 610 shown in FIG. 25 are converted as in the post-command conversion device setting file 620 shown in FIG.

なお、コマンド変換手段510は、機器設定ファイルに含まれるコマンド(変換元コマンド群のコマンド)を、変換先コマンド群のコマンドに変換する処理の別の形態として、機器設定ファイルに記載された各コマンドのインデントを用いて、複合コマンドとなる2つのコマンドを予め特定しておき、その複合コマンドをキーとして、変換ルール記憶装置160に記憶された変換ルールの中から合致する変換ルールを検索する仕組みであってもよい。インデントとは、例えば、図25のコマンド変換前機器設定ファイル610の3行目「 bridge−group tag 10」のように、コマンド名の直前にスペースを入れることで字下げを行い、機器設定ファイル全体を見やすくするように整形することである。インデントを表す文字は、スペース以外にも、タブや特定の記号、数値などどのようなものであってもよい。図25のコマンド変換前機器設定ファイル610の場合、コマンド変換手段510は、3行目「 bridge−group tag 10」のスペースによるインデントを発見して、この3行目のコマンドと、この3行目のコマンドの1段字上げのコマンドである2行目「interface ethernet 1/1」とを複合コマンドとみなす。そして、3行目のコマンドのコマンド名「bridge−group tag」と、2行目のコマンドのコマンド名「interface ethernet」とをキーとして、変換ルールテーブル391の中から合致する変換ルールを検索する。そして、その変換ルールに従って、複合コマンドとみなした各コマンドを変換先コマンドに変換してもよい。   Note that the command conversion means 510 uses each command described in the device setting file as another form of processing for converting a command (command of the conversion source command group) included in the device setting file into a command of the conversion destination command group. By using this indentation, two commands that are compound commands are specified in advance, and a matching conversion rule is searched from the conversion rules stored in the conversion rule storage device 160 using the compound command as a key. There may be. Indentation is, for example, indented by inserting a space immediately before the command name, as in the “bridge-group tag 10” on the third line of the device setting file 610 before command conversion in FIG. 25, and the entire device setting file To make it easier to see. Indentation characters may be anything other than spaces, such as tabs, specific symbols, and numerical values. In the case of the pre-command conversion device setting file 610 in FIG. 25, the command conversion means 510 finds an indentation due to a space in the third line “bridge-group tag 10”, and the third line command and the third line The second line “interface Ethernet 1/1”, which is a one-step-up command, is regarded as a composite command. Then, a matching conversion rule is searched from the conversion rule table 391 using the command name “bridge-group tag” of the command on the third line and the command name “interface Ethernet” of the command on the second line as keys. Then, according to the conversion rule, each command regarded as a compound command may be converted into a conversion destination command.

コマンド変換手段510は、コマンド変換後の機器設定ファイル620を出力装置230に出力させる。例えば、コマンド変換手段510は、出力装置230に相当するディスプレイ装置に表示させてもよい。また、出力形式は、例えば、テキストファイル等のファイル形式であってもよいし、他のファイルフォーマットであってもよい。また、コマンドプロンプトの標準出力等に変換結果を出力してもよい。あるいは、出力装置230は通信インターフェイスであって、コマンド変換後機器設定ファイル620を、通信ネットワークを介して直接各ネットワーク機器に送信する出力態様であってもよい。   The command conversion unit 510 causes the output device 230 to output the device setting file 620 after the command conversion. For example, the command conversion means 510 may be displayed on a display device corresponding to the output device 230. The output format may be, for example, a file format such as a text file or another file format. Further, the conversion result may be output to a standard output of a command prompt. Alternatively, the output device 230 may be a communication interface, and may be an output mode in which the command-converted device setting file 620 is directly transmitted to each network device via a communication network.

以上の説明では、機器に対する設定情報(機器設定ファイル)が入力される場合を例にして、説明したが、ソフトウェアに対する設定情報が入力され、その設定情報内のコマンドを変換してもよい。   In the above description, the case where setting information (device setting file) for a device is input has been described as an example. However, setting information for software may be input and a command in the setting information may be converted.

第3の実施の形態において、コマンド変換手段510は、ステップW1で選択したコマンドの変換ルールがない場合、すなわち、ステップW5,W6,W7で変換ルールの特定に失敗した場合、選択したコマンドの変換ルールが存在しない旨の情報を出力してもよい。例えば、ステップW1で選択したコマンドの変換ルールがなく、その変換ルールの作成をユーザに促すメッセージをディスプレイ装置等に表示させてもよい。   In the third embodiment, the command conversion unit 510 converts the selected command when there is no conversion rule for the command selected at step W1, that is, when the conversion rule is not specified at steps W5, W6, W7. Information indicating that no rule exists may be output. For example, there is no conversion rule for the command selected in step W1, and a message prompting the user to create the conversion rule may be displayed on the display device or the like.

また、第1の実施の形態、および第2の実施の形態で説明したように、パラメータ数が一致していないコマンド同士が対応付けられている場合もあり得る。この場合、変換ルール作成手段150は、対応付け可能なパラメータだけを使って変換ルールを作成すればよい。対応付けられなかったパラメータが存在する場合、変換ルールとともに、そのパラメータのパラメータ名も変換ルール記憶装置160に記憶させればよい。ステップW5,W6,W7で特定した変換ルールとともに、対応付けが行われていないパラメータが変換ルール記憶装置160に記憶されている場合、対応付けが行われていないパラメータのパラメータ名と、その変換ルールを完成させるように変換ルールの編集を促すメッセージとをディスプレイ装置等に表示させてもよい。   In addition, as described in the first embodiment and the second embodiment, there may be cases where commands whose parameter numbers do not match are associated with each other. In this case, the conversion rule creation unit 150 may create a conversion rule using only the parameters that can be associated. If there is a parameter that is not associated, the conversion rule storage device 160 may store the parameter name of the parameter together with the conversion rule. When parameters that are not associated are stored in the conversion rule storage device 160 together with the conversion rules specified in steps W5, W6, and W7, the parameter names of the parameters that are not associated and the conversion rules A message prompting the editing of the conversion rule may be displayed on the display device or the like so as to complete the process.

また、設定情報には、設定情報内のコマンドが適用される機器やソフトウェアを指定する指定情報(機器名またはソフトウェア名等)が含まれていてもよい。コマンド変換手段510は、設定情報に含まれる指定情報を参照し、その指定情報を用いて、変換ルール記憶装置160に記憶される変換ルールを絞り込んでもよい。例えば、コマンド変換手段510は、機器設定ファイルの所定位置(例えば1行目)には機器名が記述されているとみなして機器名を抽出し、抽出した機器名に対応する変換ルールだけを変換ルール記憶装置160から最初に選択しておいてもよい。コマンド変換手段510は、ステップW1〜W9の処理において、その変換ルールの中から選択コマンドに合う変換ルールを検索してもよい。このように、機器名等で変換ルールを絞り込むことで、コマンドの変換処理を高速化することができる。   In addition, the setting information may include designation information (device name or software name or the like) for designating a device or software to which a command in the setting information is applied. The command conversion unit 510 may refer to the designation information included in the setting information and narrow down the conversion rules stored in the conversion rule storage device 160 using the designation information. For example, the command conversion unit 510 extracts the device name by assuming that the device name is described at a predetermined position (for example, the first line) of the device setting file, and converts only the conversion rule corresponding to the extracted device name. You may select from the rule memory | storage device 160 first. The command conversion means 510 may search for a conversion rule that matches the selected command from the conversion rules in the processes of steps W1 to W9. Thus, by narrowing down the conversion rules by the device name or the like, the command conversion process can be speeded up.

コマンド変換手段510は、ステップW5,W6,W7の処理で特定した変換ルールを、各コマンドに対する変換処理が完了するまで一時記憶しておき、ステップW1〜W8の繰り返し処理でステップW5,W6,W7を再度実行する場合には、直前のステップW5,W6,W7で特定したコマンドの変換ルールを、一時記憶している変換ルールの中から検索し、目的の変換ルールが一時記憶している変換ルールの中になければ、変換ルール記憶装置160に記憶される変換ルールから選択してもよい。   The command conversion means 510 temporarily stores the conversion rules specified in the processes in steps W5, W6, and W7 until the conversion process for each command is completed, and steps W5, W6, and W7 are repeated in steps W1 to W8. If the command is executed again, the conversion rule of the command specified in the immediately preceding steps W5, W6, and W7 is searched from the temporarily stored conversion rule, and the conversion rule temporarily stored in the target conversion rule If not, the conversion rule stored in the conversion rule storage device 160 may be selected.

また、コマンド変換手段510は、変換先コマンド群のコマンドから変換元コマンド群へのコマンドへ逆変換する処理を行ってもよい。   Further, the command conversion unit 510 may perform a process of performing reverse conversion from a command in the conversion destination command group to a command to the conversion source command group.

第3の実施の形態においても、第1の実施の形態、および第2の実施の形態と同様の効果が得られる。また、コマンド変換手段510は、入力された設定情報に含まれるコマンドを、変換ルールに従って、変換先コマンド群のコマンドに変換する。従って、異なるコマンド群間における同義コマンドの検索および置換を容易に行うことができる。そして、単一のコマンドまたは複数のコマンドを含む設定情報を、別のコマンド群における同義のコマンドで記述した設定情報に自動的に変換することができる。   Also in the third embodiment, the same effect as in the first embodiment and the second embodiment can be obtained. Further, the command conversion means 510 converts the command included in the input setting information into a command in the conversion destination command group according to the conversion rule. Therefore, it is possible to easily search and replace synonymous commands between different command groups. Then, setting information including a single command or a plurality of commands can be automatically converted into setting information described by synonymous commands in another command group.

次に、本発明の最小構成について説明する。図26は、本発明によるコマンド対応付け支援システムの最小構成を示すブロック図である。本発明によるコマンド対応付け支援システムは、情報抽出手段71と、必須パラメータ類似度算出手段72と、コマンド類似度算出手段73と、コマンド対応付け手段74とを備える。   Next, the minimum configuration of the present invention will be described. FIG. 26 is a block diagram showing the minimum configuration of the command association support system according to the present invention. The command association support system according to the present invention includes information extraction means 71, essential parameter similarity calculation means 72, command similarity calculation means 73, and command association means 74.

情報抽出手段71(例えば、情報抽出手段110)は、第1のコマンド群(例えば、変換元コマンド群)の各コマンドのコマンド名、パラメータに関する情報およびそのコマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群(例えば、変換先コマンド群)の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの必須パラメータに関する情報を必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの説明をコマンド関連情報に含める。   The information extraction means 71 (for example, the information extraction means 110) is a command name of each command of the first command group (for example, conversion source command group), information on parameters, and information on related commands used in conjunction with the commands. And a second command manual including the command name of each command in the second command group (for example, conversion destination command group), information on parameters, and related command information. Identify the range of information for each command in each command manual entered, and for each command, generate required parameter related information including information on required parameters of the command. Include information about required parameters of the command in the required parameter related information, and To generate a command related information including a description of the command, if there is a relevant command from the command is included in the command-related information to the description of related commands.

必須パラメータ類似度算出手段72(例えば、必須パラメータ類似度算出手段120)は、第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する。   The essential parameter similarity calculating unit 72 (for example, the essential parameter similarity calculating unit 120) is similar to the essential parameter related information generated from the first command manual and the essential parameter related information generated from the second command manual. Is calculated.

コマンド類似度算出手段73(例えば、コマンド類似度算出手段130)は、第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出する。   The command similarity calculating unit 73 (for example, the command similarity calculating unit 130) calculates the similarity between the command related information generated from the first command manual and the command related information generated from the second command manual.

コマンド対応付け手段74(例えば、変換ルール作成手段150)は、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付ける。   The command association unit 74 (for example, the conversion rule creation unit 150) calculates the total similarity between commands using the similarity of the essential parameter related information and the similarity of the command related information, and uses the total similarity. The commands of the first command group are associated with the commands of the second command group.

そのような構成により、関連するコマンドとともに使用されるコマンドがある場合でも、2つのコマンド群間における各コマンドの対応付けを容易に短時間で行えるように支援することができる。   With such a configuration, even when there are commands that are used together with related commands, it is possible to assist the association of the commands between the two command groups in a short time.

また、上記の実施形態には、以下に示す構成のコマンド対応付け支援システムが開示されている。   In the above embodiment, a command association support system having the following configuration is disclosed.

(1)第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報およびそのコマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの必須パラメータに関する情報を必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドの説明をコマンド関連情報に含める情報抽出手段(例えば、情報抽出手段110)と、第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出手段(例えば、必須パラメータ類似度算出手段)と、第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出手段(例えば、コマンド類似度算出手段130)と、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付け手段(例えば、コマンド対応付け手段140)とを備えることを特徴とするコマンド対応付け支援システム。 (1) a command name of each command in the first command group, a first command manual including information on parameters and related command information used in conjunction with the command, and a command of each command in the second command group When a name, parameter information, and a second command manual including related command information are input, the range of information for each command in each input command manual is specified, and the command is required for each command. Mandatory parameter related information including information on parameters is generated.If there is a command related command, information on required parameters of the related command is included in the required parameter related information, and command related information including a command description is included for each command. If there is a command related command to generate, the related command Similarity between information extraction means (for example, information extraction means 110) including description in command related information, essential parameter related information generated from the first command manual, and required parameter related information generated from the second command manual Required parameter similarity calculating means (for example, essential parameter similarity calculating means), command related information generated from the first command manual, and command related information generated from the second command manual. The total similarity between commands is calculated by using the command similarity calculating means (for example, command similarity calculating means 130) to be calculated, the similarity of the essential parameter related information and the similarity of the command related information. Using the first command group command and the second command group command Command correlation support system characterized in that it comprises a command correlating means (e.g., a command associating means 140) to attach.

(2)情報抽出手段が、必須パラメータに関する情報として必須パラメータ名および必須パラメータの説明文字列を含む必須パラメータ関連情報を生成し、コマンド名とコマンドの説明文字列を含むコマンド関連情報を生成し、必須パラメータ類似度算出手段が、必須パラメータ関連情報の類似度として、必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列の類似度を算出し、コマンド類似度算出手段が、コマンド関連情報の類似度として、コマンド関連情報に含まれるコマンド名とコマンドの説明文字列の類似度を算出するコマンド対応付け支援システム。 (2) The information extraction unit generates essential parameter related information including a required parameter name and an explanatory character string of the required parameter as information on the required parameter, and generates command related information including a command name and an explanatory character string of the command, The required parameter similarity calculation means calculates the similarity of the required parameter name and the description string of the required parameter included in the required parameter related information as the similarity of the required parameter related information, and the command similarity calculation means A command association support system that calculates the similarity between a command name included in command-related information and a command description character string as information similarity.

(3)必須パラメータ類似度算出手段が、第1のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列、および、第2のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1の必須パラメータベクトル(例えば、変換元側の必須パラメータベクトル)を定め、複数の単語について、単語が第2のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2の必須パラメータベクトル(例えば、変換先側の必須パラメータベクトル)を定め、第1の必須パラメータベクトルと第2の必須パラメータベクトルとのコサイン類似度を、必須パラメータ名および必須パラメータの説明文字列の類似度とし、コマンド類似度算出手段が、第1のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列、および、第2のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1のコマンドベクトル(例えば、変換元側のコマンドベクトル)を定め、複数の単語について、単語が第2のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2のコマンドベクトル(例えば、変換先側のコマンドベクトル)を定め、第1のコマンドベクトルと第2のコマンドベクトルとのコサイン類似度を、コマンド名およびコマンドの説明文字列の類似度とするコマンド対応付け支援システム。 (3) The essential parameter similarity calculation means includes the essential parameter name and the description character string of the essential parameter included in the essential parameter related information of the command of the first command group, and the essential parameter relation of the command of the second command group. For a plurality of words included in the required parameter name and the required parameter description string included in the information, the number of times the word appears in the required parameter name and the required parameter description string of the command of the first command group is counted, A first essential parameter vector (for example, a mandatory parameter vector on the conversion source side) that is a vector whose elements are count results for each word is defined, and for a plurality of words, the essential parameter name of the command of the second command group is the word. Count the number of occurrences in the description string of the required parameter and the count result for each word. A second essential parameter vector (for example, an essential parameter vector on the conversion destination side) that is a prime vector is defined, and the cosine similarity between the first essential parameter vector and the second essential parameter vector is set as the essential parameter name and The similarity of the explanatory character string of the essential parameter is set, and the command similarity calculating means includes the command name and the explanatory character string of the command included in the command related information of the command of the first command group, and the command of the second command group For a plurality of words included in the command name and command description character string included in the command related information, the number of times the word appears in the command name and command description character string of the command in the first command group is counted, and the word A first command vector (for example, a conversion source) that is a vector whose elements are the count results of each Command vector), and for a plurality of words, the number of times the word appears in the command name of the command of the second command group and the description character string of the command is counted, and the count result for each word is used as a vector. A command that defines a second command vector (for example, a command vector on the conversion destination side) and uses the cosine similarity between the first command vector and the second command vector as the similarity between the command name and the description character string of the command Matching support system.

(4)コマンド対応付け手段が、必須パラメータ名および必須パラメータの説明文字列の類似度に対する重み値である第1の重み値と、コマンド名およびコマンドの説明文字列の類似度に対する重み値である第2の重み値とを用いて、必須パラメータ名および必須パラメータの説明文字列の類似度、およびコマンド名およびコマンドの説明文字列の類似度に対する重み付けを行い、重み付け後の値を加算することにより総合類似度を算出するコマンド対応付け支援システム。 (4) The command association means is a first weight value that is a weight value for the similarity between the essential parameter name and the explanation character string of the essential parameter, and a weight value for the similarity between the command name and the explanation character string of the command. By using the second weight value, weighting is performed on the similarity between the essential parameter name and the explanatory character string of the essential parameter, and the similarity between the command name and the explanatory character string of the command, and the weighted value is added. A command association support system for calculating the overall similarity.

(5)情報抽出手段が、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドのオプションパラメータに関する情報を含むオプションパラメータ関連情報を生成し、コマンドの関連コマンドがある場合には関連コマンドのオプションパラメータに関する情報をオプションパラメータ関連情報に含め、第1のコマンドマニュアルから生成したオプションパラメータ関連情報と、第2のコマンドマニュアルから生成したオプションパラメータ関連情報との類似度を算出するオプションパラメータ類似度算出手段(例えばオプションパラメータ類似度算出手段410)を備え、コマンド対応付け手段が、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度に加えてオプションパラメータ関連情報の類似度も用いてコマンド間の総合類似度を算出するコマンド対応付け支援システム。 (5) The information extraction means specifies the range of information for each command in each input command manual, generates option parameter related information including information on the option parameter of the command for each command, and relates the command If there is a command, information related to the option parameter of the related command is included in the option parameter related information, and the option parameter related information generated from the first command manual is similar to the option parameter related information generated from the second command manual. An option parameter similarity calculating unit (for example, an option parameter similarity calculating unit 410) for calculating a degree, and the command association unit includes an optional parameter in addition to the similarity of the essential parameter related information and the similarity of the command related information. Command correlation support system similarity communicating information be used to calculate the overall similarity between commands.

(6)情報抽出手段が、必須パラメータに関する情報として必須パラメータ名および必須パラメータの説明文字列を含む必須パラメータ関連情報を生成し、コマンド名とコマンドの説明文字列を含むコマンド関連情報を生成し、オプションパラメータに関する情報としてオプションパラメータ名およびオプションパラメータの説明文字列を含むオプションパラメータ関連情報を生成し、必須パラメータ類似度算出手段が、必須パラメータ関連情報の類似度として、必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列の類似度を算出し、コマンド類似度算出手段が、コマンド関連情報の類似度として、コマンド関連情報に含まれるコマンド名とコマンドの説明文字列の類似度を算出し、オプションパラメータ類似度算出手段が、オプションパラメータ関連情報の類似度として、オプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列の類似度を算出するコマンド対応付け支援システム。 (6) The information extraction unit generates essential parameter related information including a required parameter name and an explanatory character string of the required parameter as information on the required parameter, and generates command related information including a command name and an explanatory character string of the command, Option parameter related information including an option parameter name and an optional parameter description character string is generated as information about the option parameter, and the required parameter similarity calculation means is included in the required parameter related information as the similarity of the required parameter related information. The similarity between the parameter name and the description string of the required parameter is calculated, and the command similarity calculation means calculates the similarity between the command name included in the command related information and the description string of the command as the similarity of the command related information. Option parameters Similarity calculation means, optional parameters associated as the similarity information, optional parameters associated information command associating support system for calculating a similarity description string optional parameter names and optional parameters contained in the.

(7)必須パラメータ類似度算出手段が、第1のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列、および、第2のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1の必須パラメータベクトル(例えば、変換元側の必須パラメータベクトル)を定め、複数の単語について、単語が第2のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2の必須パラメータベクトル(例えば、変換先側の必須パラメータベクトル)を定め、第1の必須パラメータベクトルと第2の必須パラメータベクトルとのコサイン類似度を、必須パラメータ名および必須パラメータの説明文字列の類似度とし、コマンド類似度算出手段が、第1のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列、および、第2のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1のコマンドベクトル(例えば、変換元側のコマンドベクトル)を定め、複数の単語について、単語が第2のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2のコマンドベクトル(例えば、変換先側のコマンドベクトル)を定め、第1のコマンドベクトルと第2のコマンドベクトルとのコサイン類似度を、コマンド名およびコマンドの説明文字列の類似度とし、オプションパラメータ類似度算出手段が、第1のコマンド群のコマンドのオプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列、および、第2のコマンド群のコマンドのオプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドのオプションパラメータ名およびオプションパラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1のオプションパラメータベクトル(例えば、変換元側のオプションパラメータベクトル)を定め、複数の単語について、単語が第2のコマンド群のコマンドのオプションパラメータ名およびオプションパラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2のオプションパラメータベクトル(例えば、変換先側のオプションパラメータベクトル)を定め、第1のオプションパラメータベクトルと第2のオプションパラメータベクトルとのコサイン類似度を、オプションパラメータ名およびオプションパラメータの説明文字列の類似度とするコマンド対応付け支援システム。 (7) The essential parameter similarity calculation means includes the essential parameter name and the description character string of the essential parameter included in the essential parameter related information of the command of the first command group, and the essential parameter relation of the command of the second command group. For a plurality of words included in the required parameter name and the required parameter description string included in the information, the number of times the word appears in the required parameter name and the required parameter description string of the command of the first command group is counted, A first essential parameter vector (for example, a mandatory parameter vector on the conversion source side) that is a vector whose elements are count results for each word is defined, and for a plurality of words, the essential parameter name of the command of the second command group is the word. Count the number of occurrences in the description string of the required parameter and the count result for each word. A second essential parameter vector (for example, an essential parameter vector on the conversion destination side) that is a prime vector is defined, and the cosine similarity between the first essential parameter vector and the second essential parameter vector is set as the essential parameter name and The similarity of the explanatory character string of the essential parameter is set, and the command similarity calculating means includes the command name and the explanatory character string of the command included in the command related information of the command of the first command group, and the command of the second command group For a plurality of words included in the command name and command description character string included in the command related information, the number of times the word appears in the command name and command description character string of the command in the first command group is counted, and the word A first command vector (for example, a conversion source) that is a vector whose elements are the count results of each Command vector), and for a plurality of words, the number of times the word appears in the command name of the command of the second command group and the description character string of the command is counted, and the count result for each word is used as a vector. A second command vector (for example, a command vector on the conversion destination side) is defined, the cosine similarity between the first command vector and the second command vector is set as the similarity between the command name and the description character string of the command, and an option The parameter similarity calculation means is included in the option parameter name and the option parameter description character string included in the option parameter related information of the command of the first command group, and in the option parameter related information of the command of the second command group. Option parameter name and description of option parameter This is a vector that counts the number of times a word appears in the option parameter name of the command in the first command group and the explanation string of the option parameter for a plurality of words included in the character string, and uses the count result for each word as an element. A first option parameter vector (for example, an option parameter vector on the conversion source side) is defined, and for a plurality of words, the number of times the word appears in the option parameter name of the command of the second command group and the description string of the option parameter A second option parameter vector (for example, an option parameter vector on the conversion destination side) that is a vector having the count result for each word as an element is determined, and the first option parameter vector and the second option parameter vector are The cosine similarity can be Data name and the command corresponding with support system to a similarity of description string of optional parameters.

(8)コマンド対応付け手段が、必須パラメータ名および必須パラメータの説明文字列の類似度に対する重み値である第1の重み値と、コマンド名およびコマンドの説明文字列の類似度に対する重み値である第2の重み値と、オプションパラメータ名およびオプションパラメータの説明文字列の類似度に対する重み値である第3の重み値とを用いて、必須パラメータ名および必須パラメータの説明文字列の類似度、コマンド名およびコマンドの説明文字列の類似度、およびオプションパラメータ名およびオプションパラメータの説明文字列の類似度に対する重み付けを行い、重み付け後の値を加算することにより総合類似度を算出するコマンド対応付け支援システム。 (8) The command association means is a first weight value that is a weight value for the similarity between the essential parameter name and the explanatory character string of the essential parameter, and a weight value for the similarity between the command name and the explanatory character string of the command. Using the second weight value and the third weight value, which is a weight value for the similarity between the option parameter name and the optional parameter description character string, the required parameter name and the similarity of the required parameter description character string, command Command association support system for calculating the total similarity by weighting the similarity of the name and the description character string of the command and the similarity of the option parameter name and the description string of the option parameter and adding the weighted values .

(9)コマンド対応付け手段が、第1のコマンド群のコマンド毎に、そのコマンドとの総合類似度が高い順に第2のコマンド群のコマンドを提示し、第2のコマンド群のコマンドのうちユーザに指定されたコマンドと第1のコマンド群のコマンドとを対応付けるコマンド対応付け支援システム。 (9) The command associating means presents the commands of the second command group for each command of the first command group in descending order of the overall similarity to the command, and the user among the commands of the second command group A command association support system for associating the command specified in 1 with the commands of the first command group.

(10)コマンド対応付け手段が、第1のコマンド群のコマンド毎に、第1のコマンド群のコマンドと、そのコマンドとの総合類似度が最も高い第2のコマンド群のコマンドとを対応付けるコマンド対応付け支援システム。 (10) Command correspondence means for associating the command of the first command group with the command of the second command group having the highest overall similarity with the command for each command of the first command group Attachment support system.

(11)コマンド対応付け手段に対応付けられたコマンドの組み合わせ毎に、第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換する変換ルールを作成する変換ルール作成手段(例えば変換ルール作成手段150)を備えるコマンド対応付け支援システム。 (11) Conversion rule creation means for creating a conversion rule for converting a command in the first command group into a command in the second command group for each combination of commands associated with the command association means (for example, creation of a conversion rule) Command association support system comprising means 150).

(12)変換ルール作成手段が作成した変換ルールを記憶する変換ルール記憶手段(例えば、変換ルール記憶装置160)と、変換ルール記憶手段に記憶された変換ルールをユーザの操作に従って編集する変換ルール編集手段とを備えるコマンド対応付け支援システム。 (12) Conversion rule storage means (for example, conversion rule storage device 160) for storing the conversion rule created by the conversion rule creation means, and conversion rule editing for editing the conversion rule stored in the conversion rule storage means in accordance with the user's operation A command association support system comprising means.

(13)ハードウェアまたはソフトウェアに対する設定を行うための設定情報であって第1のコマンド群のコマンドを含む設定情報が入力されると、変換ルールに従って、設定情報に含まれる第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換するコマンド変換手段(例えば、コマンド変換手段510)を備えるコマンド対応付け支援システム。 (13) When setting information for setting hardware or software and including setting command including a command of the first command group is input, the first command group included in the setting information is set according to the conversion rule. A command association support system comprising command conversion means (for example, command conversion means 510) for converting commands into commands of the second command group.

(14)変換ルール作成手段が、コマンド対応付け手段に対応付けられたコマンドの組み合わせ毎に、第1のコマンド群のコマンドのコマンド名と第2のコマンド群のコマンドのコマンド名とを対応付け、第1のコマンド群のコマンドのパラメータと第2のコマンド群のコマンドのパラメータとを対応付けることによって、変換ルールを作成し、コマンド変換手段が、設定情報に含まれる第1のコマンド群のコマンドのコマンド名を第2のコマンド群のコマンドのコマンド名に変換し、第1のコマンド群のコマンドのパラメータを、対応する第2のコマンド群のコマンドのパラメータとして記述することによって、第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換するコマンド対応付け支援システム。 (14) The conversion rule creation means associates the command name of the command in the first command group with the command name of the command in the second command group for each combination of commands associated with the command association means, A conversion rule is created by associating the parameter of the command of the first command group with the parameter of the command of the second command group, and the command conversion means includes the command of the command of the first command group included in the setting information By converting the name into the command name of the command of the second command group and describing the parameter of the command of the first command group as the parameter of the command of the corresponding second command group, A command association support system that converts a command into a command of a second command group.

(15)コマンド変換手段が、設定情報に含まれる第1のコマンド群のコマンドの変換ルールが存在しない場合、第1のコマンド群のコマンドの変換ルールが存在しない旨の情報を出力するコマンド対応付け支援システム。 (15) Command association in which the command conversion means outputs information indicating that there is no command conversion rule for the first command group when there is no command conversion rule for the first command group included in the setting information. Support system.

(16)コマンド変換手段が、ハードウェアまたはソフトウェアを指定する指定情報を含む設定情報が入力されると、指定情報によって指定されたハードウェアまたはソフトウェアのコマンドマニュアルに基づいて作成された変換ルールを選択し、設定情報に含まれる第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換するコマンド対応付け支援システム。 (16) When the setting information including the designation information specifying the hardware or software is input, the command conversion means selects the conversion rule created based on the hardware or software command manual specified by the specification information. And a command association support system for converting a command of the first command group included in the setting information into a command of the second command group.

(17)コマンド変換手段が、設定情報に含まれる第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換したときに、変換に用いた変換ルールを一時記憶し、設定情報に第1のコマンド群のコマンドが再度出現した場合、一時記憶した変換ルールを参照して第2のコマンド群のコマンドへの変換を行うコマンド対応付け支援システム。 (17) When the command conversion means converts the command of the first command group included in the setting information into the command of the second command group, the conversion rule used for the conversion is temporarily stored, and the first information is stored in the setting information. A command association support system that performs conversion to a command in the second command group with reference to the temporarily stored conversion rule when a command in the command group appears again.

本発明は、異なるコマンド群に属するコマンド同士の対応付けに好適に適用可能である。   The present invention can be suitably applied to associating commands belonging to different command groups.

100 コマンド対応付け支援システム
110 情報抽出手段
120 必須パラメータ類似度算出手段
130 コマンド類似度算出手段
140 コマンド対応付け手段
150 変換ルール作成手段
160 変換ルール記憶装置
210 マニュアル入力装置
220 コンフィグ入力装置
410 オプションパラメータ類似度算出手段
510 コマンド変換手段
DESCRIPTION OF SYMBOLS 100 Command matching support system 110 Information extraction means 120 Essential parameter similarity calculation means 130 Command similarity calculation means 140 Command correlation means 150 Conversion rule creation means 160 Conversion rule storage device 210 Manual input device 220 Configuration input device 410 Option parameter similarity Degree calculation means 510 Command conversion means

Claims (23)

第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報および当該コマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドの必須パラメータに関する情報を前記必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドの説明を前記コマンド関連情報に含める情報抽出手段と、
第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出手段と、
第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出手段と、
必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付け手段とを備える
ことを特徴とするコマンド対応付け支援システム。
The first command manual including the command name of each command in the first command group, information on parameters, and related command information used in conjunction with the command, and the command name and parameters of each command in the second command group When a second command manual including information on related commands and information on related commands is input, a range of information for each command in each input command manual is specified, and information on required parameters of the command is specified for each command. If there is a command related to the command, information related to the required parameter of the related command is included in the required parameter related information, and command related information including a command description is included for each command. If there is a command related to the command An information extracting means for including a description of the related commands to the command-related information,
Essential parameter similarity calculating means for calculating the similarity between the essential parameter related information generated from the first command manual and the essential parameter related information generated from the second command manual;
Command similarity calculating means for calculating the similarity between the command related information generated from the first command manual and the command related information generated from the second command manual;
The total similarity between commands is calculated using the similarity of the essential parameter related information and the similarity of the command related information, and the commands of the first command group and the second command group are calculated using the total similarity. A command association support system, comprising: a command association unit that associates with each other.
情報抽出手段は、必須パラメータに関する情報として必須パラメータ名および必須パラメータの説明文字列を含む必須パラメータ関連情報を生成し、コマンド名とコマンドの説明文字列を含むコマンド関連情報を生成し、
必須パラメータ類似度算出手段は、必須パラメータ関連情報の類似度として、必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列の類似度を算出し、
コマンド類似度算出手段は、コマンド関連情報の類似度として、コマンド関連情報に含まれるコマンド名とコマンドの説明文字列の類似度を算出する
請求項1に記載のコマンド対応付け支援システム。
The information extraction means generates essential parameter related information including a mandatory parameter name and an explanatory character string of the essential parameter as information on the essential parameter, generates command related information including a command name and an explanatory character string of the command,
The required parameter similarity calculation means calculates the similarity of the required parameter name and the description string of the required parameter included in the required parameter related information as the similarity of the required parameter related information,
The command association support system according to claim 1, wherein the command similarity calculation unit calculates the similarity between the command name included in the command related information and the description character string of the command as the similarity of the command related information.
必須パラメータ類似度算出手段は、第1のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列、および、第2のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1の必須パラメータベクトルを定め、前記複数の単語について、単語が第2のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2の必須パラメータベクトルを定め、第1の必須パラメータベクトルと第2の必須パラメータベクトルとのコサイン類似度を、必須パラメータ名および必須パラメータの説明文字列の類似度とし、
コマンド類似度算出手段は、第1のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列、および、第2のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1のコマンドベクトルを定め、前記複数の単語について、単語が第2のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2のコマンドベクトルを定め、第1のコマンドベクトルと第2のコマンドベクトルとのコサイン類似度を、コマンド名およびコマンドの説明文字列の類似度とする
請求項2に記載のコマンド対応付け支援システム。
The required parameter similarity calculation means is included in the required parameter name and the description character string of the required parameter included in the required parameter related information of the command of the first command group, and the required parameter related information of the command of the second command group The number of times the word appears in the required parameter name and the required parameter description string of the command of the first command group is counted for a plurality of words included in the required parameter name and the required parameter description character string. A first essential parameter vector, which is a vector whose elements are count results, is defined, and for the plurality of words, the number of times the word appears in the essential parameter name of the command of the second command group and the explanation string of the essential parameter is counted. The second essential parameter vector, which is a vector whose elements are the count results for each word, Defining a torque, the cosine similarity between the first mandatory parameter vector and the second essential parameter vector, and the similarity of the description string required parameters name and required parameters,
The command similarity calculation means includes a command name and command description character string included in the command related information of the command of the first command group, and a command name and command included in the command related information of the command of the second command group. Is a vector that counts the number of times a word appears in the command name of the command in the first command group and the command explanation character string, and uses the count result for each word as an element. A vector that defines a first command vector, counts the number of times the word appears in the command name of the command of the second command group and the command description character string, and uses the count result for each word as an element. The second command vector is defined, and the cosine similarity between the first command vector and the second command vector , Command correlation support system according to claim 2, similarity description string command names and command.
コマンド対応付け手段は、必須パラメータ名および必須パラメータの説明文字列の類似度に対する重み値である第1の重み値と、コマンド名およびコマンドの説明文字列の類似度に対する重み値である第2の重み値とを用いて、必須パラメータ名および必須パラメータの説明文字列の類似度、およびコマンド名およびコマンドの説明文字列の類似度に対する重み付けを行い、重み付け後の値を加算することにより総合類似度を算出する
請求項2または請求項3に記載のコマンド対応付け支援システム。
The command association means includes a first weight value that is a weight value for the similarity between the required parameter name and the description character string of the required parameter, and a second weight value that is a weight value for the similarity between the command name and the description character string of the command. Using the weight value, the similarity of the mandatory parameter name and the explanation string of the mandatory parameter and the similarity of the command name and the explanation string of the command are weighted, and the total similarity is obtained by adding the weighted values. The command association support system according to claim 2 or claim 3.
情報抽出手段は、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドのオプションパラメータに関する情報を含むオプションパラメータ関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドのオプションパラメータに関する情報を前記オプションパラメータ関連情報に含め、
第1のコマンドマニュアルから生成したオプションパラメータ関連情報と、第2のコマンドマニュアルから生成したオプションパラメータ関連情報との類似度を算出するオプションパラメータ類似度算出手段を備え、
コマンド対応付け手段は、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度に加えてオプションパラメータ関連情報の類似度も用いてコマンド間の総合類似度を算出する
請求項1に記載のコマンド対応付け支援システム。
The information extraction means specifies a range of information for each command in each command manual that is input, and generates, for each command, option parameter related information including information related to a command option parameter. If there is, information related to the option parameter of the related command is included in the option parameter related information,
An option parameter similarity calculating means for calculating the similarity between the option parameter related information generated from the first command manual and the option parameter related information generated from the second command manual;
The command correspondence unit according to claim 1, wherein the command association unit calculates the total similarity between commands using the similarity of the option parameter related information in addition to the similarity of the essential parameter related information and the similarity of the command related information. Attachment support system.
情報抽出手段は、必須パラメータに関する情報として必須パラメータ名および必須パラメータの説明文字列を含む必須パラメータ関連情報を生成し、コマンド名とコマンドの説明文字列を含むコマンド関連情報を生成し、オプションパラメータに関する情報としてオプションパラメータ名およびオプションパラメータの説明文字列を含むオプションパラメータ関連情報を生成し、
必須パラメータ類似度算出手段は、必須パラメータ関連情報の類似度として、必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列の類似度を算出し、
コマンド類似度算出手段は、コマンド関連情報の類似度として、コマンド関連情報に含まれるコマンド名とコマンドの説明文字列の類似度を算出し、
オプションパラメータ類似度算出手段は、オプションパラメータ関連情報の類似度として、オプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列の類似度を算出する
請求項5に記載のコマンド対応付け支援システム。
The information extraction means generates required parameter related information including a required parameter name and an explanatory character string of the required parameter as information regarding the required parameter, generates command related information including a command name and an explanatory character string of the command, and relates to the optional parameter. Generate optional parameter related information including optional parameter name and optional parameter description string as information,
The required parameter similarity calculation means calculates the similarity of the required parameter name and the description string of the required parameter included in the required parameter related information as the similarity of the required parameter related information,
The command similarity calculation means calculates the similarity between the command name included in the command related information and the command description character string as the similarity of the command related information,
6. The command association support according to claim 5, wherein the option parameter similarity calculating means calculates a similarity between an option parameter name and an option parameter description character string included in the option parameter related information as a similarity of the option parameter related information. system.
必須パラメータ類似度算出手段は、第1のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列、および、第2のコマンド群のコマンドの必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1の必須パラメータベクトルを定め、前記複数の単語について、単語が第2のコマンド群のコマンドの必須パラメータ名および必須パラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2の必須パラメータベクトルを定め、第1の必須パラメータベクトルと第2の必須パラメータベクトルとのコサイン類似度を、必須パラメータ名および必須パラメータの説明文字列の類似度とし、
コマンド類似度算出手段は、第1のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列、および、第2のコマンド群のコマンドのコマンド関連情報に含まれるコマンド名およびコマンドの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1のコマンドベクトルを定め、前記複数の単語について、単語が第2のコマンド群のコマンドのコマンド名およびコマンドの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2のコマンドベクトルを定め、第1のコマンドベクトルと第2のコマンドベクトルとのコサイン類似度を、コマンド名およびコマンドの説明文字列の類似度とし、
オプションパラメータ類似度算出手段は、第1のコマンド群のコマンドのオプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列、および、第2のコマンド群のコマンドのオプションパラメータ関連情報に含まれるオプションパラメータ名およびオプションパラメータの説明文字列に含まれる複数の単語について、単語が第1のコマンド群のコマンドのオプションパラメータ名およびオプションパラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第1のオプションパラメータベクトルを定め、前記複数の単語について、単語が第2のコマンド群のコマンドのオプションパラメータ名およびオプションパラメータの説明文字列に出現する回数を計数し、単語毎の計数結果を要素とするベクトルである第2のオプションパラメータベクトルを定め、第1のオプションパラメータベクトルと第2のオプションパラメータベクトルとのコサイン類似度を、オプションパラメータ名およびオプションパラメータの説明文字列の類似度とする
請求項6に記載のコマンド対応付け支援システム。
The required parameter similarity calculation means is included in the required parameter name and the description character string of the required parameter included in the required parameter related information of the command of the first command group, and the required parameter related information of the command of the second command group The number of times the word appears in the required parameter name and the required parameter description string of the command of the first command group is counted for a plurality of words included in the required parameter name and the required parameter description character string. A first essential parameter vector, which is a vector whose elements are count results, is defined, and for the plurality of words, the number of times that the word appears in the essential parameter name of the command of the second command group and the explanation string of the essential parameter is counted. The second essential parameter vector, which is a vector whose elements are the count results for each word, Defining a torque, the cosine similarity between the first mandatory parameter vector and the second essential parameter vector, and the similarity of the description string required parameters name and required parameters,
The command similarity calculation means includes a command name and command description character string included in the command related information of the command of the first command group, and a command name and command included in the command related information of the command of the second command group. Is a vector that counts the number of times a word appears in the command name of the command in the first command group and the command explanation character string, and uses the count result for each word as an element. A vector that defines a first command vector, counts the number of times the word appears in the command name of the command of the second command group and the command description character string, and uses the count result for each word as an element. The second command vector is defined, and the cosine similarity between the first command vector and the second command vector , And the similarity of the description string of command names and command,
The option parameter similarity calculating means is included in the option parameter name and the option parameter description character string included in the option parameter related information of the command of the first command group, and in the option parameter related information of the command of the second command group. The number of times the word appears in the option parameter name and the option parameter description character string of the command of the first command group is counted for a plurality of words included in the option parameter name and the option parameter description character string. A first option parameter vector, which is a vector whose elements are count results, is defined, and for the plurality of words, the number of times the word appears in the option parameter name of the command of the second command group and the explanation string of the option parameter A second option parameter vector which is a vector having the count result for each word as an element is defined, and the cosine similarity between the first option parameter vector and the second option parameter vector is set as an option parameter name and an option parameter. The command association support system according to claim 6, wherein the degree of similarity of the explanation character string
コマンド対応付け手段は、必須パラメータ名および必須パラメータの説明文字列の類似度に対する重み値である第1の重み値と、コマンド名およびコマンドの説明文字列の類似度に対する重み値である第2の重み値と、オプションパラメータ名およびオプションパラメータの説明文字列の類似度に対する重み値である第3の重み値とを用いて、必須パラメータ名および必須パラメータの説明文字列の類似度、コマンド名およびコマンドの説明文字列の類似度、およびオプションパラメータ名およびオプションパラメータの説明文字列の類似度に対する重み付けを行い、重み付け後の値を加算することにより総合類似度を算出する
請求項6または請求項7に記載のコマンド対応付け支援システム。
The command association means includes a first weight value that is a weight value for the similarity between the required parameter name and the description character string of the required parameter, and a second weight value that is a weight value for the similarity between the command name and the description character string of the command. Using the weight value and the third weight value that is a weight value for the similarity between the option parameter name and the option character description character string, the required parameter name, the similarity of the required parameter description character string, the command name, and the command The total similarity is calculated by weighting the similarity of the explanation character string of the above and the similarity of the explanation string of the option parameter name and the option parameter, and adding the weighted values. The command association support system described.
コマンド対応付け手段は、第1のコマンド群のコマンド毎に、当該コマンドとの総合類似度が高い順に第2のコマンド群のコマンドを提示し、第2のコマンド群のコマンドのうちユーザに指定されたコマンドと第1のコマンド群のコマンドとを対応付ける
請求項1から請求項8のうちのいずれか1項に記載のコマンド対応付け支援システム。
The command association means presents the commands of the second command group in descending order of the overall similarity to the command for each command of the first command group, and is designated by the user among the commands of the second command group. The command association support system according to any one of claims 1 to 8, wherein the command is associated with a command of the first command group.
コマンド対応付け手段は、第1のコマンド群のコマンド毎に、第1のコマンド群のコマンドと、当該コマンドとの総合類似度が最も高い第2のコマンド群のコマンドとを対応付ける
請求項1から請求項8のうちのいずれか1項に記載のコマンド対応付け支援システム。
The command associating means associates, for each command in the first command group, the command in the first command group and the command in the second command group having the highest overall similarity with the command. Item 9. The command association support system according to any one of Items8.
コマンド対応付け手段に対応付けられたコマンドの組み合わせ毎に、第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換する変換ルールを作成する変換ルール作成手段を備える
請求項1から請求項10のうちのいずれか1項に記載のコマンド対応付け支援システム。
2. A conversion rule creating means for creating a conversion rule for converting a command in the first command group into a command in the second command group for each combination of commands associated with the command associating means. The command association support system according to any one of 10.
変換ルール作成手段が作成した変換ルールを記憶する変換ルール記憶手段と、
変換ルール記憶手段に記憶された変換ルールをユーザの操作に従って編集する変換ルール編集手段とを備える
請求項11に記載のコマンド対応付け支援システム。
Conversion rule storage means for storing the conversion rule created by the conversion rule creation means;
The command association support system according to claim 11, further comprising: a conversion rule editing unit that edits the conversion rule stored in the conversion rule storage unit according to a user operation.
ハードウェアまたはソフトウェアに対する設定を行うための設定情報であって第1のコマンド群のコマンドを含む設定情報が入力されると、変換ルールに従って、前記設定情報に含まれる第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換するコマンド変換手段を備える
請求項11または請求項12に記載のコマンド対応付け支援システム。
When setting information for setting hardware or software and including setting command including a command of the first command group is input, a command of the first command group included in the setting information is changed according to a conversion rule. The command association support system according to claim 11 or 12, further comprising command conversion means for converting the command into a command of the second command group.
変換ルール作成手段は、コマンド対応付け手段に対応付けられたコマンドの組み合わせ毎に、第1のコマンド群のコマンドのコマンド名と第2のコマンド群のコマンドのコマンド名とを対応付け、第1のコマンド群のコマンドのパラメータと第2のコマンド群のコマンドのパラメータとを対応付けることによって、変換ルールを作成し、
コマンド変換手段は、設定情報に含まれる第1のコマンド群のコマンドのコマンド名を第2のコマンド群のコマンドのコマンド名に変換し、前記第1のコマンド群のコマンドのパラメータを、対応する第2のコマンド群のコマンドのパラメータとして記述することによって、第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換する
請求項13に記載のコマンド対応付け支援システム。
The conversion rule creation means associates the command name of the command in the first command group with the command name of the command in the second command group for each combination of commands associated with the command association means. Create a conversion rule by associating the command parameter of the command group with the command parameter of the second command group,
The command conversion means converts the command name of the command of the first command group included in the setting information into the command name of the command of the second command group, and sets the parameter of the command of the first command group to the corresponding first command group. The command association support system according to claim 13, wherein a command in the first command group is converted into a command in the second command group by describing the parameter as a command parameter of the second command group.
コマンド変換手段は、設定情報に含まれる第1のコマンド群のコマンドの変換ルールが存在しない場合、前記第1のコマンド群のコマンドの変換ルールが存在しない旨の情報を出力する
請求項13または請求項14に記載のコマンド対応付け支援システム。
The command conversion means outputs information indicating that there is no command conversion rule for the first command group when there is no command conversion rule for the first command group included in the setting information. Item 15. The command association support system according to Item 14.
コマンド変換手段は、ハードウェアまたはソフトウェアを指定する指定情報を含む設定情報が入力されると、指定情報によって指定されたハードウェアまたはソフトウェアのコマンドマニュアルに基づいて作成された変換ルールを選択し、設定情報に含まれる第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換する
請求項13から請求項15のうちのいずれか1項に記載のコマンド対応付け支援システム。
When setting information including designation information for specifying hardware or software is input, the command conversion means selects and sets a conversion rule created based on the hardware or software command manual specified by the specification information. The command association support system according to any one of claims 13 to 15, wherein the command of the first command group included in the information is converted into a command of the second command group.
コマンド変換手段は、設定情報に含まれる第1のコマンド群のコマンドを第2のコマンド群のコマンドに変換したときに、変換に用いた変換ルールを一時記憶し、設定情報に前記第1のコマンド群のコマンドが再度出現した場合、一時記憶した変換ルールを参照して第2のコマンド群のコマンドへの変換を行う
請求項13から請求項16のうちのいずれか1項に記載のコマンド対応付け支援システム。
The command conversion means temporarily stores the conversion rule used for the conversion when the command of the first command group included in the setting information is converted into the command of the second command group, and the first command is stored in the setting information. The command association according to any one of claims 13 to 16, wherein when a command of the group appears again, conversion to the command of the second command group is performed with reference to the temporarily stored conversion rule. Support system.
第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報および当該コマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドの必須パラメータに関する情報を前記必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドの説明を前記コマンド関連情報に含める情報抽出ステップと、
第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出ステップと、
第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出ステップと、
必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付けステップとを含む
ことを特徴とするコマンド対応付け支援方法。
The first command manual including the command name of each command in the first command group, information on parameters, and related command information used in conjunction with the command, and the command name and parameters of each command in the second command group When a second command manual including information on related commands and information on related commands is input, a range of information for each command in each input command manual is specified, and information on required parameters of the command is specified for each command. If there is a command related to the command, information related to the required parameter of the related command is included in the required parameter related information, and command related information including a command description is included for each command. If there is a command related to the command An information extracting step of including a description of the related commands to the command-related information,
An essential parameter similarity calculating step for calculating a similarity between the essential parameter related information generated from the first command manual and the essential parameter related information generated from the second command manual;
A command similarity calculating step for calculating a similarity between the command related information generated from the first command manual and the command related information generated from the second command manual;
The total similarity between commands is calculated using the similarity of the essential parameter related information and the similarity of the command related information, and the commands of the first command group and the second command group are calculated using the total similarity. And a command association step for associating the command with each other.
情報抽出ステップで、必須パラメータに関する情報として必須パラメータ名および必須パラメータの説明文字列を含む必須パラメータ関連情報を生成し、コマンド名とコマンドの説明文字列を含むコマンド関連情報を生成し、
必須パラメータ類似度算出ステップで、必須パラメータ関連情報の類似度として、必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列の類似度を算出し、
コマンド類似度算出ステップで、コマンド関連情報の類似度として、コマンド関連情報に含まれるコマンド名とコマンドの説明文字列の類似度を算出する
請求項18に記載のコマンド対応付け支援方法。
In the information extraction step, as the information regarding the required parameter, the required parameter name and the required parameter related information including the required character description string are generated, and the command related information including the command name and the command description character string is generated,
In the required parameter similarity calculation step, the similarity of the required parameter name and the description string of the required parameter included in the required parameter related information is calculated as the required parameter related information similarity,
19. The command association support method according to claim 18, wherein, in the command similarity calculation step, the similarity between the command name included in the command related information and the description character string of the command is calculated as the similarity of the command related information.
情報抽出ステップで、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドのオプションパラメータに関する情報を含むオプションパラメータ関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドのオプションパラメータに関する情報を前記オプションパラメータ関連情報に含め、
第1のコマンドマニュアルから生成したオプションパラメータ関連情報と、第2のコマンドマニュアルから生成したオプションパラメータ関連情報との類似度を算出するオプションパラメータ類似度算出ステップを含み、
コマンド対応付けステップで、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度に加えてオプションパラメータ関連情報の類似度も用いてコマンド間の総合類似度を算出する
請求項18に記載のコマンド対応付け支援方法。
In the information extraction step, the range of information for each command in each input command manual is specified, and for each command, option parameter related information including information related to the command option parameters is generated. If there is, information related to the option parameter of the related command is included in the option parameter related information,
An option parameter similarity calculating step for calculating a similarity between the option parameter related information generated from the first command manual and the option parameter related information generated from the second command manual;
19. The command correspondence according to claim 18, wherein in the command association step, the total similarity between commands is calculated using the similarity of the optional parameter related information in addition to the similarity of the essential parameter related information and the similarity of the command related information. Attaching support method.
コンピュータに、
第1のコマンド群の各コマンドのコマンド名、パラメータに関する情報および当該コマンドと併せて使用される関連コマンドの情報を含む第1のコマンドマニュアルと、第2のコマンド群の各コマンドのコマンド名、パラメータに関する情報および関連コマンドの情報を含む第2のコマンドマニュアルとが入力されると、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドの必須パラメータに関する情報を含む必須パラメータ関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドの必須パラメータに関する情報を前記必須パラメータ関連情報に含め、コマンド毎に、コマンドの説明を含むコマンド関連情報を生成し、前記コマンドの関連コマンドがある場合には当該関連コマンドの説明を前記コマンド関連情報に含める情報抽出処理、
第1のコマンドマニュアルから生成した必須パラメータ関連情報と、第2のコマンドマニュアルから生成した必須パラメータ関連情報との類似度を算出する必須パラメータ類似度算出処理、
第1のコマンドマニュアルから生成したコマンド関連情報と、第2のコマンドマニュアルから生成したコマンド関連情報との類似度を算出するコマンド類似度算出処理、および、
必須パラメータ関連情報の類似度およびコマンド関連情報の類似度を用いて、コマンド間の総合類似度を算出し、総合類似度を利用して第1のコマンド群のコマンドと第2のコマンド群のコマンドとを対応付けるコマンド対応付け処理
を実行させるためのコマンド対応付け支援プログラム。
On the computer,
The first command manual including the command name of each command in the first command group, information on parameters, and related command information used in conjunction with the command, and the command name and parameters of each command in the second command group When a second command manual including information on related commands and information on related commands is input, a range of information for each command in each input command manual is specified, and information on required parameters of the command is specified for each command. If there is a command related to the command, information related to the required parameter of the related command is included in the required parameter related information, and command related information including a command description is included for each command. If there is a command related to the command Information extraction process to include a description of the related commands to the command-related information,
An essential parameter similarity calculation process for calculating the similarity between the essential parameter related information generated from the first command manual and the essential parameter related information generated from the second command manual;
A command similarity calculation process for calculating the similarity between the command related information generated from the first command manual and the command related information generated from the second command manual;
The total similarity between commands is calculated using the similarity of the essential parameter related information and the similarity of the command related information, and the commands of the first command group and the second command group are calculated using the total similarity. A command association support program for executing command association processing for associating.
コンピュータに、
情報抽出処理で、必須パラメータに関する情報として必須パラメータ名および必須パラメータの説明文字列を含む必須パラメータ関連情報を生成させ、コマンド名とコマンドの説明文字列を含むコマンド関連情報を生成させ、
必須パラメータ類似度算出処理で、必須パラメータ関連情報の類似度として、必須パラメータ関連情報に含まれる必須パラメータ名および必須パラメータの説明文字列の類似度を算出させ、
コマンド類似度算出処理で、コマンド関連情報の類似度として、コマンド関連情報に含まれるコマンド名とコマンドの説明文字列の類似度を算出させる
請求項21に記載のコマンド対応付け支援プログラム。
On the computer,
In the information extraction process, the required parameter related information including the required parameter name and the description string of the required parameter is generated as information about the required parameter, and the command related information including the command name and the description string of the command is generated.
In the required parameter similarity calculation process, the similarity of the required parameter name and the description string of the required parameter included in the required parameter related information is calculated as the required parameter related information similarity,
The command association support program according to claim 21, wherein in the command similarity calculation process, the similarity between the command name included in the command related information and the description character string of the command is calculated as the similarity of the command related information.
コンピュータに、
情報抽出処理で、入力された各コマンドマニュアル内のコマンド毎の情報の範囲を特定して、コマンド毎に、コマンドのオプションパラメータに関する情報を含むオプションパラメータ関連情報を生成させ、前記コマンドの関連コマンドがある場合には当該関連コマンドのオプションパラメータに関する情報を前記オプションパラメータ関連情報に含めさせ、
第1のコマンドマニュアルから生成したオプションパラメータ関連情報と、第2のコマンドマニュアルから生成したオプションパラメータ関連情報との類似度を算出するオプションパラメータ類似度算出処理を実行させ、
コマンド対応付け処理で、必須パラメータ関連情報の類似度およびコマンド関連情報の類似度に加えてオプションパラメータ関連情報の類似度も用いてコマンド間の総合類似度を算出させる
請求項21に記載のコマンド対応付け支援プログラム。
On the computer,
In the information extraction process, the range of information for each command in each input command manual is specified, and for each command, option parameter related information including information on the option parameter of the command is generated. If there is, information related to the option parameter of the related command is included in the option parameter related information,
An option parameter similarity calculation process for calculating a similarity between the option parameter related information generated from the first command manual and the option parameter related information generated from the second command manual;
The command correspondence processing according to claim 21, wherein the command correspondence processing calculates the total similarity between commands using the similarity of the optional parameter related information in addition to the similarity of the essential parameter related information and the similarity of the command related information. Attachment support program.
JP2009080195A 2009-03-27 2009-03-27 Command association support system, command association support method and program Pending JP2010231638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009080195A JP2010231638A (en) 2009-03-27 2009-03-27 Command association support system, command association support method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009080195A JP2010231638A (en) 2009-03-27 2009-03-27 Command association support system, command association support method and program

Publications (1)

Publication Number Publication Date
JP2010231638A true JP2010231638A (en) 2010-10-14

Family

ID=43047367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009080195A Pending JP2010231638A (en) 2009-03-27 2009-03-27 Command association support system, command association support method and program

Country Status (1)

Country Link
JP (1) JP2010231638A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016004457A (en) * 2014-06-18 2016-01-12 富士ゼロックス株式会社 Information processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016004457A (en) * 2014-06-18 2016-01-12 富士ゼロックス株式会社 Information processing system

Similar Documents

Publication Publication Date Title
KR102565659B1 (en) Method and apparatus for generating information
US20020038319A1 (en) Apparatus converting a structured document having a hierarchy
WO2008041366A1 (en) Document searching device, document searching method, and document searching program
JP2013182410A (en) Business analysis design support device, business analysis design support method, and business analysis design support program
JP2012123675A (en) Method and system for extracting system component
CN111968624A (en) Data construction method and device, electronic equipment and storage medium
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
JP2010231638A (en) Command association support system, command association support method and program
JP2006243832A (en) Workflow retrieval system
JP2009123114A (en) Information processor and information processing method
JP2009211599A (en) Mapping definition creation system and mapping definition creation program
JP2019121164A (en) Document creating apparatus, document creating method, database construction apparatus, database construction method, and program
JP2010113651A (en) Command association support system, command ssociation support method, and program
JP2012226697A (en) Wbs creation system and wbs creation method
JP5358981B2 (en) Information processing apparatus, information processing apparatus control method, and information processing apparatus control program
JP5581861B2 (en) Retrieval device, method and program, and data parsing device having retrieval function
JPWO2021064891A5 (en) Inference knowledge construction support device, inference knowledge construction support method, and program
JP5206675B2 (en) Structured document converter
JP2007219579A (en) Document converter and program
JP6413597B2 (en) Analysis program, analysis method, and analysis apparatus
JP5600826B1 (en) Unstructured data processing system, unstructured data processing method and program
JP2006228069A (en) Data retrieval system, method and program
JP5596517B2 (en) Internationalized screen generation system and program
WO2024047997A1 (en) Document analysis device and program for document analysis
WO2024116688A1 (en) Idea assistance system and method