Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6715758B2 - Classifier generation device, classifier generation method, and computer program - Google Patents
[go: Go Back, main page]

JP6715758B2 - Classifier generation device, classifier generation method, and computer program - Google Patents

Classifier generation device, classifier generation method, and computer program Download PDF

Info

Publication number
JP6715758B2
JP6715758B2 JP2016251499A JP2016251499A JP6715758B2 JP 6715758 B2 JP6715758 B2 JP 6715758B2 JP 2016251499 A JP2016251499 A JP 2016251499A JP 2016251499 A JP2016251499 A JP 2016251499A JP 6715758 B2 JP6715758 B2 JP 6715758B2
Authority
JP
Japan
Prior art keywords
sentence
classifier
classification
data
word
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.)
Active
Application number
JP2016251499A
Other languages
Japanese (ja)
Other versions
JP2018106390A (en
Inventor
亮博 小林
亮博 小林
尚樹 今井
尚樹 今井
啓一郎 帆足
啓一郎 帆足
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.)
KDDI Corp
Original Assignee
KDDI 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 KDDI Corp filed Critical KDDI Corp
Priority to JP2016251499A priority Critical patent/JP6715758B2/en
Publication of JP2018106390A publication Critical patent/JP2018106390A/en
Application granted granted Critical
Publication of JP6715758B2 publication Critical patent/JP6715758B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、分類器生成装置、分類器生成方法、及びコンピュータプログラムに関する。 The present invention relates to a classifier generation device, a classifier generation method, and a computer program.

従来のテキスト分類技術として、例えば特許文献1,2が知られている。特許文献1のテキスト分類技術では、階層化されたカテゴリにテキストを分類する。特許文献2のテキスト分類技術では、文書の階層型分類において、情報のカテゴリを、検索に関連する情報を含むバイナリツリーのノードを含むバイナリツリーとして構成する。 For example, Patent Documents 1 and 2 are known as conventional text classification techniques. In the text classification technique of Patent Document 1, texts are classified into hierarchical categories. In the text classification technique of Patent Document 2, in the hierarchical classification of documents, a category of information is configured as a binary tree including nodes of a binary tree including information related to search.

特開2006−251975号公報JP, 2006-251975, A 特開2006−18829号公報JP, 2006-18829, A

しかし、上述した従来のテキスト分類技術では、階層化されたカテゴリにおいて階層が深くなるにつれて分類精度が低下する可能性があった。また、カテゴリの階層構造が大規模になると、実際の分類に不要のカテゴリも含まれる事象が発生して分類処理の効率が悪くなる可能性があった。このような問題の対処方法としてカテゴリの階層構造を人手で最適化することが考えられるが、処理時間の増大やコスト増等の負担のために難しい場合があった。 However, in the above-described conventional text classification technique, the classification accuracy may decrease as the hierarchy becomes deeper in the hierarchical categories. In addition, when the hierarchical structure of the categories becomes large, there is a possibility that an unnecessary category may be included in the actual classification and the efficiency of the classification process may be deteriorated. As a method of coping with such a problem, it is possible to manually optimize the hierarchical structure of categories, but this may be difficult due to the burden of increased processing time and increased costs.

本発明は、このような事情を考慮してなされたものであり、その目的は、テキスト分類処理の効率の向上を図ることにある。 The present invention has been made in view of such circumstances, and an object thereof is to improve the efficiency of text classification processing.

本発明の一態様は、同じ回答者から得られる意味的に反対の質問に対する各回答を分類するための分類器を生成する分類器生成装置であって、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更部と、文章データを分類する先である分類項目及び分類項目の階層を示す第1分類構造データに含まれる文を前記文変更部により変更して第2分類構造データを生成し、前記第2分類構造データと、前記第2分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第2教師データとを使用して分類器を生成する分類器生成部と、を備え、前記文変更部は、入力文に対して形態素解析および係り受け解析を行い、形態素解析および係り受け解析の結果、前記入力文中に述語項構造がある場合に、当該述部の単語の反対語を反対語辞書から取得し、前記入力文中の当該述部の単語を当該取得した反対語に置換する、分類器生成装置である。
本発明の一態様は、前記文変更部は、前記入力文中に述語項構造がある場合において、当該述部の単語の反対語を反対語辞書から取得することができないときには、前記入力文中の当該述部の単語に否定語を追加する、又は前記入力文中の当該述部の単語から否定語を削除する、分類器生成装置である。
本発明の一態様は、前記文変更部は、前記入力文に対する形態素解析および係り受け解析の結果、前記入力文中に述語項構造が発見されなかった場合に、前記入力文中の体言止めの単語の反対語を反対語辞書から取得し、前記入力文中の当該体言止めの単語を当該取得した反対語に置換する、分類器生成装置である。
One aspect of the present invention is a classifier generation device that generates a classifier for classifying each answer to a semantically opposite question obtained from the same respondent, in which words are replaced or words are added or deleted. The sentence changing unit for changing the meaning of the sentence, and the sentence included in the first classification structure data indicating the classification item and the hierarchy of the classification item to which the sentence data is classified are changed by the sentence changing unit to perform the second classification. Structure data is generated, and a classifier is generated using the second classification structure data and the second teacher data to which the classification item of the second classification structure data and the label for identifying the hierarchy of the classification item are attached. A classifier generation unit is provided , and the sentence modification unit performs a morphological analysis and a dependency analysis on the input sentence. As a result of the morphological analysis and the dependency analysis, when the input sentence has a predicate term structure, A classifier generation device that acquires an antonym of a word of the predicate from an antonym dictionary and replaces the word of the predicate in the input sentence with the acquired antonym .
In one aspect of the present invention, when the input sentence has a predicate-argument structure, when the antonym of the word of the predicate cannot be obtained from an antonym dictionary, A classifier generation device that adds a negative word to a word of a predicate or deletes a negative word from the word of the predicate in the input sentence.
In one aspect of the present invention, the sentence modification unit, as a result of morphological analysis and dependency analysis on the input sentence, when a predicate-argument structure is not found in the input sentence, It is a classifier generation device that acquires an antonym from an antonym dictionary and replaces the word of the word stop in the input sentence with the acquired antonym.

本発明の一態様は、前記分類器生成部は、前記第1分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第1教師データに含まれる文を前記文変更部により変更して前記第2教師データを生成する、分類器生成装置である。 In one aspect of the present invention, the classifier generation unit causes the sentence modification unit to include a sentence included in the first teacher data to which a label for identifying a classification item of the first classification structure data and a hierarchy of the classification item is added. It is a classifier generation device that is changed to generate the second teacher data.

本発明の一態様は、前記分類器生成部が生成した分類器を使用して分類対象テキストデータを分類し、該分類の結果に基づいて当該分類器の代表文を生成する代表文生成部をさらに備える、分類器生成装置である。 According to one aspect of the present invention, a representative sentence generation unit that classifies the classification target text data using the classifier generated by the classifier generation unit and generates a representative sentence of the classifier based on the result of the classification is provided. A classifier generation device further provided.

本発明の一態様は、前記分類器生成部が生成した分類器を使用して、前記第2分類構造データに係る分類対象データを分類し、該分類の結果に基づいて当該分類器を補正するか否かを判断する分類器補正部をさらに備える、分類器生成装置である。 One aspect of the present invention uses the classifier generated by the classifier generation unit to classify the classification target data related to the second classification structure data, and corrects the classifier based on a result of the classification. The classifier generation device further includes a classifier correction unit that determines whether or not it is.

本発明の一態様は、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更部と、文章データを分類する先である分類項目及び分類項目の階層を示す分類構造データを有する第1分類器に含まれる文を前記文変更部により変更して、第2分類器を生成する分類器生成部と、を備える分類器生成装置である。 One aspect of the present invention is to provide a sentence changing unit that replaces a word or adds or deletes a word to change the meaning of a sentence, and a classification structure data that is a destination of classifying text data and classification structure data indicating a hierarchy of the classification item. And a classifier generating unit that changes the sentence included in the first classifier included by the sentence changing unit to generate a second classifier.

本発明の一態様は、同じ回答者から得られる意味的に反対の質問に対する各回答を分類するための分類器を生成する分類器生成方法であって、分類器生成装置が、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更ステップと、前記分類器生成装置が、文章データを分類する先である分類項目及び分類項目の階層を示す第1分類構造データに含まれる文を前記文変更ステップにより変更して第2分類構造データを生成し、前記第2分類構造データと、前記第2分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第2教師データとを使用して分類器を生成する分類器生成ステップと、を含み、前記文変更ステップは、入力文に対して形態素解析および係り受け解析を行い、形態素解析および係り受け解析の結果、前記入力文中に述語項構造がある場合に、当該述部の単語の反対語を反対語辞書から取得し、前記入力文中の当該述部の単語を当該取得した反対語に置換する、分類器生成方法である。 One aspect of the present invention is a classifier generation method for generating a classifier for classifying each answer to a semantically opposite question obtained from the same respondent, wherein the classifier generation device replaces or replaces words. The sentence changing step of changing the meaning of the sentence by adding or deleting words, and the classifier generating device are included in the first classification structure data indicating the classification item and the hierarchy of the classification item to which the sentence data is classified. A sentence is changed by the sentence changing step to generate second classification structure data, and the second classification structure data, a classification item of the second classification structure data, and a label for identifying a hierarchy of classification items are attached. a classifier generation step of generating a classifier using a 2 teacher data, only contains the sentence changing step performs a morphological analysis and dependency analysis on the input sentence, the morphological analysis and dependency analysis As a result, when there is a predicate-argument structure in the input sentence, an antonym of the word of the predicate is acquired from an antonym dictionary, and the word of the predicate in the input sentence is replaced with the acquired antonym, classification It is a container generation method.

本発明の一態様は、分類器生成装置が、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更ステップと、前記分類器生成装置が、文章データを分類する先である分類項目及び分類項目の階層を示す分類構造データを有する第1分類器に含まれる文を前記文変更ステップにより変更して、第2分類器を生成する分類器生成ステップと、を含む分類器生成方法である。 One aspect of the present invention is a sentence changing step in which a classifier generating device replaces a word or adds or deletes a word to change the meaning of a sentence, and the classifier generating device classifies sentence data. A classifier generation step of generating a second classifier by changing the sentence included in the first classifier having the classification structure data indicating the hierarchy of the classification items and the classification items by the sentence changing step. Is the way.

本発明の一態様は、同じ回答者から得られる意味的に反対の質問に対する各回答を分類するための分類器を生成する分類器生成装置のコンピュータに、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更機能と、文章データを分類する先である分類項目及び分類項目の階層を示す第1分類構造データに含まれる文を前記文変更機能により変更して第2分類構造データを生成し、前記第2分類構造データと、前記第2分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第2教師データとを使用して分類器を生成する分類器生成機能と、を実現させるためのコンピュータプログラムであって、前記文変更機能は、入力文に対して形態素解析および係り受け解析を行い、形態素解析および係り受け解析の結果、前記入力文中に述語項構造がある場合に、当該述部の単語の反対語を反対語辞書から取得し、前記入力文中の当該述部の単語を当該取得した反対語に置換する、コンピュータプログラムである。
One aspect of the present invention is to replace a word or add or delete a word in a computer of a classifier generation device that generates a classifier for classifying each answer to a semantically opposite question obtained from the same respondent. Sentence change function for changing the meaning of the sentence, and the sentence included in the first classification structure data indicating the classification item and the hierarchy of the classification item from which the sentence data is classified by the sentence modification function to change the second classification Structure data is generated, and a classifier is generated using the second classification structure data and the second teacher data to which the classification item of the second classification structure data and the label for identifying the hierarchy of the classification item are attached. A computer program for realizing a classifier generation function , wherein the sentence modification function performs a morphological analysis and a dependency analysis on an input sentence, and a result of the morphological analysis and the dependency analysis results in the input sentence. A computer program that acquires an antonym of a word of the predicate from an antonym dictionary when there is a predicate structure and replaces the word of the predicate in the input sentence with the acquired antonym .

本発明の一態様は、コンピュータに、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更機能と、文章データを分類する先である分類項目及び分類項目の階層を示す分類構造データを有する第1分類器に含まれる文を前記文変更機能により変更して、第2分類器を生成する分類器生成機能と、を実現させるためのコンピュータプログラムである。 According to one embodiment of the present invention, a sentence changing function of changing a meaning of a sentence by replacing a word or adding or deleting a word to a computer, a classification item that is a destination of classifying text data, and a classification indicating a hierarchy of the classification item. It is a computer program for realizing a classifier generation function of generating a second classifier by changing a sentence included in a first classifier having structural data by the sentence changing function.

本発明によれば、テキスト分類処理の効率の向上を図ることができるという効果が得られる。 According to the present invention, it is possible to obtain the effect that the efficiency of text classification processing can be improved.

一実施形態に係る分類システム1の構成例を示すブロック図である。It is a block diagram showing an example of composition of classification system 1 concerning one embodiment. 一実施形態に係る分類器生成方法の概要の説明図である。It is an explanatory view of the outline of the classifier generation method concerning one embodiment. 一実施形態に係る分類器の説明図である。It is explanatory drawing of the classifier which concerns on one Embodiment. 一実施形態に係る分類器生成部11についての説明図である。It is explanatory drawing about the classifier generation part 11 which concerns on one Embodiment. 一実施形態に係る代表文生成部13についての説明図である。It is explanatory drawing about the representative sentence production|generation part 13 which concerns on one Embodiment. 一実施形態に係る分類器補正部14についての説明図である。It is explanatory drawing about the classifier correction|amendment part 14 which concerns on one Embodiment. 一実施形態に係る分類器生成方法の例1の手順を示す説明図である。It is explanatory drawing which shows the procedure of the example 1 of the classifier generation method which concerns on one Embodiment. 一実施形態に係る分類器生成方法の例2の手順を示す説明図である。It is explanatory drawing which shows the procedure of the example 2 of the classifier generation method which concerns on one Embodiment. 一実施形態に係る分類器生成方法の例3の手順を示す説明図である。It is explanatory drawing which shows the procedure of the example 3 of the classifier generation method which concerns on one Embodiment. 一実施形態に係る変形例1の説明図である。It is explanatory drawing of the modification 1 which concerns on one Embodiment. 一実施形態に係る分類構造データD1の構成例を示す図である。It is a figure which shows the structural example of classification structure data D1 which concerns on one Embodiment. 一実施形態に係る分類器補正方法の例の手順を示すフローチャートである。It is a flow chart which shows the procedure of the example of the classifier amendment method concerning one embodiment. 一実施形態に係る分類構造データD1に対する補正例を示す図である。It is a figure showing an example of amendment to classification structure data D1 concerning one embodiment.

以下、図面を参照し、本発明の実施形態について説明する。
図1は、一実施形態に係る分類システム1の構成例を示すブロック図である。図1において、分類システム1は、分類器生成装置10と、コンテンツ分類装置20と、変換辞書31と、データベース32とを備える。分類器生成装置10は、分類器を生成する。コンテンツ分類装置20には、入力データとしてテキストデータ(入力テキストデータ)が入力される。コンテンツ分類装置20は、分類器生成装置10が生成した分類器を使用して、入力テキストデータを分類する。コンテンツ分類装置20は、入力テキストデータの分類の結果を示す分類結果データを出力する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration example of a classification system 1 according to an embodiment. 1, the classification system 1 includes a classifier generation device 10, a content classification device 20, a conversion dictionary 31, and a database 32. The classifier generation device 10 generates a classifier. Text data (input text data) is input to the content classification device 20 as input data. The content classification device 20 classifies the input text data using the classifier generated by the classifier generation device 10. The content classification device 20 outputs classification result data indicating a result of classification of input text data.

変換辞書31は電子辞書である。変換辞書31は単語の対のデータを有する。変換辞書31は、入力される単語(入力単語)についての対の単語(変換単語)を出力する。本実施形態では、変換辞書31の一例として反対語辞書を備える。反対語辞書としての変換辞書31は、入力単語の反対語を変換単語として出力する。 The conversion dictionary 31 is an electronic dictionary. The conversion dictionary 31 has word pair data. The conversion dictionary 31 outputs a pair of words (converted words) for an input word (input word). In this embodiment, an antonym dictionary is provided as an example of the conversion dictionary 31. The conversion dictionary 31 as an antonym dictionary outputs an antonym of the input word as a converted word.

データベース32は、分類構造データと教師データを格納する。分類構造データは、テキストデータ(文章データ)を分類する先である分類項目及び分類項目の階層を示すデータである。分類構造データは予め作成されてデータベース32に格納される。分類構造データの作成には、例えば、グラウンデッド・セオリー・アプローチ(Grounded Theory Approach)技術を利用することができる。 The database 32 stores classification structure data and teacher data. The classification structure data is data indicating a classification item and a hierarchy of classification items which are the destinations of classification of text data (sentence data). The classification structure data is created in advance and stored in the database 32. To create the classification structure data, for example, the Grounded Theory Approach technology can be used.

教師データは、分類構造データの分類項目及び分類項目の階層を識別するラベルが付与されたテキストデータである。教師データの元のテキストデータは、例えば、一般大衆に対して実施されたアンケートの回答として自由記述された文章(自由記述文)のテキストデータである。該テキストデータに対して分類構造データの該当する分類項目及び分類項目の階層を識別するラベルが付与されたデータが、教師データとして利用される。例えば、人間がテキストデータを分析して該テキストデータに付与すべきラベルを判断し、判断結果のラベルを該テキストデータに付与する。 The teacher data is text data to which a label for identifying the classification item of the classification structure data and the hierarchy of the classification item is added. The original text data of the teacher data is, for example, text data of a sentence (free description sentence) freely described as a response to a questionnaire conducted on the general public. The data to which the corresponding classification item of the classification structure data and the label for identifying the hierarchy of the classification item are added to the text data is used as teacher data. For example, a person analyzes the text data to determine the label to be attached to the text data, and attaches the label of the determination result to the text data.

分類器生成装置10は、分類器生成部11と、文変更部12と、代表文生成部13と、分類器補正部14とを備える。分類器生成部11は、分類器を生成する分類器生成機能を有する。分類器生成部11は、分類構造データと教師データとを使用して分類器を生成する。文変更部12は、文の意味を変更する文変更機能を有する。文変更部12は、単語を置換又は単語を追加もしくは削除して文の意味を変更する。代表文生成部13は、分類器の代表文を生成する代表文生成機能を有する。代表文生成部13は、分類器生成部11が生成した分類器を使用して分類対象テキストデータを分類し、該分類の結果に基づいて当該分類器の代表文を生成する。分類器補正部14は、分類器を補正する分類器補正機能を有する。分類器補正部14は、分類器生成部11が生成した分類器を使用して分類対象データを分類し、該分類の結果に基づいて当該分類器を補正するか否かを判断する。 The classifier generating device 10 includes a classifier generating unit 11, a sentence changing unit 12, a representative sentence generating unit 13, and a classifier correcting unit 14. The classifier generation unit 11 has a classifier generation function of generating a classifier. The classifier generation unit 11 generates a classifier using the classification structure data and the teacher data. The sentence changing unit 12 has a sentence changing function of changing the meaning of a sentence. The sentence changing unit 12 changes the meaning of a sentence by replacing words or adding or deleting words. The representative sentence generation unit 13 has a representative sentence generation function of generating a representative sentence of the classifier. The representative sentence generation unit 13 uses the classifier generated by the classifier generation unit 11 to classify the classification target text data, and generates a representative sentence of the classifier based on the result of the classification. The classifier correction unit 14 has a classifier correction function for correcting the classifier. The classifier correction unit 14 classifies the classification target data using the classifier generated by the classifier generation unit 11, and determines whether to correct the classifier based on the result of the classification.

分類器生成装置10は、専用のハードウェアにより実現されるものであってもよく、又は、パーソナルコンピュータ等の汎用のコンピュータ装置により構成され、分類器生成装置10の機能を実現するためのコンピュータプログラムを実行することによりその機能を実現させるものであってもよい。コンテンツ分類装置20は、専用のハードウェアにより実現されるものであってもよく、又は、パーソナルコンピュータ等の汎用のコンピュータ装置により構成され、コンテンツ分類装置20の機能を実現するためのコンピュータプログラムを実行することによりその機能を実現させるものであってもよい。 The classifier generation device 10 may be realized by dedicated hardware, or may be a general-purpose computer device such as a personal computer, and is a computer program for realizing the functions of the classifier generation device 10. The function may be realized by executing. The content classification device 20 may be realized by dedicated hardware, or may be configured by a general-purpose computer device such as a personal computer and executes a computer program for realizing the function of the content classification device 20. The function may be realized by doing so.

分類器生成装置10とコンテンツ分類装置20とは、それぞれ別個の装置として構成されてもよく、又は、一つの装置として構成されてもよい。例えば、分類器生成装置10とコンテンツ分類装置20とは、それぞれ別個のコンピュータ装置により各装置10,20の機能がコンピュータプログラムにより実現されてもよく、又は、1台のコンピュータ装置により両装置10,20の機能がコンピュータプログラムにより実現されてもよい。 The classifier generation device 10 and the content classification device 20 may be configured as separate devices, or may be configured as one device. For example, in the classifier generation device 10 and the content classification device 20, the functions of the respective devices 10 and 20 may be realized by computer programs by separate computer devices, or both devices 10 and 10 may be realized by one computer device. The 20 functions may be implemented by a computer program.

分類器生成装置10は、変換辞書31にアクセスする。変換辞書31は、分類器生成装置10の内部に設けられてもよく、又は、分類器生成装置10の外部に設けられて通信により分類器生成装置10からアクセスされてもよい。 The classifier generation device 10 accesses the conversion dictionary 31. The conversion dictionary 31 may be provided inside the classifier generation device 10, or may be provided outside the classifier generation device 10 and accessed from the classifier generation device 10 by communication.

分類器生成装置10は、データベース32にアクセスする。データベース32は、分類器生成装置10の内部に設けられてもよく、又は、分類器生成装置10の外部に設けられて通信により分類器生成装置10からアクセスされてもよい。 The classifier generation device 10 accesses the database 32. The database 32 may be provided inside the classifier generation device 10 or may be provided outside the classifier generation device 10 and accessed from the classifier generation device 10 by communication.

次に図2を参照して本実施形態に係る分類器生成方法の概要を説明する。一般にアンケート調査では、「質問a:○○の良い点をお知らせ下さい。」、「質問b:○○の悪い点をお知らせ下さい。」のように商品やサービスなどの良い点と悪い点とを2つの質問に分けて聞くことがある。これら2つの質問a,bに対する各回答を、機械学習を用いて分類する場合、質問aの分類器と質問bの分類器とをそれぞれに生成する必要がある。このため、質問aの分類器の生成に使用される分類構造データ及び教師データと、質問bの分類器の生成に使用される分類構造データ及び教師データと、を準備することになる。 Next, the outline of the classifier generation method according to this embodiment will be described with reference to FIG. Generally, in the questionnaire survey, there are 2 points of good and bad points such as "Question a: Please tell us the good points of XX." and "Question b: Please tell us the bad points of XX." I may ask you two questions. When the answers to these two questions a and b are classified using machine learning, it is necessary to generate a classifier for the question a and a classifier for the question b. Therefore, the classification structure data and the teacher data used to generate the classifier for the question a and the classification structure data and the teacher data used to generate the classifier for the question b are prepared.

図2は、本実施形態に係る分類器生成方法の概要の説明図である。図2の例では、通信サービスについてのアンケート調査において、サービスに対しての不満な点を聞く質問Aと、サービスに対しての満足な点を聞く質問Bと、を行う。そして、これら2つの質問A,Bに対する各回答を、機械学習を用いて分類するために、質問Aの分類器A3と質問Bの分類器B3とをそれぞれに生成する。この分類器生成のため、質問Aの分類器の生成に使用される分類構造データA1及び教師データA2と、質問Bの分類器の生成に使用される分類構造データB1及び教師データB2と、を準備する。これら分類構造データA1及び教師データA2、並びに、分類構造データB1及び教師データB2を人手で生成すると、処理時間の増大やコスト増等の負担が課題となる。 FIG. 2 is an explanatory diagram of the outline of the classifier generation method according to the present embodiment. In the example of FIG. 2, in a questionnaire survey on a communication service, a question A to ask unsatisfactory points about the service and a question B to ask unsatisfactory points about the service are performed. Then, in order to classify each answer to these two questions A and B using machine learning, a classifier A3 for question A and a classifier B3 for question B are generated respectively. For this classifier generation, the classification structure data A1 and the teacher data A2 used for generating the classifier of the question A, and the classification structure data B1 and the teacher data B2 used for generating the classifier of the question B are generated. prepare. When the classification structure data A1 and the teacher data A2, and the classification structure data B1 and the teacher data B2 are manually generated, a burden such as an increase in processing time and an increase in cost becomes a problem.

そのような課題に鑑み、本実施形態では、予め準備される一方の分類構造データ及び教師データから、もう一方の分類構造データ及び教師データを自動的に生成することによって、処理時間の増大やコスト増等の負担の軽減を図る。図2の例では、一方の分類構造データA1及び教師データA2については例えば人手で生成する等により予め準備する。しかし、もう一方の分類構造データB1及び教師データB2については、分類構造データA1及び教師データA2から自動的に生成する。これは、例えば、質問Aと質問Bのように同じ回答者に対して意味的に反対の質問をする場合、似通った分類構造データになることが考えられるからである。 In view of such a problem, in the present embodiment, the processing time is increased and the cost is increased by automatically generating the other classification structure data and the teacher data from the one classification structure data and the teacher data prepared in advance. Reduce the burden of increase. In the example of FIG. 2, one of the classification structure data A1 and the teacher data A2 is prepared in advance by, for example, manually generating it. However, the other classification structure data B1 and teacher data B2 are automatically generated from the classification structure data A1 and teacher data A2. This is because, for example, when asking questions of the same respondent such as question A and question B, which are semantically opposite, similar classification structure data can be considered.

図2において、分類構造データA1は、第1階層の分類項目として3つの分類項目「通信品質不満」、「端末不満」及び「アフター不満」を有する。また、分類構造データA1は、第1階層の分類項目「端末不満」の下層である第2階層の分類項目として3つの分類項目「電池持ちが悪い」、「画面が小さい」及び「記憶容量が小さい」を有する。各分類項目の文は代表文である。代表文は、人が分類項目を理解するために設けられる文である。分類構造データA1は、各分類項目の代表文を有する。分類構造データA1は、各階層の対応する分類項目を関連付けるリンク情報を有する。例えば、分類構造データA1は、第1階層の分類項目「端末不満」と第2階層の分類項目「電池持ちが悪い」、「画面が小さい」及び「記憶容量が小さい」をそれぞれに関連付けるリンク情報を有する。 In FIG. 2, the classification structure data A1 has three classification items “communication quality dissatisfaction”, “terminal dissatisfaction”, and “after-satisfaction” as classification items of the first layer. In addition, the classification structure data A1 includes three classification items “a battery is poor”, “a screen is small”, and “a storage capacity is low as a classification item of a second layer which is a lower layer of the classification item “terminal dissatisfaction” of the first layer. Have a "small". The sentence of each classification item is a representative sentence. The representative sentence is a sentence provided for a person to understand the classification item. The classification structure data A1 has a representative sentence of each classification item. The classification structure data A1 has link information for associating corresponding classification items in each hierarchy. For example, the classification structure data A1 is link information associating the classification items of the first hierarchy "terminal dissatisfaction" and the classification items of the second hierarchy "bad battery life", "small screen" and "small storage capacity" with each other. Have.

本実施形態では、予め準備された分類構造データA1の各代表文について文の意味を変更するように文を変更することにより、分類構造データA1を分類構造データB1に変換する。図2の例では、代表文の単語を反対語に置換して文の意味を変更している。例えば、分類構造データA1の代表文中の単語「不満」を反対語「満足」に変更することにより、分類構造データB1の代表文にしている。また、分類構造データA1の代表文中の単語「悪い」を反対語「良い」に変更することにより、分類構造データB1の代表文にしている。このように、本実施形態では、分類構造データA1の各代表文を意味的に変更することにより、分類構造データA1を分類構造データB1に変換する。 In the present embodiment, the classification structure data A1 is converted into the classification structure data B1 by changing the sentence so that the meaning of each representative sentence of the classification structure data A1 prepared in advance is changed. In the example of FIG. 2, the word of the representative sentence is replaced with the opposite word to change the meaning of the sentence. For example, the word "dissatisfaction" in the representative sentence of the classification structure data A1 is changed to the opposite word "satisfaction" to make the representative sentence of the classification structure data B1. Further, the word "bad" in the representative sentence of the classification structure data A1 is changed to the opposite word "good" to make it the representative sentence of the classification structure data B1. As described above, in the present embodiment, the classification structure data A1 is converted into the classification structure data B1 by semantically changing each representative sentence of the classification structure data A1.

なお、分類構造データA1の分類項目及び分類項目の階層と、分類構造データB1の分類項目及び分類項目の階層とは、それぞれ対応している。分類構造データA1の第n階層の第m番目の分類項目の代表文を意味的に変更した文は、分類構造データB1の同じ第n階層の第m番目の分類項目の代表文になる。 The classification item of the classification structure data A1 and the hierarchy of the classification item correspond to the classification item of the classification structure data B1 and the hierarchy of the classification item, respectively. The sentence in which the representative sentence of the m-th classification item in the n-th hierarchy of the classification structure data A1 is semantically changed becomes the representative sentence of the m-th classification item in the same n-th hierarchy of the classification structure data B1.

図2において、教師データA2は、自由記述文と、分類構造データA1による該自由記述文の分類結果との組を有する。例えば、教師データA2は、自由記述文「電池が長持しない」と分類結果「電池持ちが悪い」との組を有する。これは、自由記述文「電池が長持しない」が分類構造データA1の分類項目「電池持ちが悪い」に分類されたことを示す。教師データA2は、予め準備される。例えば、教師データA2の各自由記述文が分類構造データA1のどの分類項目に当てはまるのかを人手で判断し、該判断結果の分類項目及び分類項目の階層を識別するラベルを教師データA2の当該自由記述文に付与する。 In FIG. 2, the teacher data A2 has a set of a free description sentence and a classification result of the free description sentence by the classification structure data A1. For example, the teacher data A2 has a set of free description sentences "the battery does not last long" and the classification result "the battery is poor". This indicates that the free description “Battery does not last long” is classified into the classification item “Battery lasts poor” in the classification structure data A1. The teacher data A2 is prepared in advance. For example, it is manually determined to which classification item of the classification structure data A1 each free descriptive sentence of the teaching data A2 applies, and the classification item of the judgment result and the label for identifying the hierarchy of the classification item are assigned to the corresponding freedom item of the teaching data A2. Add to the description.

本実施形態では、予め準備された教師データA2の各自由記述文について文の意味を変更するように文を変更することにより、教師データA2を教師データB2に変換する。図2の例では、自由記述文の単語を反対語に置換して文の意味を変更している。例えば、教師データA2の自由記述文「電池が長持しない」中の単語「しない」を反対語「する」に変更することにより、教師データB2の自由記述文「電池が長持する」にしている。このように、本実施形態では、教師データA2の各自由記述文を意味的に変更することにより、教師データA2を教師データB2に変換する。図2の例では、教師データA2の自由記述文の意味的な変更は、分類構造データA1の代表文の意味的な変更と同じの反対語に置換になっている。 In the present embodiment, the teacher data A2 is converted into the teacher data B2 by changing the sentence so that the meaning of each free description sentence of the teacher data A2 prepared in advance is changed. In the example of FIG. 2, the meaning of the sentence is changed by replacing the word in the free description sentence with the opposite word. For example, the free description sentence "battery lasts" of the teacher data B2 is changed by changing the word "not" in the free description sentence "battery does not last long" of the teacher data A2 to the opposite word "yes". As described above, in this embodiment, the teacher data A2 is converted into the teacher data B2 by semantically changing each free description sentence of the teacher data A2. In the example of FIG. 2, the semantic change of the free description sentence of the teacher data A2 is replaced with the same opposite word as the semantic change of the representative sentence of the classification structure data A1.

なお、教師データA2の自由記述文に付与されるラベルと、教師データB2の自由記述文に付与されるラベルとは、それぞれ対応している。教師データA2の第n番目の自由記述文を意味的に変更した文は、教師データB2において、該教師データA2の第n番目の自由記述文と同じラベルが付与された自由記述文になる。 The label given to the free description sentence of the teacher data A2 and the label given to the free description sentence of the teacher data B2 correspond to each other. The sentence in which the nth free description sentence of the teacher data A2 is semantically changed becomes a free description sentence to which the same label as the nth free description sentence of the teacher data A2 is given in the teacher data B2.

図2において、サービスに対しての不満な点を聞く質問Aの分類器A3(説明の便宜上、不満分類器A3と称する場合がある)は、分類構造データA1及び教師データA2を使用して生成される。サービスに対しての満足な点を聞く質問Bの分類器B3(説明の便宜上、満足分類器B3と称する場合がある)は、分類構造データB1及び教師データB2を使用して生成される。 In FIG. 2, a classifier A3 of the question A that asks a dissatisfaction point for a service (may be referred to as a dissatisfaction classifier A3 for convenience of description) is generated using the classification structure data A1 and the teacher data A2. To be done. The classifier B3 of the question B that asks satisfaction of the service (may be referred to as a satisfaction classifier B3 for convenience of description) is generated using the classification structure data B1 and the teacher data B2.

図3は、本実施形態に係る分類器の説明図である。図3の例では、満足分類器B3の説明図である。分類器は、ラベルが付与されていないテキストデータ(ラベル無しテキストデータ)に対してラベルを付与するためのラベル付与規則の集合体ということができる。分類器は、入力されたラベル無しテキストデータに対して自己のラベル付与規則に従ってラベルを付与し、該ラベル無しテキストデータに該ラベルが付与されたテキストデータ(ラベル有りテキストデータ)を出力する。 FIG. 3 is an explanatory diagram of the classifier according to this embodiment. In the example of FIG. 3, it is an explanatory diagram of the satisfaction classifier B3. It can be said that the classifier is a set of label assigning rules for assigning a label to text data to which no label is attached (text data without label). The classifier attaches a label to the input unlabeled text data according to its own labeling rule, and outputs the text data with the label attached to the unlabeled text data (labeled text data).

図3において、満足分類器B3には、ラベル無しテキストデータ「店員の笑顔が良かったです」が入力される。満足分類器B3は、ラベル無しテキストデータ「店員の笑顔が良かったです」に対して自己のラベル付与規則に従って、代表文「店頭スタッフの接客態度が良い」に対応するラベルを付与する。満足分類器B3は、該ラベルを付与したテキストデータ「店員の笑顔が良かったです」を、分類結果データとして出力する。この分類結果データは、テキストデータ「店員の笑顔が良かったです」が代表文「店頭スタッフの接客態度が良い」の分類項目に分類されたことを示す。 In FIG. 3, unsatisfied classifier B3 is input with unlabeled text data "The smile of the clerk was nice". The satisfaction classifier B3 attaches a label corresponding to the representative sentence "the store staff has a good customer service attitude" to the unlabeled text data "The smile of the store clerk was good" according to the self-labeling rule. The satisfaction classifier B3 outputs the text data “the smile of the clerk was good” with the label as the classification result data. This classification result data indicates that the text data "The smile of the store clerk was good" was classified into the category item of the representative sentence "The store staff has a good customer service".

次に図1に示す分類器生成装置10について説明する。 Next, the classifier generation device 10 shown in FIG. 1 will be described.

[文変更部]
文変更部12は、単語を置換又は単語を追加もしくは削除して文の意味を変更する。文変更部12は、入力文に対して形態素解析および係り受け解析を行う。形態素解析には、例えば「Mecab」と呼ばれるソフトウェアを使用してもよい。係り受け解析には、例えば「CaboCha」と呼ばれるソフトウェアを使用してもよい。
[Sentence change part]
The sentence changing unit 12 changes the meaning of a sentence by replacing words or adding or deleting words. The sentence changing unit 12 performs morphological analysis and dependency analysis on the input sentence. For the morphological analysis, for example, software called "Mecab" may be used. For the dependency analysis, for example, software called "CaboCha" may be used.

(文変更方法の例1)
文変更方法の例1を説明する。文変更方法の例1は、形態素解析および係り受け解析の結果、入力文中に述語項構造が発見された場合である。文変更部12は、形態素解析および係り受け解析の結果、入力文中に述語項構造がある場合には、該述部の単語の変更を行う。この述部の単語の変更において、文変更部12は、述部の単語を変換辞書31に渡す。変換辞書31は、該述部の単語(入力単語)についての対の単語(変換単語)を文変更部12に返答する。本実施形態では、変換辞書31は反対語辞書である。よって、文変更部12は、入力文中の述部の単語の反対語を、変換辞書31から受け取る。文変更部12は、変換辞書31から受け取った反対語により、入力文中の述部の単語を置換する。文変更部12は、入力文の述部の単語が反対語に置換された文(変更文)を出力する。文変更方法の例1の一例として、文変更部12は、入力文「速度が遅い」に対して、述部の単語「遅い」を反対語「速い」に置換し、変更文「速度が速い」を出力する。
(Example 1 of sentence change method)
An example 1 of the sentence changing method will be described. Example 1 of the sentence modification method is a case where a predicate term structure is found in an input sentence as a result of morphological analysis and dependency analysis. As a result of the morphological analysis and the dependency analysis, the sentence modification unit 12 modifies the word of the predicate when the input sentence has a predicate term structure. In changing the word of the predicate, the sentence changing unit 12 passes the word of the predicate to the conversion dictionary 31. The conversion dictionary 31 returns a pair of words (converted word) for the word of the predicate (input word) to the sentence changing unit 12. In this embodiment, the conversion dictionary 31 is an antonym dictionary. Therefore, the sentence changing unit 12 receives from the conversion dictionary 31 an antonym of the word of the predicate in the input sentence. The sentence changing unit 12 replaces the word of the predicate in the input sentence with the opposite word received from the conversion dictionary 31. The sentence changing unit 12 outputs a sentence (change sentence) in which the word in the predicate of the input sentence is replaced with the opposite word. As an example of Example 1 of the sentence changing method, the sentence changing unit 12 replaces the word “slow” in the predicate with the opposite word “fast” for the input sentence “slow”, and changes the sentence “fast”. Is output.

(文変更方法の例2)
文変更方法の例2を説明する。文変更方法の例2は、上記した文変更方法の例1において、変換辞書31に、入力単語と対の単語(変換単語)が存在しない場合である。文変更部12は、形態素解析および係り受け解析の結果、入力文中に述語項構造がある場合には、該述部の単語の変更を行う。この述部の単語の変更において、文変更部12は、述部の単語を変換辞書(反対語辞書)31に渡す。変換辞書31は、該述部の単語(入力単語)と対の単語(変換単語)が存在しないこと(変換単語無し)を、文変更部12に返答する。文変更部12は、該変換辞書31からの変換単語無しとの返答に応じて、入力文中の述部の単語に否定語を追加する、又は、入力文中の述部の単語から否定語を削除する。文変更部12は、入力文中の述部の単語に否定語が付いていない場合には該否定語を追加し、一方、入力文中の述部の単語に否定語が付いている場合には該否定語を削除する。文変更部12は、入力文の述部の単語に否定語を追加するか、又は、入力文の述部の単語から否定語を削除するかした文(変更文)を出力する。文変更方法の例2の一例として、文変更部12は、入力文「電話が繋がらない」に対して、述部の単語「電話が繋がらない」に付いている否定語「ない」を削除し、肯定文に整えた変更文「電話が繋がる」を出力する。
(Example 2 of sentence change method)
An example 2 of the sentence changing method will be described. Example 2 of the sentence changing method is a case where the conversion dictionary 31 does not have a word (converted word) paired with the input word in the example 1 of the sentence changing method described above. As a result of the morphological analysis and the dependency analysis, the sentence modification unit 12 modifies the word of the predicate when the input sentence has a predicate term structure. In changing the word of the predicate, the sentence changing unit 12 passes the word of the predicate to the conversion dictionary (antonym dictionary) 31. The conversion dictionary 31 replies to the sentence changing unit 12 that there is no word (conversion word) paired with the word of the predicate (input word) (no conversion word). The sentence changing unit 12 adds a negative word to the word of the predicate in the input sentence or deletes the negative word from the word of the predicate in the input sentence in response to a response from the conversion dictionary 31 that there is no converted word. To do. The sentence changing unit 12 adds the negative word to the word of the predicate in the input sentence, while adding the negative word to the word of the predicate in the input sentence. Delete negative words. The sentence changing unit 12 outputs a sentence (change sentence) in which a negative word is added to the word of the predicate of the input sentence or the negative word is deleted from the word of the predicate of the input sentence. As an example of Example 2 of the sentence changing method, the sentence changing unit 12 deletes the negative word “no” attached to the word “phone is not connected” in the predicate from the input sentence “phone is not connected”. , The change sentence "A phone is connected" prepared as an affirmative sentence is output.

(文変更方法の例3)
文変更方法の例3を説明する。文変更方法の例3は、形態素解析および係り受け解析の結果、入力文中に述語項構造が発見されなかった場合(体言止めである場合)である。文変更部12は、形態素解析および係り受け解析の結果、入力文中に述語項構造が発見されなかった場合には、入力文中の体言止めの単語(最終文節の名詞)の変更を行う。この体言止めの単語の変更において、文変更部12は、体言止めの単語を変換辞書(反対語辞書)31に渡す。変換辞書31は、該述部の単語(入力単語)と対の単語(変換単語)である反対語を文変更部12に返答する。文変更部12は、変換辞書31から受け取った反対語により、入力文中の体言止めの単語を置換する。文変更部12は、入力文の体言止めの単語が反対語に置換された文(変更文)を出力する。文変更方法の例3の一例として、文変更部12は、入力文「通信品質不満」に対して、体言止めの単語「不満」を反対語「満足」に置換し、変更文「通信品質満足」を出力する。文変更方法の例3の他の一例として、文変更部12は、入力文「価格の上昇」に対して、体言止めの単語「上昇」を反対語「低下」に置換し、変更文「価格の低下」を出力する。
(Example 3 of sentence change method)
Example 3 of the sentence changing method will be described. Example 3 of the sentence modification method is a case where the predicate-argument structure is not found in the input sentence as a result of the morpheme analysis and the dependency analysis (when it is a word stop). As a result of the morpheme analysis and the dependency analysis, the sentence changing unit 12 changes the word of the word stop (noun of the final phrase) in the input sentence when the predicate term structure is not found in the input sentence. In changing the word of the word stop, the sentence changing unit 12 passes the word of the word stop to the conversion dictionary (opposite word dictionary) 31. The conversion dictionary 31 returns the opposite word, which is a word (converted word) paired with the word (input word) of the predicate, to the sentence changing unit 12. The sentence changing unit 12 replaces the word of word stop in the input sentence with the opposite word received from the conversion dictionary 31. The sentence changing unit 12 outputs a sentence (change sentence) in which the word of word stop of the input sentence is replaced with the opposite word. As an example of Example 3 of the sentence changing method, the sentence changing unit 12 replaces the input sentence “Communication quality dissatisfaction” with the word “Dissatisfaction”, which is a word stop, by the opposite word “Satisfaction”, and changes sentence “Communication quality satisfaction”. Is output. As another example of Example 3 of the sentence changing method, the sentence changing unit 12 replaces the word “increase” of the wording stop with the opposite word “decrease” for the input sentence “increase in price”, and changes the sentence “price”. Is output.

[分類器生成部]
分類器生成部11は、分類構造データと教師データとを使用して分類器を生成する。分類器として、例えば、SVM(Support Vector Machine)又は「Bayesian Network」などの分類器が挙げられる。図4を参照して分類器生成部11について説明する。データベース32には、予め、質問Aの分類器の生成に使用される分類構造データA1及び教師データA2が格納されている。分類器生成部11は、分類構造データA1及び教師データA2をデータベース32から取得する。
[Classifier generator]
The classifier generation unit 11 generates a classifier using the classification structure data and the teacher data. Examples of the classifier include a classifier such as SVM (Support Vector Machine) or "Bayesian Network". The classifier generation unit 11 will be described with reference to FIG. In the database 32, the classification structure data A1 and the teacher data A2 used for generating the classifier for the question A are stored in advance. The classifier generation unit 11 acquires the classification structure data A1 and the teacher data A2 from the database 32.

分類器生成部11は、分類構造データA1及び教師データA2を使用して、質問Aの分類器(不満分類器)A3を生成する。 The classifier generation unit 11 uses the classification structure data A1 and the teacher data A2 to generate a classifier (dissatisfied classifier) A3 of the question A.

質問Bの分類器(満足分類器)B3の生成方法を説明する。分類器生成部11は、分類構造データA1に含まれる各代表文を文変更部12により変更して、分類構造データB1を生成する。図4(1)において、分類器生成部11は、分類構造データA1に含まれる各代表文を文変更部12に渡し、文変更部12から各代表文に対する変更文を受け取る。分類器生成部11は、分類構造データA1の各代表文を、文変更部12から受け取った各変更文に置換する。この置換後の分類構造データを分類構造データB1として使用する。分類構造データB1のリンク情報は、分類構造データA1のリンク情報をそのまま使用する。 A method of generating the classifier (satisfaction classifier) B3 of the question B will be described. The classifier generation unit 11 changes each representative sentence included in the classification structure data A1 by the sentence changing unit 12 to generate the classification structure data B1. In FIG. 4A, the classifier generation unit 11 passes each representative sentence included in the classification structure data A1 to the sentence changing unit 12, and receives the changed sentence for each representative sentence from the sentence changing unit 12. The classifier generation unit 11 replaces each representative sentence of the classification structure data A1 with each modified sentence received from the sentence modification unit 12. The classification structure data after this replacement is used as the classification structure data B1. As the link information of the classification structure data B1, the link information of the classification structure data A1 is used as it is.

分類器生成部11は、教師データA2に含まれる各自由記述文を文変更部12により変更して、教師データB2を生成する。図4(2)において、分類器生成部11は、教師データA2に含まれる各自由記述文を文変更部12に渡し、文変更部12から各自由記述文に対する変更文を受け取る。分類器生成部11は、文変更部12から受け取った各変更文に対して、教師データA2の元の各自由記述文と同じラベルを付与する。このラベル付与後の変更文群を教師データB2として使用する。 The classifier generation unit 11 changes each free description sentence included in the teacher data A2 by the sentence change unit 12 to generate teacher data B2. In FIG. 4(2), the classifier generation unit 11 passes each free description sentence included in the teacher data A2 to the sentence modification unit 12, and receives the modified sentence for each free description sentence from the sentence modification unit 12. The classifier generation unit 11 gives each modified sentence received from the sentence modification unit 12 the same label as each original free description sentence of the teacher data A2. The modified sentence group after the label is assigned is used as the teacher data B2.

分類器生成部11は、分類構造データB1及び教師データB2を使用して、質問Bの分類器(満足分類器)B3を生成する。 The classifier generation unit 11 uses the classification structure data B1 and the teacher data B2 to generate a classifier (satisfaction classifier) B3 for the question B.

本実施形態において、分類構造データA1は第1分類構造データに対応し、教師データA2は第1教師データに対応する。また、分類構造データB1は第2分類構造データに対応し、教師データB2は第2教師データに対応する。 In the present embodiment, the classification structure data A1 corresponds to the first classification structure data, and the teacher data A2 corresponds to the first teacher data. The classification structure data B1 corresponds to the second classification structure data, and the teacher data B2 corresponds to the second teacher data.

[代表文生成部]
代表文生成部13は、分類器生成部11が生成した分類器を使用して分類対象テキストデータを分類し、該分類の結果に基づいて当該分類器の代表文を生成する。図5を参照して代表文生成部13について説明する。データベース32には、予め、満足分類対象データB4が格納されている。満足分類対象データB4は、サービスに対しての満足な点を聞く質問Bに対する回答のテキストデータである。満足分類対象データB4には、ラベルが付与されていない。代表文生成部13は、満足分類対象データB4をデータベース32から取得する。代表文生成部13は、分類器生成部11が生成した満足分類器B3を使用して、満足分類対象データB4を分類する。満足分類器B3は、入力された満足分類対象データB4にラベルを付与した満足分類結果データB5を出力する。代表文生成部13は、満足分類器B3を使用して、複数の満足分類対象データB4(満足分類対象データ群)から、複数の満足分類結果データB5(満足分類結果データ群)を取得する。
[Representative sentence generator]
The representative sentence generation unit 13 uses the classifier generated by the classifier generation unit 11 to classify the classification target text data, and generates a representative sentence of the classifier based on the result of the classification. The representative sentence generator 13 will be described with reference to FIG. The database 32 stores the satisfaction classification target data B4 in advance. The satisfaction classification target data B4 is text data of an answer to the question B that asks about satisfaction with the service. No label is given to the satisfaction classification target data B4. The representative sentence generation unit 13 acquires the satisfaction classification target data B4 from the database 32. The representative sentence generation unit 13 uses the satisfaction classifier B3 generated by the classifier generation unit 11 to classify the satisfaction classification target data B4. The satisfaction classifier B3 outputs satisfaction classification result data B5 in which a label is added to the input satisfaction classification target data B4. Using the satisfaction classifier B3, the representative sentence generation unit 13 acquires a plurality of satisfaction classification result data B5 (satisfaction classification result data group) from a plurality of satisfaction classification target data B4 (satisfaction classification target data group).

代表文生成部13は、満足分類結果データ群に基づいて、満足分類器B3の代表文を生成する。この代表文の生成では、代表文生成部13は、満足分類結果データ群の中に顕著に現れる語句(重要語句)を抽出する。この重要語句の抽出には、例えばAIC(Akaike's Information Criterion)と呼ばれる情報量規準を使用してもよい。代表文生成部13は、満足分類結果データ群内で重要語句との共起頻度が高い語句を抽出する。代表文生成部13は、満足分類結果データ群において、一の分類項目に分類された文のうち、重要語句と、該重要語句との共起頻度が高い語句との両方を含む文を選択する。該選択された文が複数存在する場合には、代表文生成部13は、さらに、該選択された文のうち、最も短い文を選択する。代表文生成部13は、選択結果の文を、当該分類項目の代表文に決定する。 The representative sentence generation unit 13 generates a representative sentence of the satisfaction classifier B3 based on the satisfaction classification result data group. In the generation of this representative sentence, the representative sentence generation unit 13 extracts a phrase (important phrase) that appears prominently in the satisfaction classification result data group. An information criterion called AIC (Akaike's Information Criterion), for example, may be used to extract the important terms. The representative sentence generation unit 13 extracts a phrase having a high co-occurrence frequency with the important phrase in the satisfaction classification result data group. In the satisfaction classification result data group, the representative sentence generation unit 13 selects, from among the sentences classified into one classification item, a sentence including both an important phrase and a phrase having a high co-occurrence frequency with the important phrase. .. When there are a plurality of selected sentences, the representative sentence generation unit 13 further selects the shortest sentence from the selected sentences. The representative sentence generation unit 13 determines the sentence resulting from the selection as the representative sentence of the classification item.

代表文生成部13は、決定した分類項目の代表文を分類器生成部11に渡す。分類器生成部11は、代表文生成部13から受け取った分類項目の代表文に、満足分類器B3の当該分類項目の代表文を置換する。これにより、満足分類器B3の代表文は、代表文生成部13が生成した代表文に置換される。 The representative sentence generation unit 13 passes the representative sentence of the determined classification item to the classifier generation unit 11. The classifier generation unit 11 replaces the representative sentence of the classification item received from the representative sentence generation unit 13 with the representative sentence of the classification item of the satisfaction classifier B3. As a result, the representative sentence of the satisfaction classifier B3 is replaced with the representative sentence generated by the representative sentence generation unit 13.

本実施形態によれば、満足分類器B3の分類項目の代表文を、満足分類対象データB4に含まれる文から生成することができる。満足分類対象データB4に含まれる文は、質問Bに回答する人の文であるので、文の表現が自然であると考えられる。このため、満足分類器B3の分類項目の代表文を、満足分類対象データB4に含まれる文から生成することによって、満足分類器B3の分類結果データに対応する代表文を、人にとって理解しやすい自然な文にすることができる。これは、本実施形態において、満足分類器B3の生成に使用される分類構造データB1の代表文を、不満分類器A3の生成に使用される分類構造データA1の代表文から文変更部12により変更して生成したこと、に起因する代表文の表現の不自然さを解決するという格別な効果を奏する。 According to this embodiment, the representative sentence of the classification item of the satisfaction classifier B3 can be generated from the sentence included in the satisfaction classification target data B4. Since the sentence included in the satisfaction classification target data B4 is the sentence of the person who answers the question B, it is considered that the expression of the sentence is natural. Therefore, by generating the representative sentences of the classification items of the satisfaction classifier B3 from the sentences included in the satisfaction classification target data B4, the representative sentence corresponding to the classification result data of the satisfaction classifier B3 is easy for a person to understand. Can be a natural sentence. This is because, in the present embodiment, the representative sentence of the classification structure data B1 used for generating the satisfaction classifier B3 is changed from the representative sentence of the classification structure data A1 used for generating the dissatisfaction classifier A3 by the sentence changing unit 12. The special effect of solving the unnaturalness of the representation of the representative sentence due to the change and generation.

[分類器補正部]
分類器補正部14は、分類器生成部11が生成した分類器を使用して分類対象データを分類し、該分類の結果に基づいて当該分類器を補正するか否かを判断する。図6を参照して分類器補正部14について説明する。サービスに対しての不満な点を聞く質問Aと、サービスに対しての満足な点を聞く質問Bとでその回答の出現傾向が異なる場合、質問Aに係る分類構造データA1の分類構造は、そのままでは質問Bに係る分類構造に合わない可能性がある。
[Classifier corrector]
The classifier correction unit 14 classifies the classification target data using the classifier generated by the classifier generation unit 11, and determines whether to correct the classifier based on the result of the classification. The classifier correction unit 14 will be described with reference to FIG. If the appearance tendency of the answer differs between question A that asks unsatisfied points for the service and question B that asks unsatisfied points about the service, the classification structure of the classification structure data A1 related to question A is As it is, there is a possibility that the classification structure of question B may not be met.

図6の例では、質問Aに係る分類構造データA1の第1階層の分類項目「アフター不満」の下層である第2階層の分類項目「店頭対応」については、回答の量や種類が多い。一方、質問Bに係る分類構造データB1の同じ第1階層の分類項目「アフター不満」の下層である第2階層の分類項目「店頭対応」については、回答の量や種類が少ない。このため、該分類構造データB1をそのまま使用すると、該分類項目「店頭対応」の回答の量や種類が少ないにもかかわらず、該分類項目「店頭対応」の微細に分かれた下位の階層の分類構造を利用することにより、分類精度が低下する可能性がある。このような課題の解決のために、本実施形態では、分類器補正部14によって、分類器生成部11が生成した分類器の補正を行う。 In the example of FIG. 6, the amount and type of answers are large for the second-level classification item “store correspondence”, which is a lower layer of the first-level classification item “after-satisfaction” of the classification structure data A1 related to question A. On the other hand, with respect to the classification item "corresponding to over-the-counter" of the second layer, which is a lower layer of the classification item "after-sales dissatisfaction" of the same first layer of the classification structure data B1 related to the question B, the amount and type of answers are small. Therefore, if the classification structure data B1 is used as it is, although the amount and type of the reply of the classification item “corresponding to store” are small, the classification of the subordinate subdivision of the classification item “corresponding to store” is small. By using the structure, the classification accuracy may decrease. In order to solve such a problem, in the present embodiment, the classifier correction unit 14 corrects the classifier generated by the classifier generation unit 11.

分類器補正部14は、分類器生成部11が生成した満足分類器B3を使用して、複数の満足分類対象データB4(満足分類対象データ群)から、複数の満足分類結果データB5(満足分類結果データ群)を取得する。分類器補正部14は、満足分類結果データ群において各分類項目(ラベル)の出現頻度を算出する。分類器補正部14は、各分類項目の出現頻度の間の差が所定値以上である場合には当該満足分類器B3の補正を行うと判断し、各分類項目の出現頻度の間の差が所定値未満である場合には当該満足分類器B3の補正を行わないと判断する。分類器補正部14は、満足分類器B3の補正を行うと判断した場合には、満足分類器B3を所定の分類器補正方法により補正する。 The classifier corrector 14 uses the satisfaction classifier B3 generated by the classifier generator 11 to calculate a plurality of satisfaction classification result data B5 (satisfaction classification) from a plurality of satisfaction classification target data B4 (satisfaction classification target data group). (Result data group) is acquired. The classifier correction unit 14 calculates the appearance frequency of each classification item (label) in the satisfaction classification result data group. When the difference between the appearance frequencies of the respective classification items is equal to or more than a predetermined value, the classifier correction unit 14 determines to correct the satisfaction classifier B3, and the difference between the appearance frequencies of the respective classification items is If it is less than the predetermined value, it is determined that the satisfaction classifier B3 is not corrected. When determining that the satisfaction classifier B3 is to be corrected, the classifier correction unit 14 corrects the satisfaction classifier B3 by a predetermined classifier correction method.

次に本実施形態に係る分類器生成方法の例を説明する。 Next, an example of the classifier generation method according to this embodiment will be described.

[分類器生成方法の例1]
図7を参照して本実施形態に係る分類器生成方法の例1を説明する。図7は、本実施形態に係る分類器生成方法の例1の手順を示す説明図である。
[Example 1 of classifier generation method]
An example 1 of the classifier generation method according to this embodiment will be described with reference to FIG. 7. FIG. 7 is an explanatory diagram showing the procedure of Example 1 of the classifier generation method according to the present embodiment.

(ステップS11)分類器生成部11は、不満分類構造データA1に含まれる各代表文を文変更部12により変更して、満足分類構造データB1を生成する。サービスに対しての不満な点を聞く質問Aに係る分類構造データのことを、不満分類構造データA1と称する。サービスに対しての満足な点を聞く質問Bに係る分類構造データのことを、満足分類構造データB1と称する。 (Step S11) The classifier generation unit 11 changes each representative sentence included in the dissatisfied classification structure data A1 by the sentence modification unit 12 to generate satisfaction classification structure data B1. The classification structure data related to the question A that asks unsatisfied points about the service is referred to as dissatisfaction classification structure data A1. The classification structure data related to the question B for asking satisfaction about the service is referred to as satisfaction classification structure data B1.

分類器生成部11は、不満教師データA2に含まれる各自由記述文を文変更部12により変更して、満足教師データB2を生成する。サービスに対しての不満な点を聞く質問Aに係る教師データのことを、不満教師データA2と称する。サービスに対しての満足な点を聞く質問Bに係る教師データのことを、満足教師データB2と称する。不満教師データA2及び満足教師データB2には、各自由記述文にラベルが付与されている。 The classifier generation unit 11 changes each free description sentence included in the dissatisfied teacher data A2 by the sentence changing unit 12 to generate the satisfied teacher data B2. The teacher data related to the question A that asks unsatisfied points about the service is referred to as dissatisfied teacher data A2. The teacher data relating to the question B for asking satisfaction about the service is referred to as satisfaction teacher data B2. A label is attached to each free description sentence in the dissatisfied teacher data A2 and the satisfied teacher data B2.

(ステップS12)分類器生成部11は、満足分類構造データB1及び満足教師データB2を使用して、質問Bの満足分類器B3を生成する。 (Step S12) The classifier generation unit 11 uses the satisfaction classification structure data B1 and the satisfaction teacher data B2 to generate a satisfaction classifier B3 for the question B.

[分類器生成方法の例2]
図8を参照して本実施形態に係る分類器生成方法の例2を説明する。図8は、本実施形態に係る分類器生成方法の例2の手順を示す説明図である。図8において図7の各ステップに対応する部分には同一の符号を付け、その説明を省略する。ステップS11及びステップS12が実行されて、満足分類器B3が生成される。次いでステップS21が実行される。
[Example 2 of classifier generation method]
Example 2 of the classifier generation method according to this embodiment will be described with reference to FIG. 8. FIG. 8 is an explanatory diagram showing the procedure of Example 2 of the classifier generation method according to this embodiment. 8, parts corresponding to the respective steps in FIG. 7 are designated by the same reference numerals, and the description thereof will be omitted. Steps S11 and S12 are executed to generate the satisfaction classifier B3. Then, step S21 is executed.

(ステップS21)代表文生成部13は、満足分類器B3を使用して、複数の満足分類対象データB4(満足分類対象データ群)から、複数の満足分類結果データB5(満足分類結果データ群)を取得する。 (Step S21) The representative sentence generation unit 13 uses the satisfaction classifier B3 to extract a plurality of satisfaction classification result data B5 (satisfaction classification result data group) from the plurality of satisfaction classification target data B4 (satisfaction classification target data group). To get

(ステップS22)代表文生成部13は、満足分類結果データ群に基づいて、満足分類器B3の代表文を生成する。分類器生成部11は、満足分類器B3の代表文を、代表文生成部13が生成した代表文に置換することにより、代表文が変更された満足分類器B3aを生成する。 (Step S22) The representative sentence generation unit 13 generates a representative sentence of the satisfaction classifier B3 based on the satisfaction classification result data group. The classifier generation unit 11 replaces the representative sentence of the satisfaction classifier B3 with the representative sentence generated by the representative sentence generation unit 13 to generate the satisfaction classifier B3a with the changed representative sentence.

[分類器生成方法の例3]
図9を参照して本実施形態に係る分類器生成方法の例3を説明する。図9は、本実施形態に係る分類器生成方法の例3の手順を示す説明図である。図9において図7及び図8の各ステップに対応する部分には同一の符号を付け、その説明を省略する。ステップS11、ステップS12が実行されて、満足分類器B3が生成される。次いでステップS31が実行される。
[Example 3 of classifier generation method]
Example 3 of the classifier generation method according to this embodiment will be described with reference to FIG. 9. FIG. 9 is an explanatory diagram showing the procedure of Example 3 of the classifier generation method according to the present embodiment. In FIG. 9, parts corresponding to the steps in FIGS. 7 and 8 are given the same reference numerals, and description thereof will be omitted. Steps S11 and S12 are executed to generate the satisfaction classifier B3. Then, step S31 is executed.

(ステップS31)分類器補正部14は、満足分類器B3を使用して、複数の満足分類対象データB4(満足分類対象データ群)から、複数の満足分類結果データB5(満足分類結果データ群)を取得する。 (Step S31) The classifier correcting unit 14 uses the satisfaction classifier B3 to convert a plurality of satisfaction classification target data B4 (satisfaction classification target data group) into a plurality of satisfaction classification result data B5 (satisfaction classification result data group). To get

(ステップS32)分類器補正部14は、満足分類結果データ群において各分類項目(ラベル)の出現頻度を算出する。分類器補正部14は、各分類項目の出現頻度の間の差が所定値以上である場合には当該満足分類器B3の補正を行うと判断し、各分類項目の出現頻度の間の差が所定値未満である場合には当該満足分類器B3の補正を行わないと判断する。分類器補正部14は、満足分類器B3の補正を行うと判断した場合には、満足分類器B3を所定の補正方法により補正して満足分類器B3bを生成する。 (Step S32) The classifier correction unit 14 calculates the appearance frequency of each classification item (label) in the satisfaction classification result data group. When the difference between the appearance frequencies of the respective classification items is equal to or more than a predetermined value, the classifier correction unit 14 determines to correct the satisfaction classifier B3, and the difference between the appearance frequencies of the respective classification items is If it is less than the predetermined value, it is determined that the satisfaction classifier B3 is not corrected. When determining that the satisfaction classifier B3 is to be corrected, the classifier correction unit 14 corrects the satisfaction classifier B3 by a predetermined correction method to generate the satisfaction classifier B3b.

次に本実施形態に係る変形例を説明する。 Next, a modified example according to the present embodiment will be described.

[変形例1]
図10は、本実施形態に係る変形例1の説明図である。変形例1では、分類器生成部11は、分類器に含まれる文を文変更部12により変更することにより、他の分類器を生成する。図10において、分類器生成部11は、不満分類器A3に含まれる各文を文変更部12により変更する。分類器生成部11は、該文の変更後の不満分類器A3を、満足分類器B3とする。変形例1において、不満分類器A3は第1分類器に対応し、満足分類器B3は第2分類器に対応する。
[Modification 1]
FIG. 10 is an explanatory diagram of Modification 1 according to the present embodiment. In the first modification, the classifier generating unit 11 changes the sentence included in the classifier by the sentence changing unit 12 to generate another classifier. In FIG. 10, the classifier generation unit 11 changes each sentence included in the dissatisfied classifier A3 by the sentence changing unit 12. The classifier generation unit 11 sets the dissatisfied classifier A3 after the change of the sentence as a satisfaction classifier B3. In the first modification, the dissatisfaction classifier A3 corresponds to the first classifier, and the satisfaction classifier B3 corresponds to the second classifier.

[変形例2]
変形例2は、文変更方法の変形例である。文が主語と述語とを有する場合、主語に応じて、変更先の述語を選択することが好ましい場合がある。このため、変形例2では、文の主語に応じて変更先の述語を選択する。変形例2では、変換辞書31は、主語になり得る単語に関連付けて単語の対のデータを有する。文変更部12は、形態素解析および係り受け解析の結果、入力文中に述語項構造と主語とが発見された場合、該主語の単語と述部の単語とを変換辞書31に渡す。変換辞書31は、該主語の単語に関連付けられている単語の対のデータを使用して、該述部の単語(入力単語)についての対の単語(変換単語)を文変更部12に返答する。文変更部12は、変換辞書31から受け取った変換単語により、入力文中の述部の単語を置換する。これにより、文変更部12は、入力文中の主語に応じて適切な述語の変更を行うことができる。
変形例2の一適用例を説明する。異なるサービスXとサービスYであってもサービスに対する利用者の関心の持ち方が似ている場合には、分類構造データの分類項目及び分類項目の階層の構造を同じくすることができる。但し、サービスXとサービスYとが異なるサービスであるために、分類構造データに使用される代表文については、サービスXとサービスYとで代表文の表現の仕方が異なる場合がある。例えば、サービスXとサービスYとで代表文の主語が異なると、同じ満足と不満足の関係の表現であっても述語に使用される単語も異なる方が自然である場合がある。このような場合、変形例2によれば、主語に応じて適切な述語の変更を行うことができるので、サービスXの代表文の主語をサービスYに相応しい主語に代えてから文変更部12により述語を変更することにより、サービスXの代表文からサービスYに相応しい代表文に変更することができる。これにより、異なるサービスXとサービスYについて、サービスXに関する分類構造データや教師データから、サービスYに関する分類構造データや教師データを生成することができるという効果が得られる。
[Modification 2]
Modification 2 is a modification of the sentence changing method. When a sentence has a subject and a predicate, it may be preferable to select a predicate to change to depending on the subject. Therefore, in the second modification, the predicate to be changed is selected according to the subject of the sentence. In the second modification, the conversion dictionary 31 has word pair data associated with a word that can be a subject. When the predicate term structure and the subject are found in the input sentence as a result of the morphological analysis and the dependency analysis, the sentence changing unit 12 passes the word of the subject and the word of the predicate to the conversion dictionary 31. The conversion dictionary 31 uses the data of the pair of words associated with the word of the subject to return the pair of words (converted word) for the word (input word) of the predicate to the sentence changing unit 12. .. The sentence changing unit 12 replaces the word of the predicate in the input sentence with the converted word received from the conversion dictionary 31. As a result, the sentence changing unit 12 can appropriately change the predicate according to the subject in the input sentence.
An application example of the modification 2 will be described. Even if different services X and Y are used, if the users have similar interests in the services, the structure of the classification items of the classification structure data and the hierarchy of the classification items can be the same. However, since the service X and the service Y are different services, the representative sentence used in the classification structure data may be expressed differently between the service X and the service Y. For example, when the subject of the representative sentence is different between the service X and the service Y, it may be more natural that the words used in the predicate are different even if the expressions of the same satisfaction and dissatisfaction relationships are expressed. In such a case, according to the second modification, an appropriate predicate can be changed according to the subject, and therefore the subject of the representative sentence of the service X is changed to the subject suitable for the service Y, and then the sentence changing unit 12 is used. By changing the predicate, the representative sentence of the service X can be changed to the representative sentence suitable for the service Y. As a result, it is possible to generate the classification structure data and the teacher data regarding the service Y from the classification structure data and the teacher data regarding the service X for different services X and Y.

次に本実施形態に係る分類器補正方法の例を説明する。
[分類器補正方法の例]
図11、図12及び図13を参照して本実施形態に係る分類器補正方法の例を説明する。図11は、本実施形態に係る分類構造データD1の構成例を示す図である。分類構造データD1は、分類器Dの分類構造データである。図11において、分類構造データD1は、第1階層から第3階層までの3つの階層を有し、階層毎に分類項目を有する。
Next, an example of the classifier correction method according to this embodiment will be described.
[Example of classifier correction method]
An example of the classifier correction method according to the present embodiment will be described with reference to FIGS. 11, 12, and 13. FIG. 11 is a diagram showing a configuration example of the classification structure data D1 according to this embodiment. The classification structure data D1 is classification structure data of the classifier D. In FIG. 11, the classification structure data D1 has three layers from the first layer to the third layer, and has a classification item for each layer.

分類構造データD1において、第1階層の分類項目は「音楽」であり、第1階層の分類項目「音楽」の識別番号は「1」である。第1階層の分類項目「音楽」に属する下層である第2階層の分類項目は「ジャンル」と「音色」であり、該第2階層の分類項目「ジャンル」の識別番号は「1」であり、該第2階層の分類項目「音色」の識別番号は「2」である。第2階層の分類項目「ジャンル」に属する下層である第3階層の分類項目は「クラシック」と「ポップス」であり、該第3階層の分類項目「クラシック」の識別番号は「1」であり、該第3階層の分類項目「ポップス」の識別番号は「2」である。第2階層の分類項目「音色」に属する下層である第3階層の分類項目は「くらい」と「明るい」と「暖かい」であり、該第3階層の分類項目「くらい」の識別番号は「1」であり、該第3階層の分類項目「明るい」の識別番号は「2」であり、該第3階層の分類項目「暖かい」の識別番号は「3」である。 In the classification structure data D1, the classification item of the first layer is “music”, and the identification number of the classification item “music” of the first layer is “1”. The category items of the second layer, which is a lower layer belonging to the category item "Music" of the first layer, are "genre" and "timbre", and the identification number of the category item "genre" of the second layer is "1". The identification number of the classification item "timbre" of the second layer is "2". The classification items of the third layer, which is a lower layer belonging to the classification item "genre" of the second layer, are "classic" and "pops", and the identification number of the classification item "classic" of the third layer is "1". The identification number of the classification item "pops" in the third hierarchy is "2". The classification items of the third layer, which is a lower layer belonging to the classification item of the second layer "timbre", are "about", "bright", and "warm", and the identification number of the classification item "about" of the third layer is "about". 1", the identification number of the classification item "bright" of the third layer is "2", and the identification number of the classification item "warm" of the third layer is "3".

分類構造データD1は、例えばテキストデータを音楽のジャンルや印象で分類する場合に利用される。分類構造データD1において、第1階層は、分類対象のテキストデータのうちトピックが「音楽」であるテキストデータを分類する先となる。第2階層は、トピックが「音楽」であるテキストデータのうち「ジャンル」又は「音色」に関するテキストデータを分類する先となる。第3階層は、トピックが「音楽」であるテキストデータであって「ジャンル」又は「音色」に関するテキストデータのうち「ジャンル」又は「音色」の具体的な分類項目に関するテキストデータを分類する先となる。 The classification structure data D1 is used, for example, when classifying text data by music genre or impression. In the classification structure data D1, the first layer is a destination where the text data whose topic is “music” is classified from the text data to be classified. The second layer is a destination for classifying text data relating to "genre" or "timbre" among the text data whose topic is "music". The third layer is a text data whose topic is “music” and is a destination for classifying text data related to a specific classification item of “genre” or “timbre” among text data related to “genre” or “timbre”. Become.

分類器Dによって、分類構造データD1に基づいて分類されたテキストデータには、分類された先の分類項目の識別番号から構成されるラベルが付与される。図11には、第3階層まで分類されたテキストデータに対して付与されるラベル「111」,「112」,「121」,「122」及び「123」が示される。例えば、テキストデータ「私の好きな音楽はクラシック」に対して、分類結果のラベル「111」が付与される。テキストデータ「暖かい音色の音楽が好き」に対して、分類結果のラベル「123」が付与される。また、第2階層まで分類されたテキストデータとして、例えば「私は音楽ならどんなジャンルでも好き」に対して、分類結果のラベル「11」が付与される。また、第1階層まで分類されたテキストデータとして、例えば「私は音楽が好き」に対して、分類結果のラベル「1」が付与される。 The text data classified by the classifier D based on the classification structure data D1 is provided with a label including the identification number of the classified classification item. FIG. 11 shows labels “111”, “112”, “121”, “122”, and “123” that are given to the text data classified up to the third layer. For example, the classification result label “111” is added to the text data “My favorite music is classical music”. The classification result label “123” is given to the text data “I like music with a warm tone”. Further, as the text data classified up to the second layer, for example, “I like any genre of music”, the classification result label “11” is given. As the text data classified up to the first layer, for example, "I like music" is given a classification result label "1".

分類器補正部14は、分類器Dの分類構造データD1の補正を行う。図12を参照して分類器補正部14の分類器補正に係る動作を説明する。図12は、本実施形態に係る分類器補正方法の例の手順を示すフローチャートである。図12に示す分類器補正方法の手順(ステップS111〜S114)は、分類構造データにおける上位の階層から下位の階層へと順番に実行される。分類構造データD1に対して、最初に第1階層に対してステップS111〜S114を実行し、次いで第2階層に対してステップS111〜S114を実行し、最後に第3階層に対してステップS111〜S114を実行する。 The classifier correction unit 14 corrects the classification structure data D1 of the classifier D. The operation related to the classifier correction of the classifier correction unit 14 will be described with reference to FIG. FIG. 12 is a flowchart showing the procedure of an example of the classifier correction method according to this embodiment. The procedure (steps S111 to S114) of the classifier correction method illustrated in FIG. 12 is sequentially executed from the upper hierarchy to the lower hierarchy in the classification structure data. With respect to the classification structure data D1, steps S111 to S114 are first performed on the first layer, steps S111 to S114 are then performed on the second layer, and finally steps S111 to S111 on the third layer. Execute S114.

分類構造データD1の補正には検証教師データD2を使用する。検証教師データD2は、例えば、直近の一定期間(例えば、直近の半年間)に実施されたアンケートの回答として自由記述された文章のテキストデータに対して、分類構造データD1に属するラベルのうち正解ラベルが付与されたテキストデータである。例えば、人間がテキストデータを分析して該テキストデータの正解ラベルを判断し、判断結果の正解ラベルを該テキストデータに付与する。検証教師データは、データベース32に予め格納されている。 The verification teacher data D2 is used to correct the classification structure data D1. The verification teacher data D2 is, for example, the correct answer of the labels belonging to the classification structure data D1 with respect to the text data of the sentence freely described as the answer to the questionnaire conducted in the most recent fixed period (for example, the most recent half year). It is text data with a label. For example, a person analyzes the text data to determine the correct answer label of the text data, and gives the correct answer label of the determination result to the text data. The verification teacher data is stored in the database 32 in advance.

(ステップS111)分類器補正部14は、分類構造データD1における検証対象階層の分類項目のうち検証対象分類項目に対して、検証教師データD2の仕分けを行う。検証教師データD2の仕分けでは、検証対象分類項目に対して、検証対象分類項目の識別番号を含む正解ラベルが付与された検証教師データD2aと、検証対象分類項目の識別番号を含まない正解ラベルが付与された検証教師データD2bとに仕分ける。例えば、分類構造データD1の第2階層の分類項目「ジャンル」が検証対象分類項目である場合、該分類項目「ジャンル」の識別番号「1」を含むラベル「11」,「111」又は「112」が付与された検証教師データD2aと、該分類項目「ジャンル」の識別番号「1」を含まないラベル「1」,「12」,「121」,「122」又は「123」が付与された検証教師データD2bとに仕分ける。検証対象分類項目の識別番号を含む正解ラベルが付与された検証教師データD2aは、検証対象分類項目の検証正例データグループにグルーピングされる。検証対象分類項目の識別番号を含まない正解ラベルが付与された検証教師データD2bは、検証対象分類項目の検証負例データグループにグルーピングされる。 (Step S111) The classifier correction unit 14 sorts the verification teacher data D2 with respect to the verification target classification item among the verification target hierarchy classification items in the classification structure data D1. In the classification of the verification teacher data D2, the verification teacher data D2a to which the correct answer label including the identification number of the verification target classification item is assigned to the verification target classification item, and the correct answer label that does not include the identification number of the verification target classification item. It is sorted into the assigned verification teacher data D2b. For example, when the classification item “genre” of the second hierarchy of the classification structure data D1 is the verification target classification item, the label “11”, “111” or “112” including the identification number “1” of the classification item “genre”. ", and the label "1", "12", "121", "122" or "123" which does not include the identification number "1" of the classification item "genre" is added. It is sorted into the verification teacher data D2b. The verification teacher data D2a to which the correct answer label including the identification number of the verification target classification item is added is grouped into the verification positive example data group of the verification target classification item. The verification teacher data D2b to which the correct label that does not include the identification number of the verification target classification item is added is grouped into the verification negative example data group of the verification target classification item.

分類器補正部14は、検証対象分類項目の検証正例データグループ内の検証教師データD2aを所定の比率で検証学習データと検証テストデータに仕分ける。分類器補正部14は、検証対象分類項目の検証負例データグループ内の検証教師データD2bについても、該同じ比率で検証学習データと検証テストデータに仕分ける。例えば、検証対象分類項目の検証正例データグループ内の全検証教師データD2aのうち、90%の検証教師データD2aを検証対象分類項目の検証正例学習データグループにグルーピングし、残りの10%の検証教師データD2aを検証対象分類項目の検証正例テストデータグループにグルーピングする。同様に、検証対象分類項目の検証負例データグループ内の全検証教師データD2bのうち、90%の検証教師データD2bを検証対象分類項目の検証負例学習データグループにグルーピングし、残りの10%の検証教師データD2bを検証対象分類項目の検証負例テストデータグループにグルーピングする。 The classifier correction unit 14 sorts the verification teacher data D2a in the verification positive example data group of the verification target classification item into verification learning data and verification test data at a predetermined ratio. The classifier correction unit 14 also classifies the verification teacher data D2b in the verification negative example data group of the verification target classification item into verification learning data and verification test data at the same ratio. For example, 90% of the verification teacher data D2a of all verification teacher data D2a in the verification positive example data group of the verification target classification item is grouped into the verification positive example learning data group of the verification target classification item, and the remaining 10% The verification teacher data D2a is grouped into the verification positive example test data group of the verification target classification item. Similarly, of all verification teacher data D2b in the verification negative example data group of the verification target classification item, 90% of the verification teacher data D2b is grouped into the verification negative example learning data group of the verification target classification item, and the remaining 10%. The verification teacher data D2b is grouped into the verification negative example test data group of the verification target classification item.

(ステップS112)分類器補正部14は、検証対象分類項目の検証正例学習データグループ及び検証負例学習データグループを使用して、検証対象分類項目についての分類器を生成する。分類器補正部14が生成する分類器の種類は、分類器生成部11が生成する分類器と同じ種類である。例えば、分類器生成部11と分類器補正部14とは、SVMの分類器を生成する。検証対象分類項目についての分類器は、分類対象のテキストデータが検証対象分類項目に該当するか否かを判定する機能を有する。 (Step S112) The classifier correction unit 14 uses the verification positive example learning data group and the verification negative example learning data group of the verification target classification item to generate a classifier for the verification target classification item. The type of classifier generated by the classifier correction unit 14 is the same type as the classifier generated by the classifier generation unit 11. For example, the classifier generation unit 11 and the classifier correction unit 14 generate an SVM classifier. The classifier for the verification target classification item has a function of determining whether or not the text data of the classification target corresponds to the verification target classification item.

(ステップS113)分類器補正部14は、検証対象分類項目の検証正例テストデータグループ又は検証負例テストデータグループを使用して、検証対象分類項目についての分類器の適合度を計算する。分類器の適合度の例1〜4を以下に挙げる。 (Step S113) The classifier correction unit 14 uses the verification positive example test data group or the verification negative example test data group of the verification target classification item to calculate the suitability of the classifier for the verification target classification item. Examples 1 to 4 of the suitability of the classifier are given below.

(分類器の適合度の例1)
分類器の適合度の例1は正解率(Accuracy)である。正解率は、次式で表される。
正解率=(TP+TN)/(TP+FP+TN+FN)
(Example 1 of goodness of fit of classifier)
Example 1 of the goodness of fit of the classifier is the accuracy rate (Accuracy). The accuracy rate is expressed by the following equation.
Correct rate = (TP+TN)/(TP+FP+TN+FN)

(分類器の適合度の例2)
分類器の適合度の例2は真陽性率(True Positive Rate)である。真陽性率は、次式で表される。
真陽性率=TP/(TP+FN)
(Example 2 of goodness of fit of classifier)
Example 2 of the goodness of fit of the classifier is the true positive rate. The true positive rate is expressed by the following equation.
True positive rate = TP/(TP+FN)

(分類器の適合度の例3)
分類器の適合度の例3は偽陰性率(False Negative Rate)である。偽陰性率は、次式で表される。
偽陰性率=FN/(TP+FN)
(Example 3 of goodness of fit of classifier)
Example 3 of the goodness of fit of the classifier is a false negative rate. The false negative rate is expressed by the following equation.
False negative rate = FN/(TP+FN)

(分類器の適合度の例4)
分類器の適合度の例4は精度(Precision)である。精度は、次式で表される。
精度=TP/(TP+FP)
(Example 4 of the goodness of fit of the classifier)
Example 4 of the goodness of fit of the classifier is precision. The accuracy is expressed by the following equation.
Accuracy = TP/(TP+FP)

上記の分類器の適合度の例1〜4において、TP(True positives)は、検証正例テストデータグループの検証教師データを分類器に適用した結果、正しく正例と判定された検証教師データの個数である。TN(True negatives)は、検証負例テストデータグループの検証教師データを分類器に適用した結果、正しく負例と判定された検証教師データの個数である。FP(False positives)は、検証負例テストデータグループの検証教師データを分類器に適用した結果、誤って正例と判定された検証教師データの個数である。FN(False negatives)は、検証正例テストデータグループの検証教師データを分類器に適用した結果、誤って負例と判定された検証教師データの個数である。 In Examples 1 to 4 of the goodness of fit of the classifier described above, TP (True positives) is the result of applying the verification teacher data of the verification positive example test data group to the classifier It is the number. TN (True negatives) is the number of pieces of verification teacher data correctly determined as a negative example as a result of applying the verification teacher data of the verification negative example test data group to the classifier. FP (False positives) is the number of pieces of verification teacher data erroneously determined to be positive as a result of applying the verification teacher data of the verification negative example test data group to the classifier. FN (False negatives) is the number of pieces of verification teacher data erroneously determined to be negative as a result of applying the verification teacher data of the verification positive example test data group to the classifier.

なお、上記の分類器の適合度の例1〜4のうち、いずれか一つのみを分類器の適合度に使用してもよく、又は、複数を分類器の適合度に使用してもよい。 Of the examples 1 to 4 of the goodness of fit of the classifier, only one of them may be used as the goodness of fit of the classifier, or a plurality may be used as the goodness of fit of the classifier. ..

(ステップS114)分類器補正部14は、検証対象分類項目についての分類器の適合度に基づいて、当該分類器の合否を判定する。例えば、上記の分類器の適合度の例1〜4のうち、いずれか一つのみ又は複数を評価し、評価の結果、適合度が良好である場合に合格と判定する。例えば、上記の分類器の適合度の例1〜4のうち、少なくともいずれか一つの適合度が良好である場合に合格と判定してもよい。又は、上記の分類器の適合度の例1〜4の全てが良好である場合にのみ合格と判定してもよい。適合度の評価方法として、例えば、適合度と所定の閾値との大小比較が挙げられる。 (Step S114) The classifier correction unit 14 determines whether the classifier is acceptable or not based on the suitability of the classifier for the verification target classification item. For example, one or more of the examples 1 to 4 of the goodness of fit of the classifier are evaluated, and if the goodness of fit is good as a result of the evaluation, it is determined as pass. For example, if at least one of the examples 1 to 4 of the goodness of fit of the classifier is good, it may be determined as a pass. Alternatively, it may be determined as a pass only when all of the examples 1 to 4 of the goodness of fit of the classifier are good. As an evaluation method of the goodness of fit, for example, comparison of the goodness of fit with a predetermined threshold value can be mentioned.

分類器補正部14は、検証対象分類項目についての分類器が合格である場合に、当該検証対象分類項目を採用する。一方、分類器補正部14は、検証対象分類項目についての分類器が不合格である場合に、当該検証対象分類項目を不採用とする。 The classifier correcting unit 14 adopts the verification target classification item when the classifier for the verification target classification item is acceptable. On the other hand, when the classifier for the verification target classification item fails, the classifier correction unit 14 rejects the verification target classification item.

なお、不採用とされた検証対象分類項目に属する下層の分類項目に対しては、上記のステップS111〜S114を実行しないで、不採用としてもよい。 Note that the steps S111 to S114 may not be executed for the lower classification items that belong to the verification target classification item that has been rejected, and may be rejected.

分類器補正部14は、不採用とする検証対象分類項目を、分類構造データD1から削除する、又は、分類構造データD1の判定不能項目に設定する。 The classifier correction unit 14 deletes the verification target classification item that is not adopted from the classification structure data D1 or sets it as an undeterminable item of the classification structure data D1.

図13は、本実施形態に係る分類構造データD1に対する補正例を示す図である。図13には、上記の図11に示す分類構造データD1を、分類器補正部14が補正した結果の例が示される。図13の例では、分類器補正部14によって第2階層の分類項目「音色」が不採用と決定された。また、第2階層の分類項目「音色」が不採用と決定されために、第2階層の分類項目「音色」に属する下層である第3階層の分類項目「くらい」,「明るい」及び「暖かい」の全てが不採用と決定された。これにより、分類器Dの分類構造データD1において、第2階層の分類項目「音色」並びに第3階層の分類項目「くらい」,「明るい」及び「暖かい」が削除される、又は、第2階層の分類項目「音色」並びに第3階層の分類項目「くらい」,「明るい」及び「暖かい」が判定不能項目に設定される。
以上が本実施形態に係る分類器補正方法の例の説明である。
FIG. 13 is a diagram showing a correction example for the classification structure data D1 according to the present embodiment. FIG. 13 shows an example of a result obtained by correcting the classification structure data D1 shown in FIG. 11 by the classifier correction unit 14. In the example of FIG. 13, the classifier correction unit 14 determines that the classification item “timbre” of the second layer is not adopted. Further, since the classification item "timbre" of the second layer is determined not to be adopted, the classification items "about", "bright", and "warm" of the third layer which is a lower layer belonging to the classification item "timbre" of the second layer. Was decided not to be adopted. As a result, in the classification structure data D1 of the classifier D, the classification item “timbre” of the second hierarchy and the classification items “about”, “bright” and “warm” of the third hierarchy are deleted, or the second hierarchy. The classification item "tone" and the classification items "about", "bright", and "warm" of the third hierarchy are set as undecidable items.
The above is the description of the example of the classifier correction method according to the present embodiment.

上述した実施形態によれば、予め準備された分類構造データから、他の分類構造データを自動的に生成することができる。これにより、テキスト分類処理の効率の向上を図ることができるという効果が得られる。 According to the above-described embodiment, other classification structure data can be automatically generated from the classification structure data prepared in advance. This has the effect of improving the efficiency of the text classification process.

上述した実施形態によれば、予め準備された教師データから、他の教師データを自動的に生成することができる。これにより、テキスト分類処理の効率の向上を図ることができるという効果が得られる。 According to the above-described embodiment, other teacher data can be automatically generated from the teacher data prepared in advance. This has the effect of improving the efficiency of the text classification process.

なお、上述した実施形態では、分類構造データと教師データとの両方を自動的に生成したが、分類構造データ又は教師データのいずれか一方のみを自動的に生成してもよい。 Although both the classification structure data and the teacher data are automatically generated in the above-described embodiment, only one of the classification structure data and the teacher data may be automatically generated.

以上、本発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。
例えば、上述した実施形態では、変換辞書31として反対語辞書を備えたが、変換辞書31は適宜変更してもよい。
Although the embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and includes design changes and the like without departing from the scope of the present invention.
For example, in the above-described embodiment, the opposite dictionary is provided as the conversion dictionary 31, but the conversion dictionary 31 may be appropriately changed.

また、上述した各装置の機能を実現するためのコンピュータプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行するようにしてもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、DVD(Digital Versatile Disc)等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。
Further, a computer program for realizing the functions of the above-described devices may be recorded in a computer-readable recording medium, and the program recorded in this recording medium may be read by a computer system and executed. The “computer system” may include an OS and hardware such as peripheral devices.
The "computer-readable recording medium" is a writable non-volatile memory such as a flexible disk, a magneto-optical disk, a ROM, a flash memory, a portable medium such as a DVD (Digital Versatile Disc), or a built-in computer system. A storage device such as a hard disk.

さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the "computer-readable recording medium" means a volatile memory (for example, a DRAM (Dynamic) in a computer system that serves as a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. Random Access Memory)), which also holds the program for a certain period of time.
Further, the program may be transmitted from a computer system that stores the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the "transmission medium" for transmitting the program means a medium having a function of transmitting information such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
Further, the program may be a program for realizing some of the functions described above. Further, it may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.

1…分類システム、10…分類器生成装置、11…分類器生成部、12…文変更部、13…代表文生成部、14…分類器補正部、20…コンテンツ分類装置、31…変換辞書、32…データベース DESCRIPTION OF SYMBOLS 1... Classification system, 10... Classifier generation device, 11... Classifier generation unit, 12... Sentence change unit, 13... Representative sentence generation unit, 14... Classifier correction unit, 20... Content classification device, 31... Conversion dictionary, 32... Database

Claims (8)

同じ回答者から得られる意味的に反対の質問に対する各回答を分類するための分類器を生成する分類器生成装置であって、
単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更部と、
文章データを分類する先である分類項目及び分類項目の階層を示す第1分類構造データに含まれる文を前記文変更部により変更して第2分類構造データを生成し、前記第2分類構造データと、前記第2分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第2教師データとを使用して分類器を生成する分類器生成部と、を備え
前記文変更部は、入力文に対して形態素解析および係り受け解析を行い、形態素解析および係り受け解析の結果、前記入力文中に述語項構造がある場合に、当該述部の単語の反対語を反対語辞書から取得し、前記入力文中の当該述部の単語を当該取得した反対語に置換する、
分類器生成装置。
A classifier generation device for generating a classifier for classifying each answer to a semantically opposite question obtained from the same respondent,
A sentence change section that changes the meaning of a sentence by replacing words or adding or deleting words,
The sentence included in the first classification structure data indicating the classification item and the hierarchy of the classification item that is the destination of classifying the text data is changed by the sentence changing unit to generate the second classification structure data, and the second classification structure data is generated. And a classifier generation unit that generates a classifier using the classification item of the second classification structure data and the second teacher data to which the label for identifying the hierarchy of the classification item is added ,
The sentence modification unit performs a morphological analysis and a dependency analysis on the input sentence. As a result of the morphological analysis and the dependency analysis, when the input sentence has a predicate term structure, the word opposite to the predicate term is detected. Acquiring from an antonym dictionary and replacing the word of the predicate in the input sentence with the acquired antonym.
Classifier generator.
前記文変更部は、前記入力文中に述語項構造がある場合において、当該述部の単語の反対語を反対語辞書から取得することができないときには、前記入力文中の当該述部の単語に否定語を追加する、又は前記入力文中の当該述部の単語から否定語を削除する、
請求項1に記載の分類器生成装置。
When the input sentence has a predicate-argument structure in the input sentence, when the opposite word of the word of the predicate cannot be obtained from the opposite word dictionary, the word of the predicate in the input sentence is a negative word. , Or delete the negative word from the word of the predicate in the input sentence,
The classifier generation device according to claim 1.
前記文変更部は、前記入力文に対する形態素解析および係り受け解析の結果、前記入力文中に述語項構造が発見されなかった場合に、前記入力文中の体言止めの単語の反対語を反対語辞書から取得し、前記入力文中の当該体言止めの単語を当該取得した反対語に置換する、
請求項1又は2のいずれか1項に記載の分類器生成装置。
As a result of the morpheme analysis and the dependency analysis on the input sentence, the sentence changing unit, when a predicate-argument structure is not found in the input sentence, selects an antonym of the word of word stop in the input sentence from an antonym dictionary. Obtain, and replace the word of the word stop in the input sentence with the obtained opposite word,
The classifier generation device according to claim 1.
前記分類器生成部は、前記第1分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第1教師データに含まれる文を前記文変更部により変更して前記第2教師データを生成する、
請求項1から3のいずれか1項に記載の分類器生成装置。
The classifier generation unit changes, by the sentence change unit, a sentence included in the first teacher data to which a label for identifying a classification item and a hierarchy of the classification item of the first classification structure data is changed by the second teacher. Generate data,
The classifier generation device according to any one of claims 1 to 3 .
前記分類器生成部が生成した分類器を使用して分類対象テキストデータを分類し、該分類の結果に基づいて当該分類器の代表文を生成する代表文生成部をさらに備える、
請求項1から4のいずれか1項に記載の分類器生成装置。
The classifier generator further includes a representative sentence generator that classifies the text data to be classified by using the classifier generated by the classifier and generates a representative sentence of the classifier based on a result of the classification.
The classifier generation device according to any one of claims 1 to 4 .
前記分類器生成部が生成した分類器を使用して、前記第2分類構造データに係る分類対象データを分類し、該分類の結果に基づいて当該分類器を補正するか否かを判断する分類器補正部をさらに備える、
請求項1からのいずれか1項に記載の分類器生成装置。
A classification for classifying the classification target data related to the second classification structure data using the classifier generated by the classifier generation unit, and determining whether to correct the classifier based on the result of the classification. Further comprises a vessel correction unit,
The classifier generation device according to any one of claims 1 to 5 .
同じ回答者から得られる意味的に反対の質問に対する各回答を分類するための分類器を生成する分類器生成方法であって、
分類器生成装置が、単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更ステップと、
前記分類器生成装置が、文章データを分類する先である分類項目及び分類項目の階層を示す第1分類構造データに含まれる文を前記文変更ステップにより変更して第2分類構造データを生成し、前記第2分類構造データと、前記第2分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第2教師データとを使用して分類器を生成する分類器生成ステップと、を含み、
前記文変更ステップは、入力文に対して形態素解析および係り受け解析を行い、形態素解析および係り受け解析の結果、前記入力文中に述語項構造がある場合に、当該述部の単語の反対語を反対語辞書から取得し、前記入力文中の当該述部の単語を当該取得した反対語に置換する、
分類器生成方法。
A classifier generation method for generating a classifier for classifying each answer to a semantically opposite question obtained from the same respondent,
A classifier generating device, a sentence changing step of changing the meaning of the sentence by replacing words or adding or deleting words,
The classifier generation device changes the sentence included in the first classification structure data indicating the classification item and the hierarchy of the classification item, which is the destination to classify the sentence data, by the sentence changing step to generate the second classification structure data. A classifier generating step of generating a classifier using the second classification structure data and the second teacher data provided with a label for identifying a classification item of the second classification structure data and a hierarchy of the classification item; , only including,
The sentence changing step performs a morpheme analysis and a dependency analysis on the input sentence, and as a result of the morpheme analysis and the dependency analysis, if there is a predicate-argument structure in the input sentence, an antonym of the word of the predicate is detected. Acquiring from an antonym dictionary and replacing the word of the predicate in the input sentence with the acquired antonym.
Classifier generation method.
同じ回答者から得られる意味的に反対の質問に対する各回答を分類するための分類器を生成する分類器生成装置のコンピュータに、
単語を置換又は単語を追加もしくは削除して文の意味を変更する文変更機能と、
文章データを分類する先である分類項目及び分類項目の階層を示す第1分類構造データに含まれる文を前記文変更機能により変更して第2分類構造データを生成し、前記第2分類構造データと、前記第2分類構造データの分類項目及び分類項目の階層を識別するラベルが付与された第2教師データとを使用して分類器を生成する分類器生成機能と、を実現させるためのコンピュータプログラムであって、
前記文変更機能は、入力文に対して形態素解析および係り受け解析を行い、形態素解析および係り受け解析の結果、前記入力文中に述語項構造がある場合に、当該述部の単語の反対語を反対語辞書から取得し、前記入力文中の当該述部の単語を当該取得した反対語に置換する、
コンピュータプログラム。
A computer of a classifier generation device for generating a classifier for classifying each answer to a semantically opposite question obtained from the same respondent ,
A sentence change function that changes the meaning of a sentence by replacing words or adding or deleting words
The sentence included in the first classification structure data indicating the classification item and the hierarchy of the classification item which is the classification destination of the text data is changed by the sentence changing function to generate the second classification structure data, and the second classification structure data is generated. When a computer for realizing the a classifier generation function of generating a classifier using a second training data label identifying the hierarchy of the classification items and the classification items of the second classification configuration data has been granted A program,
The sentence modification function performs a morphological analysis and a dependency analysis on the input sentence. As a result of the morphological analysis and the dependency analysis, when the input sentence has a predicate-argument structure, an opposite word of the word of the predicate is detected. Acquiring from an antonym dictionary and replacing the word of the predicate in the input sentence with the acquired antonym.
Computer program.
JP2016251499A 2016-12-26 2016-12-26 Classifier generation device, classifier generation method, and computer program Active JP6715758B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016251499A JP6715758B2 (en) 2016-12-26 2016-12-26 Classifier generation device, classifier generation method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016251499A JP6715758B2 (en) 2016-12-26 2016-12-26 Classifier generation device, classifier generation method, and computer program

Publications (2)

Publication Number Publication Date
JP2018106390A JP2018106390A (en) 2018-07-05
JP6715758B2 true JP6715758B2 (en) 2020-07-01

Family

ID=62787779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016251499A Active JP6715758B2 (en) 2016-12-26 2016-12-26 Classifier generation device, classifier generation method, and computer program

Country Status (1)

Country Link
JP (1) JP6715758B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021220478A1 (en) * 2020-04-30 2021-11-04 三菱電機株式会社 Device, method and program for creating training data
JP7329570B2 (en) * 2021-09-03 2023-08-18 株式会社マクロミル Information processing method and information processing device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020099730A1 (en) * 2000-05-12 2002-07-25 Applied Psychology Research Limited Automatic text classification system
JP2006251975A (en) * 2005-03-09 2006-09-21 Omron Corp Text classification method, program using the method, and text classification apparatus
JP5215046B2 (en) * 2008-06-05 2013-06-19 株式会社東芝 Document classification device
JP4745422B2 (en) * 2009-05-29 2011-08-10 株式会社東芝 Representative sentence extraction device and program
JP6048977B2 (en) * 2014-12-01 2016-12-21 ビッグローブ株式会社 Site summary method, site summary system, information processing apparatus, and program
JP6535858B2 (en) * 2015-04-30 2019-07-03 国立大学法人鳥取大学 Document analyzer, program

Also Published As

Publication number Publication date
JP2018106390A (en) 2018-07-05

Similar Documents

Publication Publication Date Title
US8005862B2 (en) Classifying content resources using structured patterns
US9704480B2 (en) Information processing apparatus, method for processing information, and program
Firmino Alves et al. A Comparison of SVM versus naive-bayes techniques for sentiment analysis in tweets: A case study with the 2013 FIFA confederations cup
Singh et al. Sentiment analysis of textual reviews; Evaluating machine learning, unsupervised and SentiWordNet approaches
US20190392035A1 (en) Information object extraction using combination of classifiers analyzing local and non-local features
RU2679988C1 (en) Extracting information objects with the help of a classifier combination
Augustyniak et al. Simpler is better? Lexicon-based ensemble sentiment classification beats supervised methods
Cotelo et al. Tweet categorization by combining content and structural knowledge
KR101842361B1 (en) An apparatus for analyzing sentiment of review data and method thereof
Toubia A Poisson factorization topic model for the study of creative documents (and their summaries)
CN106610990A (en) Emotional tendency analysis method and apparatus
CN114328871A (en) Intelligent customer service problem answering method based on NLP technology and built-in knowledge base
JP2017027495A (en) Verification device, classification system, verification method, classification method, and computer program
CN108733652B (en) Test method for film evaluation emotion tendency analysis based on machine learning
KR20210099661A (en) Method and apparatus for generating annotated natural language phrases
JP6715758B2 (en) Classifier generation device, classifier generation method, and computer program
WO2008062822A1 (en) Text mining device, text mining method and text mining program
CN111753533B (en) Title text generation method, device, computer storage medium and electronic equipment
CN121166892A (en) Chinese semantic enhanced fuzzy retrieval method and system based on self-adaptive weight
CN108804416B (en) Training method for film evaluation emotion tendency analysis based on machine learning
CN120851028A (en) A text generation method and system based on natural language processing
JP2010198278A (en) Apparatus, method, and program for classification of reputation information
JP5506482B2 (en) Named entity extraction apparatus, string-named expression class pair database creation apparatus, numbered entity extraction method, string-named expression class pair database creation method, program
CN116561432A (en) Intelligent employee content data recommendation system
Alian et al. Unsupervised learning blocking keys technique for indexing Arabic entity resolution

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20161227

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191112

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200109

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200519

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200609

R150 Certificate of patent or registration of utility model

Ref document number: 6715758

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150