JP6720764B2 - テキスト解析装置及びプログラム - Google Patents
テキスト解析装置及びプログラム Download PDFInfo
- Publication number
- JP6720764B2 JP6720764B2 JP2016155722A JP2016155722A JP6720764B2 JP 6720764 B2 JP6720764 B2 JP 6720764B2 JP 2016155722 A JP2016155722 A JP 2016155722A JP 2016155722 A JP2016155722 A JP 2016155722A JP 6720764 B2 JP6720764 B2 JP 6720764B2
- Authority
- JP
- Japan
- Prior art keywords
- word
- text
- learning
- words
- classification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000004458 analytical method Methods 0.000 title claims description 24
- 230000014509 gene expression Effects 0.000 claims description 70
- 238000013528 artificial neural network Methods 0.000 claims description 33
- 238000000605 extraction Methods 0.000 claims description 32
- 238000000034 method Methods 0.000 claims description 25
- 230000006870 function Effects 0.000 claims description 16
- 238000009826 distribution Methods 0.000 claims description 15
- 239000000284 extract Substances 0.000 claims description 11
- 230000007935 neutral effect Effects 0.000 claims description 7
- 230000008451 emotion Effects 0.000 claims description 6
- 230000002996 emotional effect Effects 0.000 claims 1
- 238000006243 chemical reaction Methods 0.000 description 14
- 238000012545 processing Methods 0.000 description 14
- 238000010801 machine learning Methods 0.000 description 12
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 239000011159 matrix material Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000000877 morphologic effect Effects 0.000 description 2
- 238000003058 natural language processing Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000004836 empirical method Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000009827 uniform distribution Methods 0.000 description 1
- 230000003936 working memory Effects 0.000 description 1
Images
Landscapes
- Machine Translation (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
「に/とても/悲しい/こと/を」
となる。
ID=1のラベルは「喜」で見出し語は「嬉しい」
ID=2のラベルは「怒」で見出し語は「腹立たしい」
ID=3のラベルは「哀」で見出し語は「悲しい」
等である。
ID=1のテキストは「彼にとても悲しいことを言われた」
ID=2のテキストは「思いがけずプレゼントを貰えて嬉しい」
ID=3のテキストは「嬉しいことがとても多い」
等である。
ID=1のラベルは「ポジティブ」でテキストは「新しいスマホが買えてとても嬉しいです!!」
ID=2のラベルは「ネガティブ」でテキストは「今日は仕事で失敗して悲しい」
ID=3のラベルは「ニュートラル」でテキストは「今電車で移動しています」
等である。
「貰え/て/嬉しい/。」→「貰え/て/XX/。」
「嬉しい/こと/が」→「XX/こと/が」
と置換する。
「に/とても/悲しい/こと/を」→「に/とても/XX/こと/を」
と置換する。
「嬉しい」=[1.1,0.1,−0.2]
「悲しい」=[0.2,0.3,1.5]
「貰う」=[0.7,0.2,−0.1]
であると仮定する。
ci=f(w・xi:i+h−1)
w∈Rhk
w=[0.1,−0.1,−0.2]
に初期化される。なお、h>1であれば、2単語以上について単語分散表現の次元の組合せに対する処理となる。
w=[2.0,−0.1,−1.8]
に更新される。
実施形態では、テキスト(ラベルなし)データベース101、分類情報付き辞書データベース102、及び文/文書ラベル付きテキストデータベース121は記憶装置30に記憶されているが、それぞれ別の記憶装置に記憶されていてもよく、ネットワーク上のそれぞれ別のサーバコンピュータに記憶されていてもよい。
実施形態では、スニペットとして見出し語の周辺L語を抽出するものとし、L=2としているが、L=1、あるいはL=3、L=4等としてもよい。要するに、分類情報付き辞書データベース102に記憶されている見出し語の前後の1つ又は複数の単語を抽出してスニペットを抽出すればよい。一般に、Lは1よりも2,3,4・・・の方が解析精度は向上すると考えられるが、スニペットの数が増大するとその分だけ処理が複雑化して時間を要することになる。従って、見出し語の前後2語程度が適当と考えられるが、必ずしもこれに限定されない。種々のLについて学習し、精度及び処理時間の観点からLを最適化してもよい。
実施形態の解析対象は文/文書のテキストであるが、音声を入力してテキスト化し、当該テキストを解析対象としてもよい。この場合、テキスト解析装置は、テキスト化音声解析装置として機能し得る。
実施形態では、一つのコンピュータに単語分類学習部10及び文/文書分類学習部12がともに実装されているが、これらをそれぞれ別のコンピュータに実装してもよい。
実施形態では、CPU20及び処理プログラムによりニューラルネットワーク(第1ニューラルネットワーク及び第2ニューラルネットワーク)を実装しているが、これに代えて、専用ハードウェア(ASIC)によりニューラルネットワークを実装してもよく、あるいはFPGAを用いて実装してもよい。FPGAを用いる場合でも、その一部をソフトウェアで実装してもよく、ハードウェアとソフトウェアの複合体として実装してもよい。
Claims (2)
- ラベルなしのテキストから、肯定的、否定的、中立的のいずれか、または喜怒哀楽のいずれかのラベルを含む分類情報付きの見出し語周辺の1つ又は複数の単語をスニペットとして抽出するスニペット抽出手段と、
抽出したスニペット中の単語を用いて第1ニューラルネットワークで事前学習して単語単位の分類情報を取得する取得手段であり、
前記スニペット中の単語を単語分散表現に変換し、
前記単語分散表現の列に対して畳み込み演算を行い、
誤差逆伝播法により前記単語分散表現及び単語畳み込み層の重みを更新し、前記単語単位の分類情報として取得する、取得手段と、
前記取得手段での事前学習により取得された前記単語単位の分類情報を用いて第2ニューラルネットワークの重みを初期化し、ラベル付きのテキストを教師データとして用いて第2ニューラルネットワークで学習し、任意のテキストが入力された場合に当該テキストの分類を出力すべく学習する学習手段であり、
前記単語単位の分類情報を用いて単語分散表現と単語畳み込み層の重みを初期化し、
前記ラベル付きのテキストから単語をスニペットとして抽出し、
抽出したスニペット中の単語を単語分散表現に変換し、
前記単語分散表現の列に対して畳み込み演算を行い、
誤差逆伝播法により、初期化された前記単語分散表現及び単語畳み込み層の重みを更新する、学習手段と、
を備えるテキスト解析装置。 - コンピュータを、
ラベルなしのテキストから、肯定的、否定的、中立的のいずれか、または喜怒哀楽のいずれかのラベルを含む分類情報付きの見出し語周辺の1つ又は複数の単語をスニペットとして抽出するスニペット抽出手段と、
抽出したスニペット中の単語を用いて第1ニューラルネットワークで事前学習して単語単位の分類情報を取得する取得手段であり、
前記スニペット中の単語を単語分散表現に変換し、
前記単語分散表現の列に対して畳み込み演算を行い、
誤差逆伝播法により前記単語分散表現及び単語畳み込み層の重みを更新し、前記単語単位の分類情報として取得する、取得手段と、
前記取得手段での事前学習により取得された前記単語単位の分類情報を用いて第2ニューラルネットワークの重みを初期化し、ラベル付きのテキストを教師データとして用いて第2ニューラルネットワークで学習し、任意のテキストが入力された場合に当該テキストの分類を出力すべく学習する学習手段であり、
前記単語単位の分類情報を用いて単語分散表現と単語畳み込み層の重みを初期化し、
前記ラベル付きのテキストから単語をスニペットとして抽出し、
抽出したスニペット中の単語を単語分散表現に変換し、
前記単語分散表現の列に対して畳み込み演算を行い、
誤差逆伝播法により、初期化された前記単語分散表現及び単語畳み込み層の重みを更新する、学習手段、
として機能させるプログラム。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016155722A JP6720764B2 (ja) | 2016-08-08 | 2016-08-08 | テキスト解析装置及びプログラム |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016155722A JP6720764B2 (ja) | 2016-08-08 | 2016-08-08 | テキスト解析装置及びプログラム |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018025874A JP2018025874A (ja) | 2018-02-15 |
| JP6720764B2 true JP6720764B2 (ja) | 2020-07-08 |
Family
ID=61193789
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016155722A Expired - Fee Related JP6720764B2 (ja) | 2016-08-08 | 2016-08-08 | テキスト解析装置及びプログラム |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6720764B2 (ja) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11386354B2 (en) | 2017-06-16 | 2022-07-12 | Ns Solutions Corporation | Information processing apparatus, information processing method, and program |
| JP6980616B2 (ja) * | 2018-08-09 | 2021-12-15 | 株式会社日立製作所 | 計算機システム及び学習方法 |
| JP7186591B2 (ja) * | 2018-12-03 | 2022-12-09 | 日本放送協会 | テキスト分類装置、学習装置、およびプログラム |
| JP7757023B2 (ja) * | 2019-01-11 | 2025-10-21 | 株式会社東芝 | 分類支援システム、分類支援装置、分類支援方法、及びプログラム |
| CN110472040B (zh) * | 2019-06-26 | 2024-08-20 | 平安科技(深圳)有限公司 | 评价信息的提取方法及装置、存储介质、计算机设备 |
| CN111222344B (zh) * | 2020-01-03 | 2023-07-18 | 支付宝(杭州)信息技术有限公司 | 训练神经网络的方法、装置及电子设备 |
| KR102536775B1 (ko) * | 2020-10-21 | 2023-05-31 | 네이버 주식회사 | 검색 질의의 의도를 반영한 검색 결과 제공 방법 및 시스템 |
| JP7665390B2 (ja) * | 2021-04-13 | 2025-04-21 | 日産自動車株式会社 | 情報処理装置及び情報処理方法 |
| KR102557088B1 (ko) * | 2021-05-07 | 2023-07-18 | 김상진 | 독해와 작문 능력의 향상을 가이드하는 방법 및 그 장치 |
| CN114020917A (zh) * | 2021-11-05 | 2022-02-08 | 南京理工大学 | 基于自注意力机制与卷积神经网络的新闻文本分类方法 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2764343B2 (ja) * | 1990-09-07 | 1998-06-11 | 富士通株式会社 | 節/句境界抽出方式 |
| JP5146979B2 (ja) * | 2006-06-02 | 2013-02-20 | 株式会社国際電気通信基礎技術研究所 | 自然言語における多義解消装置及びコンピュータプログラム |
| JP2010152561A (ja) * | 2008-12-24 | 2010-07-08 | Toshiba Corp | 類似表現抽出装置、サーバ装置及びプログラム |
-
2016
- 2016-08-08 JP JP2016155722A patent/JP6720764B2/ja not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2018025874A (ja) | 2018-02-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6720764B2 (ja) | テキスト解析装置及びプログラム | |
| Arora et al. | Character level embedding with deep convolutional neural network for text normalization of unstructured data for Twitter sentiment analysis | |
| Khan et al. | A survey on the state-of-the-art machine learning models in the context of NLP | |
| Yang et al. | A joint sequential and relational model for frame-semantic parsing | |
| CN109325229B (zh) | 一种利用语义信息计算文本相似度的方法 | |
| Zhao et al. | ZYJ123@ DravidianLangTech-EACL2021: Offensive language identification based on XLM-RoBERTa with DPCNN | |
| CN108733653A (zh) | 一种基于融合词性和语义信息的Skip-gram模型的情感分析方法 | |
| WO2018028077A1 (zh) | 一种基于深度学习的中文语义分析的方法及装置 | |
| CN109598387A (zh) | 基于双向跨模态注意力网络模型的股价预测方法及系统 | |
| Shikali et al. | Enhancing African low-resource languages: Swahili data for language modelling | |
| CN110969023B (zh) | 文本相似度的确定方法及装置 | |
| Banik et al. | Gru based named entity recognition system for bangla online newspapers | |
| Xu et al. | Sentence segmentation for classical Chinese based on LSTM with radical embedding | |
| Wan et al. | A deep neural network model for coreference resolution in geological domain | |
| Svärd et al. | Semantic domains in Akkadian texts | |
| CN110287326A (zh) | 一种带背景描述的企业情感分析方法 | |
| CN114742034A (zh) | 基于句法依存的交易信息识别方法、装置、系统及介质 | |
| Elsherif et al. | Perspectives of arabic machine translation | |
| CN114417824B (zh) | 基于依存句法预训练模型的篇章级关系抽取方法及系统 | |
| Bach et al. | Exploiting discourse information to identify paraphrases | |
| Tran et al. | Inducing grammars with and for neural machine translation | |
| CN116741141A (zh) | 语音合成方法、语音合成装置、电子设备及存储介质 | |
| Agrawal et al. | Neural machine translation for english-Manipuri and English-Assamese | |
| Salman et al. | Breaking language barriers with image detection and natural language processing model for English to Spanish translation | |
| Hossain et al. | Bert-based text simplification approach to reduce linguistic complexity of bangla language |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190610 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20191108 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200107 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200305 |
|
| 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: 20200601 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6720764 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |