JP5510263B2 - Emoticon reading information estimation device, emoticon reading information estimation method, emoticon reading information estimation program, and information terminal - Google Patents
Emoticon reading information estimation device, emoticon reading information estimation method, emoticon reading information estimation program, and information terminal Download PDFInfo
- Publication number
- JP5510263B2 JP5510263B2 JP2010230985A JP2010230985A JP5510263B2 JP 5510263 B2 JP5510263 B2 JP 5510263B2 JP 2010230985 A JP2010230985 A JP 2010230985A JP 2010230985 A JP2010230985 A JP 2010230985A JP 5510263 B2 JP5510263 B2 JP 5510263B2
- Authority
- JP
- Japan
- Prior art keywords
- emoticon
- reading information
- dictionary
- unit
- input
- 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
Images
Landscapes
- Document Processing Apparatus (AREA)
Description
本件は、顔文字読み情報推定装置、顔文字読み情報推定方法、及び顔文字読み情報推定プログラム、並びに情報端末に関する。 The present invention relates to an emoticon reading information estimation device, an emoticon reading information estimation method, an emoticon reading information estimation program, and an information terminal.
音声合成の分野においては、複数の記号の組み合わせで表記される顔文字(『(^_^)』、『(T_T)』など)を、顔文字が表す意味として読み上げるための方法が検討・開発されてきている(例えば、特許文献1〜3参照)。これらの方法では、顔文字(『(^_^)』、『(T_T)』など)を「カッコ、ハット、アンダーバー…」というように記号として読み上げずに、「ニコリ」や「エーン」のように読み上げるようにする。なお、本明細書では、説明の便宜上、二重かぎ括弧『』に囲まれた文字列は、顔文字又は顔文字の構成部品を意味するものとする。すなわち、二重かぎ括弧『』は顔文字の一部を構成しないものとする。
In the field of speech synthesis, methods to examine and develop emoticons (“(^ _ ^)”, “(T_T)”, etc.) represented by combinations of multiple symbols as meanings represented by emoticons are being studied and developed. (For example, see
上記特許文献1では、複数の顔文字の表記と、これに対応する読みを予め辞書に登録しておき、当該辞書から顔文字の読みを検索することで、顔文字が表す意味を読み上げる技術が開示されている。また、特許文献2では、予め、顔文字の輪郭となる文字を輪郭記号表として定義しておき、輪郭記号を頼りに顔文字部分を検出し、輪郭内部に存在する特徴文字の数に応じて、読み方を決定する技術が開示されている。更に、特許文献3では、目の部品、口の部品というように、顔の部品毎に文字(記号)と意味を予め定義しておき、顔文字全体が表す意味を、部品の積み上げで解析する技術が開示されている。
In the above-mentioned
しかしながら、特許文献1では、予め辞書登録しておいた顔文字しか読み上げることができず、バリエーションが豊富な顔文字を読み上げることができない。また、特許文献2では、輪郭記号の全部又は一部が存在しない顔文字(『^_^;』、『´ω`)ノ』など)や輪郭記号が別の意味で用いられている顔文字(輪郭記号(丸括弧)が頬を表す『( ´)Д(` )』など)を読み上げることができない。
However, in
また、特許文献2及び3では、同じ記号が異なる顔のパーツとして用いられる場合(手と鼻として同じ記号が用いられる『( ゜∋゜)』や『∈(゜◎゜)∋』など)や、想定した顔部品が揃っていない場合(片方の目が存在しない『(´Д⊂グスン』など)は正しく読み上げることができない。
Also, in
そこで本件は上記の課題に鑑みてなされたものであり、多種多様な顔文字に対して、その意味を表す読み情報を精度良く推定することが可能な顔文字読み情報推定装置、顔文字読み情報推定方法、及び顔文字読み情報推定プログラムを提供することを目的とする。また、本件は、ユーザに対して顔文字の適切な読みを提供することが可能な情報端末を提供することを目的とする。 Therefore, the present case has been made in view of the above problems, and for emoticons reading information estimation device, emoticon reading information capable of accurately estimating reading information representing the meaning of various emoticons. An object is to provide an estimation method and an emoticon reading information estimation program. In addition, an object of the present invention is to provide an information terminal that can provide an appropriate reading of an emoticon to a user.
本明細書に記載の顔文字読み情報推定装置は、複数の記号で表された顔文字の読み情報を推定する顔文字読み情報推定装置であって、複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要記号と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を格納する格納部と、外部からの顔文字の入力を受け付ける受付部と、前記顔文字辞書に登録されている顔文字毎に、前記主要記号と前記受付部に入力された前記顔文字を表す複数の記号とを比較し、前記入力された顔文字を表す複数の記号全体における前記主要記号と同一の記号の割合を取得する取得部と、前記取得部で取得された割合に基づいて、前記入力された顔文字と、前記顔文字辞書に登録されている顔文字との類似度を算出する算出部と、前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み情報の中から、前記入力された顔文字の読み情報を推定する推定部と、を備える顔文字読み情報推定装置である。 The emoticon reading information estimation apparatus described in this specification is an emoticon reading information estimation apparatus that estimates reading information of an emoticon represented by a plurality of symbols. A storage unit for storing an emoticon dictionary in which at least one main symbol extracted in advance as a contribution to the meaning content of the emoticon and the reading information of the emoticon are associated and registered; For each emoticon registered in the emoticon dictionary and a reception unit that accepts an input of the emoticon from the main symbol and a plurality of symbols representing the emoticon input to the reception unit, An acquisition unit that acquires a ratio of the same symbol as the main symbol in all of a plurality of symbols that represent the input emoticon, the input emoticon based on the ratio acquired by the acquisition unit, Registered in the emoticon dictionary A calculation unit for calculating the similarity to the emoticon to be detected, and based on the similarity, the reading information of the inputted emoticon is estimated from the emoticon reading information registered in the emoticon dictionary An emoticon reading information estimation device comprising:
本明細書に記載の情報端末は、本明細書に記載の顔文字読み情報推定装置と、前記顔文字読み情報推定装置の前記推定部で推定された、前記入力された顔文字の読み情報を、文字データ又は音声として出力する出力装置と、を備える情報端末である。 The information terminal described in this specification includes the emoticon reading information estimation device described in this specification and the input emoticon reading information estimated by the estimation unit of the emoticon reading information estimation device. And an output device that outputs as character data or voice.
本明細書に記載の顔文字読み情報推定方法は、複数の記号で表された顔文字の読み情報をコンピュータを用いて推定する顔文字読み情報推定方法であって、外部からの顔文字の入力を受け付ける受付工程と、複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要記号と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を参照して、当該顔文字辞書に登録されている顔文字毎に、前記主要記号と前記入力された前記顔文字を表す複数の記号とを比較し、前記入力された顔文字を表す複数の記号全体における前記主要記号と同一の記号の割合を取得する取得工程と、前記取得工程で取得された割合に基づいて、前記入力された顔文字と、前記顔文字辞書に登録されている顔文字との類似度を算出する算出工程と、前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み情報の中から、前記入力された顔文字の読み情報を推定する推定工程と、をコンピュータが実行する顔文字読み情報推定方法である。 The emoticon reading information estimation method described in the present specification is an emoticon reading information estimation method for estimating emoticon reading information represented by a plurality of symbols using a computer, and inputs emoticons from the outside A reception step of accepting a message, at least one main symbol extracted in advance as a contribution to the meaning content of the emoticon from a plurality of symbols representing the emoticon, and the reading information of the emoticon With reference to the emoticon dictionary that is attached and registered, for each emoticon registered in the emoticon dictionary, the main symbol is compared with a plurality of symbols representing the input emoticon, An acquisition step of acquiring a ratio of the same symbol as the main symbol in a plurality of symbols representing the input emoticon, the input emoticon based on the ratio acquired in the acquisition step, and the face In the character dictionary A calculation step of calculating a similarity to the recorded emoticon, and reading of the input emoticon from the emoticon reading information registered in the emoticon dictionary based on the similarity An estimation method for estimating information, and a emoticon reading information estimation method executed by a computer.
本明細書に記載の顔文字読み情報推定プログラムは、コンピュータに、複数の記号で表された顔文字の読み情報を推定させる顔文字読み情報推定プログラムであって、コンピュータに、外部からの顔文字の入力を受け付ける受付工程、複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要記号と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を参照して、当該顔文字辞書に登録されている顔文字毎に、前記主要記号と前記入力された前記顔文字を表す複数の記号とを比較し、前記入力された顔文字を表す複数の記号全体における前記主要記号と同一の記号の割合を取得する取得工程、前記取得工程で取得された割合に基づいて、前記入力された顔文字と、前記顔文字辞書に登録されている顔文字との類似度を算出する算出工程、及び前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み情報の中から、前記入力された顔文字の読み情報を推定する推定工程、を実行させる顔文字読み情報推定プログラムである。 The emoticon reading information estimation program described in this specification is an emoticon reading information estimation program that causes a computer to estimate reading information of an emoticon represented by a plurality of symbols. The reception process of accepting the input of at least one main symbol extracted in advance as a contribution to the semantic content of the emoticon from a plurality of symbols representing the emoticon, and the reading information of the emoticon With reference to the emoticon dictionary registered in association with each other, for each emoticon registered in the emoticon dictionary, the main symbol is compared with a plurality of symbols representing the input emoticon, An acquisition step of acquiring a ratio of the same symbol as the main symbol in all of a plurality of symbols representing the input emoticon, and the input face sentence based on the ratio acquired in the acquisition step And a calculation step of calculating a similarity with the emoticon registered in the emoticon dictionary, and the reading information of the emoticon registered in the emoticon dictionary based on the similarity, An emoticon reading information estimation program that executes an estimation step of estimating input reading information of an emoticon.
本明細書に記載の顔文字読み情報推定装置、顔文字読み情報推定方法、及び顔文字読み情報推定プログラムは、多種多様な顔文字に対して、その意味を表す読み情報を精度良く推定することが可能なできるという効果を奏する。また、本明細書に記載の情報端末は、ユーザに対して顔文字の適切な読みを提供することができるという効果を奏する。 The emoticon reading information estimation device, emoticon reading information estimation method, and emoticon reading information estimation program described in this specification accurately estimate reading information representing the meaning of various types of emoticons. There is an effect that is possible. In addition, the information terminal described in the present specification has an effect that it is possible to provide an appropriate reading of the emoticon to the user.
以下、一実施形態について、図1〜図22に基づいて詳細に説明する。図1には、一実施形態に係る携帯電話100の構成がブロック図にて示されている。この図1に示すように、携帯電話100は、入力部52と、表示ディスプレイ54と、スピーカ56と、処理部50と、を備える。
Hereinafter, an embodiment will be described in detail with reference to FIGS. FIG. 1 is a block diagram showing a configuration of a
入力部52は、キーボードやタッチパネルなどを含み、ユーザが処理部50に対する指示を入力するためのインタフェースである。また、入力部52には通話等において用いるマイクや、メールやWebサイトのデータなど無線通信で送られてくるテキストを受け取る通信デバイスも含まれている。表示ディスプレイ54は、液晶ディスプレイや有機ELディスプレイなどを含み、処理部50による処理結果を表示する。スピーカ56は、通話相手の声などを出力するほか、処理部50の読み上げ機能による、メールやブラウザ内の文書の読み上げ音声を出力する。
The
処理部50は、一般的な携帯電話における各種処理(通話、メール、インターネット、カメラ撮影など)を行うとともに、文書の読み上げ処理を実行する。図2には、処理部50のハードウェア構成が示されている。この図2に示すように、処理部50は、CPU90、ROM92、RAM94、記憶部(ここでは一例としてHDD(Hard Disk Drive))96、入出力部97等を備えている。これら処理部50の構成各部は、バス98に接続されている。処理部50では、ROM92あるいはHDD96に格納されているプログラム(顔文字読み情報推定プログラムを含む)をCPU90が実行することにより、図3の各部の機能が実現される。また、入出力部97には、図1の入力部52、表示ディスプレイ54、及びスピーカ56等が接続されている。なお、上記においては、記憶部96としてHDDを採用しているが、これに限らず、耐衝撃性、省電力性の観点からSSD(Solid State Drive)を採用することとしても良い。
The
図3は、処理部50のうち、文書読み上げに関する機能を示した機能ブロック図である。この図3に示すように、処理部50は、顔文字読み情報推定装置としての言語解析部2、及び出力装置としての波形処理部3、として機能する。言語解析部2は、入力されたテキストや顔文字を解析して、その読み、アクセントなどを推定する。波形処理部3は、言語解析部2で解析された読みの情報から音声波形を生成する。
FIG. 3 is a functional block diagram showing functions related to reading a document in the
言語解析部2は、より詳細には、図3に示すように、テキスト入力受付部21、顔文字抽出部22、言語辞書格納部23、通常テキスト解析部24、格納部としての顔文字辞書格納部25、顔文字読み推定部26、読み出力部27を含む。
More specifically, as shown in FIG. 3, the
テキスト入力受付部21は、テキスト情報の入力を受け付け、顔文字抽出部22へテキスト文字列を出力する。なお、テキスト入力受付部21へのテキストの入力方法としては、キーボードからの直接入力方法や、有線又は無線ネットワークを介した通信による入力方法を採用することができる。また、テキスト入力受付部21に入力されるテキストは、CD(Compact Disc)やDVD(Digital Versatile Disc)などの記録メディアから取得してもよいし、スキャナを用いてスキャンした画像データをOCR(Optical Character Reader)処理して取得してもよい。更には、その他一般的なテキストの入力方法を、適宜採用することとしてもよい。
The text
顔文字抽出部22は、テキスト入力受付部21から出力されたテキスト文字列を受け付け、記号が二つ以上連続している部分を顔文字として抽出する。抽出された顔文字は顔文字読み推定部26へ出力され、顔文字ではない通常テキストは、通常テキスト解析部24へ出力される。
The
ここで、顔文字抽出部22の詳細について、顔文字抽出部22の構成図である図4に基づいて説明する。顔文字抽出部22は、入力バッファ221、文字判定部224、顔文字バッファ222、通常文字列バッファ223、及び出力部225を含んでいる。入力バッファ221にはテキスト入力受付部21から出力された入力テキストが格納される。文字判定部224は、入力テキスト中で記号が2文字以上連続している部分を顔文字と判定し、当該部分を顔文字バッファ222に格納する。また、文字判定部224は、顔文字以外の部分については通常文字列と判定し、通常文字列バッファ223に格納する。顔文字バッファ222には入力テキストから抽出された顔文字が格納され、通常文字列バッファ223には、入力テキスト中の顔文字以外の通常文字列が格納される。出力部225は、顔文字バッファ222に格納されている文字列を、顔文字読み推定部26に出力するとともに、通常文字列バッファ223に格納されている文字列を、通常テキスト解析部24に出力する。
Here, details of the
図3に戻り、通常テキスト解析部24は、言語辞書格納部23を参照して、テキストの読み・アクセントなどを決定し、読みとその他の韻律記号を読み出力部27に出力する。ここで、テキスト解析の処理としては、一般的に知られている形態素解析処理を用いることができる。また、出力形式としては、JEITA IT-4002に示される日本語テキスト音声合成用記号のカナレベルの表記を用いることができる。
Returning to FIG. 3, the normal
顔文字辞書格納部25には、図11に示すような顔文字辞書が格納されている。この図11に示すように、顔文字辞書には、「表記」と、読み情報としての「読み・アクセント」と、「主要部品」と、「従属部品」とが顔文字毎に通し番号(データNo.)が付与された状態で紐付けられて登録されている。
The emoticon
「表記」には、既知の顔文字全体の記号が登録されている。「読み・アクセント」には顔文字の意味を表す読みとアクセントを登録する。読みとアクセントは、例えばJEITA IT-4002に示される日本語テキスト音声合成用記号のカナレベルの表記により登録することができる。 In “notation”, symbols of all known emoticons are registered. In “Reading / Accent”, a reading and an accent representing the meaning of the emoticon are registered. Readings and accents can be registered by, for example, Kana level notation of Japanese text-to-speech synthesis symbols shown in JEITA IT-4002.
「主要部品」は、顔文字の意味を担う、すなわち、顔文字の意味内容に寄与する、として予め抽出された主要記号であり、例えば、同じ意味を表す既知の複数の顔文字間で重複している記号である。「従属部品」は、顔文字の意味との関係が薄い記号であり、主要部品以外の従属記号である。なお、連続する同一の記号は一つだけ登録するようにしてもよい。 The “main part” is a main symbol extracted in advance as being responsible for the meaning of the emoticon, i.e., contributing to the meaning content of the emoticon, for example, overlapping between a plurality of known emoticons representing the same meaning. It is a symbol. The “subordinate part” is a symbol having a thin relationship with the meaning of the emoticon and is a subordinate symbol other than the main part. Note that only one consecutive identical symbol may be registered.
例えば、「ワーイ」という意味の既知の顔文字が『\(^O^)/』『\(^^@)/』『\^o^/』の3つあったとする。これらに共通する記号は、『\』、左側の『^』、右側の『^』、『/』である。したがって、これら4つの記号が「ワーイ」の主要部品となる。そして、各顔文字から主要部品を除いたものが各顔文字の従属部品となる。すなわち、顔文字『\(^O^)/』であれば、その主要部品は『\^^/』、従属部品は『(O)』となる。また、顔文字『\(^^@)/』であれば、主要部品は『\^^/』、従属部品は『(@)』となる。更に、顔文字『\^o^/』であれば、主要部品は『\^^/』、従属部品は『o』となる。 For example, suppose that there are three known emoticons with the meaning of “Wai”: “\ (^ O ^) /” “\ (^^ @) /” “\ ^ o ^ /”. Symbols common to these are “\”, “^” on the left side, “^” on the right side, and “/”. Therefore, these four symbols are the main parts of “Wai”. Then, a part obtained by removing main parts from each emoticon becomes a subordinate part of each emoticon. That is, if the emoticon is “\ (^ O ^) /”, the main part is “\ ^^ /” and the subordinate part is “(O)”. If the emoticon is “\ (^^ @) /”, the main part is “\ ^^ /” and the subordinate part is “(@)”. Furthermore, if the emoticon is “\ ^ o ^ /”, the main part is “\ ^^ /” and the subordinate part is “o”.
なお、主要部品の抽出方法としては、同じ意味を表す既知の複数の顔文字のうちある一定数以上の顔文字間で共通する部品を主要部品としても良い。このようにすることで、より多くのバリエーションに対応できるようになる。 As a method for extracting main parts, a part common to a certain number of emoticons among a plurality of known emoticons representing the same meaning may be used as the main part. By doing so, it becomes possible to deal with more variations.
図3に戻り、顔文字読み推定部26は、入力された顔文字に対して、図11の顔文字辞書に登録されている顔文字との類似度を計算し、当該類似度に基づいて、入力された顔文字の読みを推定する。ただし、類似度が予め定められている閾値を超えない場合は、顔文字ではないと判定し、通常テキスト解析部24へ出力する。通常テキスト解析部24では、記号としての読みを解析する。
Returning to FIG. 3, the emoticon reading
ここで、顔文字読み推定部26は、図5に示すように、受付部としての顔文字入力受付部260と、取得部としての割合取得部261と、算出部としての類似度算出部262と、推定部としての読み推定部264と、を有する。顔文字入力受付部260は、顔文字抽出部22の出力部225から出力された顔文字の入力を受け付ける。割合取得部261は、主要部品対応付け部2611と、従属部品対応付け部2612とを有している。類似度算出部262は、割合取得部261から出力されたデータに基づいて、顔文字抽出部22から入力された顔文字と、顔文字辞書に登録されている各顔文字との類似度を算出する。読み推定部264は、類似度算出部262において算出された類似度に基づいて、顔文字抽出部22から入力された顔文字の読みを推定し、読み出力部27に対して出力する。ただし、類似度が予め定められている閾値を超えない場合は、顔文字ではないと判定し、顔文字入力受付部で受け付けたテキストを通常テキスト解析部24へ出力する。
Here, as shown in FIG. 5, the emoticon reading
読み出力部27は、通常テキスト解析部24から出力された通常テキストの読みと、顔文字読み推定部26から出力された顔文字の読みを順番につなぎ合わせ、最終的な読みとして、波形処理部3へ出力する。
The reading
波形処理部3は、韻律辞書格納部31と、波形辞書格納部32と、音声生成部33とを有する。韻律辞書格納部31には、イントネーションやリズムといった人間の喋り方の特徴を表すデータが登録された韻律辞書が格納されている。波形辞書格納部32には、人間の音声データそのもの又は音声データから抽出した音声特徴量が登録された波形辞書が格納されている。音声生成部33は、読み出力部27から入力されたテキストの読みと、韻律辞書及び波形辞書のデータから音声を生成する。なお、音声生成部33の音声生成の方法としては、コーパスベース音声合成方式や、フォルマント合成方式など公知の方法を採用することができる。
The
次に、図6〜図22に基づいて、処理部50におけるテキスト読み上げ処理について、詳細に説明する。まず、図6のステップS1では、テキスト入力受付部21が、前述した種々方法を用いて、入力テキストを取得する。次いで、ステップS2では、顔文字抽出部22が、テキスト入力受付部21から出力される入力テキストを取り込む。
Next, the text reading process in the
次いで、ステップS3のサブルーチンでは、顔文字抽出部22が、入力テキストから解析単位を抽出する処理を実行する。なお、解析単位とは、2文字以上の記号の文字列の連続区間、または、それ以外の文字列の連続区間を意味する。このステップS3においては、顔文字抽出部22は、図7に沿った処理を実行する。なお、図7の処理の説明では、一例として、図8(a)に示す「悲しい(´∩`。)」という入力テキストを、顔文字抽出部22が取り込んだものとする。
Next, in the subroutine of step S3, the
図7の処理では、まず、ステップS21において、文字判定部224が、入力バッファ221(図4参照)の先頭にポインタを設定する。具体的には、図8(a)に示すように、入力テキスト「悲しい(´∩`。)」のうち、文字「悲」の部分にポインタを設定する。
In the process of FIG. 7, first, in step S21, the
次いで、ステップS22では、文字判定部224が、ポインタが指す文字とその直後の文字が記号であるか否かを判断する。ここではポインタが指す文字「悲」と直後の文字「し」は、記号でないので、ステップS22の判断は否定されて、ステップS27に移行する。
Next, in step S22, the
ステップS27に移行すると、文字判定部224は、ポインタが指す文字を入力バッファ221から削除し、削除した文字を通常文字列バッファ223へ格納する。次いで、ステップS28では、文字判定部224が、入力バッファ221のポインタを1文字進める。そして、次のステップS29では、文字判定部224は、ポインタが入力バッファ221の最終文字を超えたか、あるいはポインタが指す文字とその直後の文字が共に記号であるか否かを判断する。ここでの判断が否定される場合には、ステップS22に戻る。なお、図8(a)の例では、図8(b)に示すように、「悲しい」の3文字が通常文字列バッファ223に格納されるまで、ステップS22、S27〜S29の処理・判断が繰り返される。そして、図8(b)に示すように、ポインタが指す文字が記号『(』であり、その直後の文字が『´』となった場合に、ステップS29の判断が肯定されて、ステップS30に移行する。
In step S27, the
ステップS30では、出力部225が、通常文字列バッファ223の内容を図3の通常テキスト解析部24に対して出力する(図8(c)参照)。そして、次のステップS31では、文字判定部224が、図8(d)に示すように、削除された入力バッファ221の文字分だけ、入力バッファ221のデータを左詰にする。その後、図6のステップS4に移行する。
In step S30, the output unit 225 outputs the contents of the normal
図6のステップS4では、顔文字抽出部22が、出力した文字列が、顔文字であるか否かを判断する。ここでは、出力部225が、通常文字列バッファ223の内容「悲しい」を図3の通常テキスト解析部24に対して出力したため、ステップS4の判断は否定され、ステップS6に移行する。ステップS6では、通常テキスト解析部24が、言語辞書格納部23に格納されている言語辞書に基づいて、テキストの読みを解析し、解析した読み情報を読み出力部27へ出力する。次いで、ステップS7では、読み出力部27が、読み情報を、読み出力部27が保有するバッファに、順に蓄積する。次いで、ステップS8では、顔文字抽出部22の文字判定部224が、入力バッファ221が空か否かを判断する。ここでは、まだ、テキスト『(´∩`。)』が入力バッファ221に残っているので、判断は否定されて、ステップS3(図7のステップS21)に戻る。
In step S4 in FIG. 6, the
図7のステップS21では、文字判定部224が、図9(a)に示すように、ポインタを入力バッファ221の先頭に設定する。そして、ステップS22では、文字判定部224が、ポインタが指す文字とその直後の文字が記号か否かを判断する。ここでは、ポインタが指す文字『(』とその直後の文字『´』がそれぞれ記号であるので、判断は肯定されて、ステップS23に移行する。
In step S21 of FIG. 7, the
ステップS23では、文字判定部224が、ポインタが指す文字を入力バッファ221から削除し、削除した文字を顔文字バッファ222へ格納する。次いで、ステップS24では、文字判定部224が、入力バッファ221のポインタを1文字進める。そして、次のステップS25では、文字判定部224が、ポインタが入力バッファの最終文字を超えたか、或いはポインタが指す文字が記号以外であるか否かを判断する。ここでの判断が否定されると、ステップS23に戻る。その後、ステップS23〜S25を繰り返し、ポインタが入力バッファの最終文字を超えた段階(図9(b)参照)で、ステップS26に移行する。
In step S <b> 23, the
ステップS26では、出力部225が、顔文字バッファ222の内容を、顔文字読み推定部26に対して出力する(図9(c)参照)。次いで、ステップS31では、文字判定部224が、削除された入力バッファの文字分入力バッファ221のデータを左詰にする。なお、図9(d)では、入力バッファ221には、データは存在していない。その後、図6のステップS4に移行する。
In step S26, the output unit 225 outputs the contents of the
図6のステップS4では、顔文字抽出部22が、出力した文字列が、顔文字であるか否かを判断する。ここでの判断が肯定されると、ステップS5に移行する。ここでは、出力部225が、通常文字列バッファ222の内容『(´∩`。)』を顔文字読み推定部26に対して出力したため、ステップS4の判断が肯定され、ステップS5に進む。ステップS5では、顔文字読み推定部26が、顔文字読み推定処理のサブルーチンを実行する。具体的には、ステップS5では、顔文字読み推定部26が、図10の処理を実行する。
In step S4 in FIG. 6, the
ここでは、前述のように、顔文字読み推定部26の顔文字入力受付部260には、顔文字として、図9等に示す顔文字『(´∩`。)』が入力されているものとする。なお、この顔文字は、「グスン」という読みであるものとする。しかるに、図11に示す顔文字辞書には、『(´∩`。)』と同一の表記は登録されていないため、入力された顔文字は「未知の顔文字」となる。
Here, as described above, the emoticon
図10では、まず、ステップS61において、割合取得部261が、データ番号を表す変数Nを作成し、当該変数の初期値として1を設定する。次いで、ステップS62では、割合取得部261が、顔文字辞書(図11参照)からN番目(ここでは、1番目)のデータを取得する。この場合、割合取得部261は、図11のうち、データNo.が1のデータ(表記が『(^―^)』のデータ)を取得する。
In FIG. 10, first, in step S <b> 61, the
次いで、ステップS63では、主要部品対応付け部2611が、取り出したデータNo.1の主要部品『^ ^』それぞれに対して部品番号を設定する。なお、主要部品の部品番号としては、main(主要な)の頭文字Mと通し番号の組み合わせの文字列を設定するものとする。主要部品『^ ^』であれば、主要部品対応付け部2611は、左側の『^』にM1、右側の『^』にM2を設定する。
Next, in step S63, the main
次いで、ステップS64では、主要部品対応付け部2611が、入力された顔文字『(´∩`。)』の中に、顔文字辞書から取り出した主要部品と一致する記号が存在するかの対応付けを行う。そして、主要部品対応付け部2611は、対応付け結果(一致する部品番号)を、顔文字辞書の主要部品数とともに、類似度算出部262に対して出力する。ここでは、M1=『^』、M2=『^』であり主要部品数は2であるが、M1、M2と一致する部品は、未知の顔文字に含まれていないので、主要部品対応付け部2611は、対応付け結果として、空文字を出力する(図12の「データNo.」1の行と「主要部品対応付け結果」の列、「辞書主要部品数」の列の交わるセルのデータ参照)。なお、一致する対応づけが存在する場合は、主要部品対応付け部2611は、対応付け結果として、一致する部品番号と部品表記を類似度算出部262に対して出力する。
Next, in step S64, the main
次いで、ステップS65では、従属部品対応付け部2612が、取り出したデータNo.1の従属部品「( ― )」に対して部品番号を設定する。従属部品の部品番号としては、subsidiary(従属的な)の頭文字Sと通し番号の組み合わせの文字列を設定するものとする。ここでは、従属部品対応付け部2612は、最初の部品『(』をS1、真ん中の部品『―』をS2、最後の部品『)』をS3と設定する。
Next, in step S65, the dependent
次いで、ステップS66では、従属部品対応付け部2612が、入力された未知の顔文字『(´∩`。)』の中に、顔文字辞書から取り出した従属部品と一致する記号が存在するかの対応付けを行う。そして、従属部品対応付け部2612は、対応付けの結果として、一致する部品番号と部品表記を類似度算出部262に対して出力する。ここでは、S1=『()、s2=『―』、s3=『)』であり、S1、S3が入力された未知の顔文字の部品と一致するため、対応付け結果としては、S1(とS3)を出力する(図12の「データNo.」1の行と「従属部品対応付け結果」の列の交わるセルのデータ参照)。
Next, in step S66, the dependent
次いで、ステップS67では、割合取得部261は、データ番号Nを1増やす(N←N+1)。そして、ステップS68では、Nが顔文字辞書のデータ数を超えたか否かを判断する。ここでの判断が否定された場合には、ステップS62に戻り、上記と同様の処理を、顔文字辞書のデータNo.=Nの顔文字に対して、実行する。その後、ステップS68の判断が肯定されると、ステップS69Aに移行する。なお、ステップS69Aに移行した段階において、類似度算出部262に出力された対応付け結果は、図12のようなデータであるものとする。
Next, in step S67, the
ステップS69Aでは、類似度算出部262が、仮の類似度を計算する。この場合、類似度算出部262は、図12の全データに対して、主要部品として対応付けられた部品の数を、顔文字辞書の主要部品数で除した値を仮の類似度として計算する。そして、ステップS69Bでは、類似度算出部262が、仮の類似度がある閾値(第1の閾値)以上であるデータ番号を抽出する。例えば、図12の対応付結果の場合、データNo.1、No.2は、主要部品として対応づけられた部品数が0なので、仮の類似度は、0%となる。一方、データNo.3は、主要部品対応付け結果が3であり、辞書主要部品数が3であるので、仮の類似度は100%(=3/3×100)となる。更に、データNo.4は、主要部品対応付け結果が3であり、辞書主要部品数が5であるので、仮の類似度は60%(=3/5×100)となる。ここで、例えば、ステップS69Bで用いられる閾値(第1の閾値)が「60%」であるとすると、当該閾値以上の仮の類似度を有するデータNo.3とデータNo.4が、類似度算出部262において抽出されることになる。
In step S69A, the
次いで、ステップS69Cでは、類似度算出部262が、顔文字番号を表す変数Kを作成し、当該変数の初期値として1を設定する。次いで、ステップS70では、類似度算出部262が、抽出した顔文字のうち、K番目(ここでは1番目)の顔文字(ここでは、データNo.3の顔文字)の部品番号並びを求めるサブルーチンを実行する。ステップS70では、具体的には、類似度算出部262が、図13のフローチャートに沿った処理を実行する。
Next, in step S69C, the
図13の処理では、まず、ステップS7001において、類似度算出部262が、辞書表記ポインタを辞書表記の先頭に設定する(以降、辞書の各種データを指すポインタは、直接、顔文字辞書格納部25が配置されているメモリ上の位置を指すようにしても、顔文字辞書格納部25のデータを一旦RAMやキャッシュ等に読み込んだ後のRAMやキャッシュ上の対応する位置を指すようにしても、実装に都合のよい方法を採用すればよい)。具体的には、類似度算出部262は、辞書表記ポインタを顔文字『(´_`。)』の『(』の部分に合わせる(図14の1回目の1段目参照)。次いで、ステップS7002では、類似度算出部262が、主要部品ポインタを主要部品の先頭に設定し、主要部品番号を格納する変数を作成し、1に設定する。具体的には、類似度算出部262は、主要部品ポインタを主要部品『 ´ ` 。 』のうち、『´』に合わせる(図14の1回目の1段目参照)。次いで、ステップS7003では、類似度算出部262が、従属部品ポインタを従属部品の先頭に設定し、従属部品番号を格納する変数を作成し、1に設定する。具体的には類似度算出部262は、従属部品ポインタを従属部品『 ( _ ) 』のうち、『(』に設定する(図14の1回目の1段目参照)。
In the process of FIG. 13, first, in step S7001, the
次いで、ステップS7004では、類似度算出部262が、辞書表記ポインタと主要部品ポインタの指す記号が一致しているか否かを判断する。ここでは、図14の1回目の1段目に示すように、両者は一致していないので、判断が否定され、ステップS7007に移行する。ステップS7007では、類似度算出部262が、辞書表記ポインタと従属部品ポインタの指す記号が一致しているか否かを判断する。ここでは、図14の1回目の1段目に示すように、両者は一致しているので、判断は肯定され、ステップS7008に移行する。
Next, in step S7004, the
ステップS7008では、類似度算出部262が、従属部品を表す頭文字Sと従属部品番号(S1)を類似度算出部262が有する出力バッファに出力する。そして、次のステップS7009では、類似度算出部262が、従属部品ポインタを次の記号へ進め、従属部品番号に1を加算する(従属部品番号=2)。このステップS7008、S7009の結果が、図14の1回目の2段目に示されている。
In step S7008, the
次いで、ステップS7010では、類似度算出部262が、辞書表記ポインタを次の記号へ進める。この結果が、図14の1回目の3段目に示されている。
Next, in step S7010, the
次いで、ステップS7011では、類似度算出部262が、辞書表記ポインタが記号を指していないか否かを判断する。ここでは、辞書表記ポインタが記号を指しているので、判断は否定され、ステップS7004に戻る。
Next, in step S7011, the
次に、繰り返しの2回目について説明する。繰り返しの2回目では、図14の2回目の1段目に示すように、辞書表記ポインタと主要部品ポインタの指す記号『´』が一致しているので、ステップS7004の判断が肯定され、ステップS7005に移行する。ステップS7005に移行すると、類似度算出部262が、図14の2回目の2段目に示すように、主要部品を表す頭文字Mと主要部品番号(M1)を類似度算出部262が有する出力バッファに出力する。
Next, the second repetition will be described. In the second repetition, as shown in the first row of the second time in FIG. 14, the symbol “′” pointed to by the dictionary notation pointer and the main part pointer matches, so the determination in step S7004 is affirmed, and step S7005 Migrate to In step S7005, the
次いで、ステップS7006では、類似度算出部262が、図14の2回目の3段目に示すように、主要部品ポインタを次の記号『`』に進め、主要部品番号に1を加算する(主要部品番号=2)。次いで、ステップS7010では、類似度算出部262が、辞書表記ポインタを次の記号『_』へ進める。次いで、ステップS7011では、類似度算出部262が、辞書表記ポインタが記号を指していないか否かを判断する。ここでは、辞書表記ポインタが記号を指しているので、判断は否定され、ステップS7004に戻る。
Next, in step S7006, the
以降は、繰り返しの3回目から6回目まで行うことで、辞書表記『(´_`。)』の並びを、主要部品番号と従属部品番号の並び(S1,M1,S2,M2,M3,S3)で表すことができる(図14の最下段参照)。なお、図11の顔文字辞書の表記の代わりに、主要部品番号と従属部品番号の並びが定義されている場合には、ステップS70の処理を省略することとしてもよい。 Thereafter, by repeating the third to sixth iterations, the sequence of the dictionary notation “(′ _ `.)” Is changed to the sequence of the main part number and the subordinate part number (S1, M1, S2, M2, M3, S3). ) (See the bottom row in FIG. 14). Note that if the arrangement of the main part number and the subordinate part number is defined instead of the emoticon dictionary notation in FIG. 11, the process of step S70 may be omitted.
以上のようにして、図13の全処理が終了すると、図10のステップS71に移行する。ステップS71のサブルーチンでは、類似度算出部262が、未知の顔文字の部品番号並びを求める処理を実行する。このステップS71では、類似度算出部262が、図15のフローチャートに沿った処理を実行する。
As described above, when all the processes in FIG. 13 are completed, the process proceeds to step S71 in FIG. In the subroutine of step S71, the
図15の処理では、ステップS7101において、類似度算出部262が、未知表記ポインタを未知の顔文字の先頭に設定する。具体的には、類似度算出部262は、未知表記ポインタを顔文字入力受付部260に入力された顔文字列『(´∩`。)』の『(』の部分に合わせる。次いで、ステップS7102では、類似度算出部262が、主要部品ポインタを主要部品対応付け結果の先頭に設定する。なお、主要部品対応付け結果は、図16に示すように、主要部品番号と部品とを対応付けた状態(M1´M2`M3。)で示される。したがって、ステップS7102では、主要部品ポインタが、「M1´」に設定される(図16の1回目の1段目参照)。
In the process of FIG. 15, in step S7101, the
次いで、ステップS7103では、類似度算出部262が、従属部品ポインタを従属部品対応付け結果の先頭に設定する。なお、従属部品対応付け結果は、図16に示すように、従属部品番号と部品とを対応付けた状態(「S1(S3)」)で示される。したがって、ステップS7103では、主要部品ポインタが、「S1(」に設定される(図16の1回目の1段目参照)。
Next, in step S7103, the
次いで、ステップS7004では、類似度算出部262が、未知表記ポインタと主要部品ポインタの指す記号が一致しているか否かを判断する。ここでは、図16の1回目の1段目に示すように、一致していないので、判断が否定され、ステップS7107に移行する。ステップS7107では、類似度算出部262が、未知表記ポインタと従属部品ポインタの指す記号が一致しているか否かを判断する。ここでは、図16の1回目の1段目に示すように、一致しているので、判断は肯定され、ステップS7108に移行する。
Next, in step S7004, the
ステップS7108では、類似度算出部262が、従属部品を表す頭文字Sと従属部品番号(S1)を類似度算出部262が有する出力バッファに出力する。そして、次のステップS7109では、類似度算出部262が、従属部品ポインタを次の記号へ進める。このステップS7108、S7109の結果が、図16の1回目の2段目に示されている。
In step S7108, the
次いで、ステップS7110では、類似度算出部262が、未知表記ポインタを次の記号へ進める。この結果が、図16の1回目の3段目に示されている。
Next, in step S7110, the
次いで、ステップS7111では、類似度算出部262が、未知表記ポインタが記号を指していないか否かを判断する。ここでは、未知表記ポインタが記号を指しているので、判断は否定され、ステップS7104に戻る。
Next, in step S7111, the
次に、繰り返しの2回目について説明する。繰り返しの2回目では、図16の2回目の1段目に示すように、未知表記ポインタと主要部品ポインタの指す記号『´』が一致しているので、ステップS7104の判断が肯定され、ステップS7105に移行する。ステップS7105に移行すると、類似度算出部262が、図16の2回目の2段目に示すように、主要部品を表す頭文字Mと主要部品番号(M1)を類似度算出部262が有する出力バッファに出力する。
Next, the second repetition will be described. In the second repetition, as shown in the first row of the second time in FIG. 16, since the unknown notation pointer and the symbol “′” pointed to by the main part pointer match, the determination in step S7104 is affirmed, and step S7105 is performed. Migrate to In step S7105, the
次いで、ステップS7106では、類似度算出部262が、図16の2回目の3段目に示すように、主要部品ポインタを次の記号『M2`』に進める。次いで、ステップS7110では、類似度算出部262が、未知表記ポインタを次の記号『∩』へ進める。次いで、ステップS7111では、類似度算出部262が、未知表記ポインタが記号を指していないか否かを判断する。ここでは、未知表記ポインタが記号を指しているので、判断は否定され、ステップS7104に戻る。
Next, in step S7106, the
以降は、繰り返しの3回目から6回目までを行うことで、入力された未知の顔文字表記『(´∩`。)』の並びを、主要部品番号と従属部品番号の並び(S1,M1,M2,M3,S3)で表すことができる。すなわち、ステップS70、S71の処理により、類似度算出部262は、図17のデータNo.3に示すように、辞書部品順序と、未知顔文字対応付け順序と、を得ることができる。
Thereafter, by repeating the third to sixth iterations, the sequence of the input unknown emoticon expression “(′ ∩ `.)” Is changed to the sequence of the main part number and the subordinate part number (S1, M1, M2, M3, S3). That is, by the processing of steps S70 and S71, the
以上のようにして、図15の全処理が終了すると、図10のステップS72に移行する。ステップS72のサブルーチンでは、類似度算出部262が、部品並びの検証についての処理を実行する。このステップS72では、類似度算出部262が、図18のフローチャートに沿った処理を実行する。なお、ここでは、処理の順番として、最初にデータNo.3の顔文字を用いて部品並びの検証を行うところではあるが、説明の便宜上、図17の2段目に記載されているデータNo.4を用いて、図18の処理について説明するものとする。
When all the processes in FIG. 15 are completed as described above, the process proceeds to step S72 in FIG. In the subroutine of step S72, the
図18の処理では、まず、ステップS7201において、類似度算出部262が、対応結果ポインタAを未知顔文字対応付け順序の先頭に設定する。また、ステップS7202では、類似度算出部262が、辞書部品ポインタXを辞書部品順序の先頭に設定する。この段階でのポインタの状態が、図19の1段目に示されている。
In the process of FIG. 18, first, in step S7201, the
次いで、ステップS7203では、類似度算出部262は、対応結果ポインタAと辞書部品ポインタXの指す部品が一致するか否かを判断する。ここでは、図19の1段目に示すように、一致しているので、判断が肯定されてステップS7205に移行する。なお、ステップS7203の判断が否定される場合には、ステップS7204において、類似度算出部262が、辞書部品ポインタXを次の部品に進めた後、再度ステップS7203に戻る。
Next, in step S7203, the
ステップS7205では、類似度算出部262が、検証用対応結果ポインタBを現在の対応結果ポインタAの次の部品に設定する。次いで、ステップS7206では、類似度算出部262が、検証用対応結果ポインタBが最終部品を超えたか否かを判断する。ここでの判断が肯定された場合は、これ以上検証すべき記号は存在しないことを示すため、図18の処理は終了する。ステップS7206の判断が否定されると、ステップS7207に移行する。今、図19の2段目に示されるように、検証用対応結果ポインタBはまだ最終部品を超えていないため、ステップS7206での判断は否定されステップS7207へ進む。ステップS7207では、検証用辞書部品ポインタYを現在の辞書部品ポインタX直後の部品に設定する。ステップS7205、S7207の結果、各ポインタは、図19の2段目のようになる。次いで、ステップS7208では、類似度算出部262が、ポインタYが辞書並びの最終部品を超えたか否かを判断する。今、図19の2段目に示されるように、検証用辞書部品ポインタYはまだ辞書並びの最終部品を超えていないため、ステップS7208での判断は否定される。ここでの判断が否定されると、ステップS7210に移行し、類似度算出部262は、ポインタBとYの指す部品が一致するか否かを判断する。ここでは、図19の2段目に示すように、両者は一致しているので、判断は肯定され、ステップS7212に移行する。ステップS7212では、類似度算出部262が、ポインタBを次の部品に設定する。このステップS7212の処理を経た状態が、図19の3段目に示されている。
In step S7205, the
次いで、ステップS7213では、類似度算出部262が、ポインタBが最終部品を超えたか否かを判断する。ここでは、超えていないので、判断は否定され、ステップS7207に戻る。
Next, in step S7213, the
ステップS7207に戻ると、類似度算出部262は、ポインタYをXの次の部品に設定し(図19の4段目の状態)、ステップS7208、S7210の判断の後に、ステップS7211において、ポインタYを次の部品に設定する(図19の5段目の状態)。そして、再度、ステップS7208、S7210の判断の後に、ステップS7211においてポインタYを次の部品に設定する(図19の6段目の状態)。そして、再度、ステップS7208、S7210の判断の後には、S7210の判断が肯定されるため、ステップS7212に移行する。ステップS7212では、類似度算出部262は、ポインタBを次の部品に設定する(図19の7段目)。
Returning to step S7207, the
このように、ステップS7207〜S7213のループを経ることで、対応付け結果のうち、ポインタAが設定されている部品の右側に存在している部品が、辞書並びのうち、ポインタXが設定されている部品の右側に存在しているか否かを確認することができる。なお、この処理は、図20、図21、図22に示すように、ポインタA、Xを適宜右方向にシフトしながら、全ての組み合わせについて確認することになる。 As described above, through the loop of steps S7207 to S7213, the part that exists on the right side of the part for which the pointer A is set in the association result is that the pointer X is set in the dictionary list. It can be confirmed whether or not it exists on the right side of the part. In this process, as shown in FIGS. 20, 21, and 22, all the combinations are confirmed while the pointers A and X are appropriately shifted in the right direction.
ここで、図22の8段目に示すように、ポインタA,XがM3に設定されているときに、ポインタAの右側に存在しているS3は、辞書並びのポインタXの右側には存在していない。このため、ポインタYが辞書並びの最終部品を越えた時点で、ステップS7209に移行することになる。 Here, as shown in the eighth row of FIG. 22, when the pointers A and X are set to M3, S3 existing on the right side of the pointer A exists on the right side of the pointer X in the dictionary list. Not done. For this reason, when the pointer Y exceeds the final part of the dictionary, the process proceeds to step S7209.
ステップS7209に移行した場合、類似度算出部262が、ペナルティ回数をカウントする。なお、ペナルティ回数は、辞書部品順序と未知顔文字対応付け順序との矛盾箇所の数を表している。そして、上記のようにステップS7209が行われた後も、ステップS7214においてポインタAを次の部品に設定しつつ、上記と同様の処理を繰り返し、ポインタAが最終部品を越えた時点(ステップS7215が肯定された時点)で、図18の全処理を終了して、図10のステップS73に移行する。なお、図17の1段目に記載されているデータNo.3の顔文字の場合には、ステップS7208の判断が1度も肯定されることなく、すなわち、1度もステップS7209を経ることなく、図18の全処理を終了する。
When the process proceeds to step S7209, the
図10のステップS73に移行すると、類似度算出部262は、ペナルティ計算を行う。具体的には、類似度算出部262は、ペナルティ回数(すなわちステップS7209の処理が行われた回数=矛盾箇所の個数)に応じたペナルティ値を算出する。すなわち、類似度算出部262は、例えば、ペナルティ値の基準値として1/2が予め設定されている場合において、ペナルティ回数がmであれば、ペナルティ値を、
ペナルティ値=(1/2)m …(1)
の式から算出する。例えば、図17のデータNo.3の顔文字の場合には、ペナルティ回数が0であるので、ペナルティ値は、(1/2)0=1となる。また、図17のデータNo.4の顔文字の場合には、ペナルティ回数が1であるので、ペナルティ値は、(1/2)1=1/2となる。更に、ペナルティ回数が2であれば、ペナルティ値は、(1/2)2=1/4となる。
When the process proceeds to step S73 in FIG. 10, the
Penalty value = (1/2) m (1)
It is calculated from the formula of For example, data No. 1 in FIG. In the case of an emoticon of 3, the penalty count is 0, so the penalty value is (1/2) 0 = 1. In addition, data No. 1 in FIG. In the case of 4 emoticons, the penalty count is 1, so the penalty value is (1/2) 1 = 1/2. Further, if the penalty count is 2, the penalty value is (1/2) 2 = ¼.
次いで、ステップS74では、Kを1増加する。そして、ステップS75において、Kが、ステップS69Bで抽出された顔文字の数を超えるまで、すなわち、抽出された顔文字の全てについてのペナルティ計算が終了するまで、ステップS70〜S75の処理・判断を繰り返す。 Next, in step S74, K is incremented by one. In step S75, the processes and determinations in steps S70 to S75 are performed until K exceeds the number of emoticons extracted in step S69B, that is, until the penalty calculation for all of the extracted emoticons is completed. repeat.
ステップS75の判断が肯定されると、類似度算出部262は、ステップS76Aにおいて類似度を計算する。具体的には、類似度算出部262は、ステップS69Aで算出された仮の類似度と、ステップS73で算出されたペナルティ値の積から類似度を算出する。ここでは、図17に示すデータNo.3の顔文字の類似度が、仮の類似度(100%)×ペナルティ値(1)=100%となる。また、図17に示すデータNo.4の顔文字の類似度が、仮の類似度(60%)×ペナルティ値(1/2)=30%となる。
If the determination in step S75 is affirmative, the
そして、ステップS76Bでは、読み推定部264が、ある閾値(第2の閾値)よりも大きい類似度があるか否かを判断する。ここでの判断が否定された場合には、顔文字ではないと判断して、通常テキスト解析部24へ文字列を出力する、すなわち、図6のステップS6に移行する。一方、ここでの判断が肯定された場合には、ステップS77に移行し、読み推定部264が、類似度が閾値よりも大きい顔文字の読み・アクセントを、図11の顔文字辞書から取得し、読み出力部27の内蔵バッファに出力する。この場合、閾値よりも類似度が大きい顔文字が複数ある場合には、それら複数の顔文字の読み・アクセントを全て取得し、連続して出力するようにする。このようにすることで、より意味の伝わる読み上げが可能となる。なお、ここでは、顔文字の読み・アクセントとして、「グス’ン」が出力されたものとする。
In step S76B, the reading
なお、ステップS77では、読み推定部264が、類似度が最も大きい顔文字辞書中の顔文字の読み・アクセントを取得するようにしてもよい。
In step S77, the reading
以上のようにして、図10の全処理(ステップS5)が終了すると、図6のステップS7に移行する。ステップS7では、読み出力部267が、図10の処理を経て取得された顔文字の読みを、バッファに順に蓄積する。 As described above, when all the processes (step S5) in FIG. 10 are completed, the process proceeds to step S7 in FIG. In step S7, the reading output unit 267 sequentially accumulates the readings of emoticons acquired through the processing of FIG.
次いで、ステップS8では、文字判定部224が、入力バッファ221が空か否かを判断する。ここでの判断が肯定されると、ステップS9に移行し、読み出力部27が、バッファに蓄積していた読みを音声生成部33に出力する。
Next, in step S8, the
そして、ステップS10では、音声生成部33が、蓄積していた読みを繋げて、音声(「悲しいグス’ン」)を生成し、図1のスピーカ56から出力する。このように本実施形態では、顔文字辞書に登録されていない顔文字についても、その読みを推定して読み上げることが可能である。
In step S10, the
以上、詳細に説明したように、本実施形態によると、顔文字辞書格納部25が、複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要部品と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を格納しており、顔文字読み推定部26(割合取得部261)は、顔文字辞書に登録されている顔文字毎に、主要部品と、顔文字入力受付部260が入力を受け付けた顔文字の部品とを比較し、入力された顔文字全体における、主要部品と同一の部品の割合を取得する。そして、類似度算出部262は、当該割合に基づいて、入力された顔文字と、顔文字辞書に登録されている顔文字との類似度を算出し、読み推定部264が、当該類似度に基づいて、顔文字辞書に登録されている顔文字の読み・アクセントの中から、入力された顔文字の読み・アクセントを推定する。このように、顔文字辞書に登録されている顔文字のうち、入力された顔文字の部品と主要部品が共通する割合が高い顔文字の読み・アクセントを、入力された顔文字の読み・アクセントとして推定することで、入力された顔文字が、顔文字辞書に登録されていない場合であっても、その意味を表す読み・アクセントを精度良く推定することができる。これにより、多種多様な顔文字の読み・アクセントを精度良く推定することができる。
As described above in detail, according to the present embodiment, the emoticon
また、本実施形態では、顔文字辞書には、主要部品とともに、主要部品以外の記号である従属部品も登録されており、類似度算出部262は、顔文字辞書から上記割合(仮の類似度)が所定の閾値(第1の閾値)以上である顔文字を抽出するとともに、当該抽出された顔文字の主要部品及び従属部品の並び順と、入力された顔文字の主要部品と同一の部品及び従属記号と同一の部品の並び順との矛盾箇所の数(ペナルティ回数)を算出し、当該ペナルティ回数と、仮の類似度とに基づいて、類似度を算出する。すなわち、顔文字辞書に登録されている顔文字のうち、2つの条件(入力された顔文字の部品と主要部品が共通する割合が高く、かつ、主要部品と従属部品の並び順が入力された顔文字の部品の並び順と近い)を満たす顔文字の読み・アクセントを、入力された顔文字の読み・アクセントとして推定する。したがって、入力された顔文字が、顔文字辞書に登録されていない場合であっても、その意味を表す読み・アクセントをより精度良く推定することができる。
In the present embodiment, the emoticon dictionary also includes subcomponents, which are symbols other than the main components, in addition to the main components, and the
なお、上記実施形態では、図7の顔文字辞書に、読み・アクセントが登録されている場合について説明したが、これに限られるものではない。例えば、読みのみが登録されていてもよい。また、上記実施形態では、顔文字の読みを、音声にてスピーカ56から出力する場合について説明した。しかしながら、これに限らず、顔文字の読みを文字データで出力、すなわち、例えば、顔文字を意味内容を示すテキストに置換して、表示ディスプレイ54に表示することとしても良い。
In the above embodiment, the case where readings / accents are registered in the emoticon dictionary of FIG. 7 has been described, but the present invention is not limited to this. For example, only reading may be registered. Further, in the above-described embodiment, the case where emoticon reading is output from the
また、上記実施形態では、携帯電話100の内部で、入力テキスト(顔文字を含む)の読みを推定し、音声を生成する場合について説明したが、これに限られるものではない。例えば、携帯電話100と接続されているサーバに対して、携帯電話100に入力されたテキストを送信し、サーバにおいて、入力テキスト(顔文字を含む)の読みを推定することとしてもよい。この場合、サーバが推定結果を携帯電話100に送信することで、携帯電話100では、上記実施形態と同様、入力テキストの音声を出力することが可能となる(ASP(Application Service Provider))。かかる場合には、携帯電話100に、顔文字の読みを推定する構成などを設ける必要がなくなるため、携帯電話100の簡素化を図ることが可能となる。
Moreover, although the said embodiment demonstrated the case where the reading of input text (an emoticon was included) was estimated and the audio | voice was produced | generated inside the
なお、上記の処理機能は、コンピュータによって実現することができる。その場合、処理装置が有すべき機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。 The above processing functions can be realized by a computer. In that case, a program describing the processing contents of the functions that the processing apparatus should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium.
プログラムを流通させる場合には、例えば、そのプログラムが記録されたDVD(Digital Versatile Disc)、CD−ROM(Compact Disc Read Only Memory)などの可搬型記録媒体の形態で販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。 When the program is distributed, for example, it is sold in the form of a portable recording medium such as a DVD (Digital Versatile Disc) or a CD-ROM (Compact Disc Read Only Memory) on which the program is recorded. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.
プログラムを実行するコンピュータは、例えば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送されるごとに、逐次、受け取ったプログラムに従った処理を実行することもできる。 The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.
上述した実施形態は本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施可能である。 The above-described embodiment is an example of a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention.
2 言語解析部(顔文字読み情報推定装置)
3 波形処理部(出力装置)
25 顔文字辞書格納部(格納部)
260 顔文字入力受付部(受付部)
261 割合取得部(取得部)
262 類似度算出部(算出部)
264 読み推定部(推定部)
2 Language analysis unit (emoticon reading information estimation device)
3 Waveform processing unit (output device)
25 Emoticon dictionary storage (storage)
260 emoticon input reception part (reception part)
261 Ratio acquisition unit (acquisition unit)
262 similarity calculation unit (calculation unit)
H.264 Reading Estimator (Estimator)
Claims (8)
複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要記号と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を格納する格納部と、
外部からの顔文字の入力を受け付ける受付部と、
前記顔文字辞書に登録されている顔文字毎に、前記主要記号と前記受付部に入力された前記顔文字を表す複数の記号とを比較し、前記入力された顔文字を表す複数の記号全体における前記主要記号と同一の記号の割合を取得する取得部と、
前記取得部で取得された割合に基づいて、前記入力された顔文字と、前記顔文字辞書に登録されている顔文字との類似度を算出する算出部と、
前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み情報の中から、前記入力された顔文字の読み情報を推定する推定部と、を備える顔文字読み情報推定装置。 An emoticon reading information estimation device that estimates emoticon reading information represented by a plurality of symbols,
Regarding a plurality of emoticons, at least one main symbol extracted in advance as contributing to the meaning content of the emoticon from a plurality of symbols representing the emoticon and the reading information of the emoticon are registered in association with each other A storage unit for storing the emoticon dictionary;
A reception unit that accepts input of emoticons from outside,
For each emoticon registered in the emoticon dictionary, the main symbol is compared with a plurality of symbols representing the emoticon input to the receiving unit, and a plurality of all symbols representing the inputted emoticon An acquisition unit for acquiring a proportion of the same symbol as the main symbol in
Based on the ratio acquired by the acquisition unit, a calculation unit that calculates the similarity between the input emoticon and the emoticon registered in the emoticon dictionary;
An emoticon reading information estimation device comprising: an estimation unit that estimates the input emoticon reading information from emoticon reading information registered in the emoticon dictionary based on the similarity.
前記推定部は、前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み及びアクセントの中から、前記入力された顔文字の読み及びアクセントを推定することを特徴とする請求項1に記載の顔文字読み情報推定装置。 In the emoticon dictionary stored in the storage unit, the reading of the emoticon and the accent are registered as the reading information of the emoticon,
The estimation unit estimates the reading and accent of the inputted emoticon from the emoticon reading and accent registered in the emoticon dictionary based on the similarity. The emoticon reading information estimation apparatus according to Item 1.
前記算出部は、前記顔文字辞書から前記割合が所定の第1の閾値以上である顔文字を抽出するとともに、当該抽出された顔文字の主要記号及び従属記号の並び順と、前記入力された顔文字の前記主要記号と同一の記号及び前記従属記号と同一の記号の並び順との矛盾箇所の数を算出し、当該矛盾箇所の数と、前記割合とに基づいて、前記類似度を算出することを特徴とする請求項1又は2に記載の顔文字読み情報推定装置。 In the emoticon dictionary stored in the storage unit, along with the at least one main symbol, a subordinate symbol that is a symbol other than the main symbol among a plurality of symbols representing the emoticon is also registered,
The calculation unit extracts the emoticon whose ratio is equal to or greater than a predetermined first threshold from the emoticon dictionary, the order of arrangement of the main symbols and subordinate symbols of the extracted emoticon, and the input Calculate the number of inconsistent portions with the same symbol as the main symbol of the emoticon and the arrangement order of the same symbols as the subordinate symbols, and calculate the similarity based on the number of the inconsistent portions and the ratio The emoticon reading information estimation apparatus according to claim 1 or 2, wherein
前記顔文字読み情報推定装置の前記推定部で推定された、前記入力された顔文字の読み情報を、文字データ又は音声として出力する出力装置と、を備える情報端末。 The emoticon reading information estimation device according to any one of claims 1 to 5,
An information terminal comprising: an output device that outputs the input reading information of the emoticon estimated by the estimation unit of the emoticon reading information estimation device as character data or speech.
外部からの顔文字の入力を受け付ける受付工程と、
複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要記号と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を参照して、当該顔文字辞書に登録されている顔文字毎に、前記主要記号と前記入力された前記顔文字を表す複数の記号とを比較し、前記入力された顔文字を表す複数の記号全体における前記主要記号と同一の記号の割合を取得する取得工程と、
前記取得工程で取得された割合に基づいて、前記入力された顔文字と、前記顔文字辞書に登録されている顔文字との類似度を算出する算出工程と、
前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み情報の中から、前記入力された顔文字の読み情報を推定する推定工程と、をコンピュータが実行することを特徴とする顔文字読み情報推定方法。 An emoticon reading information estimation method for estimating emoticon reading information represented by a plurality of symbols using a computer,
A reception process for receiving input of emoticons from the outside;
Regarding a plurality of emoticons, at least one main symbol extracted in advance as contributing to the meaning content of the emoticon from a plurality of symbols representing the emoticon and the reading information of the emoticon are registered in association with each other With reference to the emoticon dictionary, for each emoticon registered in the emoticon dictionary, the main symbol is compared with a plurality of symbols representing the inputted emoticon, and the inputted emoticon is An acquisition step of acquiring a ratio of the same symbol as the main symbol in all of a plurality of symbols to be represented;
A calculation step of calculating a similarity between the input emoticon and the emoticon registered in the emoticon dictionary based on the ratio acquired in the acquisition step;
The computer executes an estimation step of estimating the input emoticon reading information from the emoticon reading information registered in the emoticon dictionary based on the similarity. To estimate emoticon reading information.
コンピュータに、
外部からの顔文字の入力を受け付ける受付工程、
複数の顔文字に関し、顔文字を表す複数の記号から当該顔文字の意味内容に寄与するとして予め抽出された少なくとも1つの主要記号と、当該顔文字の読み情報とが紐付けられて登録された顔文字辞書を参照して、当該顔文字辞書に登録されている顔文字毎に、前記主要記号と前記入力された前記顔文字を表す複数の記号とを比較し、前記入力された顔文字を表す複数の記号全体における前記主要記号と同一の記号の割合を取得する取得工程、
前記取得工程で取得された割合に基づいて、前記入力された顔文字と、前記顔文字辞書に登録されている顔文字との類似度を算出する算出工程、及び
前記類似度に基づいて、前記顔文字辞書に登録されている顔文字の読み情報の中から、前記入力された顔文字の読み情報を推定する推定工程、を実行させることを特徴とする顔文字読み情報推定プログラム。
An emoticon reading information estimation program for causing a computer to estimate reading information of emoticons represented by a plurality of symbols,
On the computer,
Acceptance process to accept external emoticon input,
Regarding a plurality of emoticons, at least one main symbol extracted in advance as contributing to the meaning content of the emoticon from a plurality of symbols representing the emoticon and the reading information of the emoticon are registered in association with each other With reference to the emoticon dictionary, for each emoticon registered in the emoticon dictionary, the main symbol is compared with a plurality of symbols representing the inputted emoticon, and the inputted emoticon is An acquisition step of acquiring a ratio of the same symbol as the main symbol in all of a plurality of symbols to be represented;
Based on the ratio acquired in the acquisition step, a calculation step of calculating a similarity between the inputted emoticon and the emoticon registered in the emoticon dictionary, and based on the similarity, An emoticon reading information estimation program for executing an estimation step of estimating the input emoticon reading information from emoticon reading information registered in an emoticon dictionary.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010230985A JP5510263B2 (en) | 2010-10-13 | 2010-10-13 | Emoticon reading information estimation device, emoticon reading information estimation method, emoticon reading information estimation program, and information terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010230985A JP5510263B2 (en) | 2010-10-13 | 2010-10-13 | Emoticon reading information estimation device, emoticon reading information estimation method, emoticon reading information estimation program, and information terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012084022A JP2012084022A (en) | 2012-04-26 |
| JP5510263B2 true JP5510263B2 (en) | 2014-06-04 |
Family
ID=46242805
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010230985A Expired - Fee Related JP5510263B2 (en) | 2010-10-13 | 2010-10-13 | Emoticon reading information estimation device, emoticon reading information estimation method, emoticon reading information estimation program, and information terminal |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5510263B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5916666B2 (en) | 2013-07-17 | 2016-05-11 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Apparatus, method, and program for analyzing document including visual expression by text |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11305987A (en) * | 1998-04-27 | 1999-11-05 | Matsushita Electric Ind Co Ltd | Text voice converting device |
| JP2002268665A (en) * | 2001-03-13 | 2002-09-20 | Oki Electric Ind Co Ltd | Text voice synthesizer |
| JP4523312B2 (en) * | 2004-03-30 | 2010-08-11 | 富士通株式会社 | Apparatus, method, and program for outputting text voice |
| JP2010102564A (en) * | 2008-10-24 | 2010-05-06 | Nippon Telegr & Teleph Corp <Ntt> | Emotion specifying device, emotion specification method, program, and recording medium |
-
2010
- 2010-10-13 JP JP2010230985A patent/JP5510263B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012084022A (en) | 2012-04-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108447486B (en) | Voice translation method and device | |
| CN103838866B (en) | Text conversion method and device | |
| CN113838452B (en) | Speech synthesis method, apparatus, device and computer storage medium | |
| JP3998668B2 (en) | Morphological analyzer, method and program | |
| US20140372119A1 (en) | Compounded Text Segmentation | |
| CN111428487B (en) | Model training method, lyric generation method, device, electronic equipment and medium | |
| CN113342968B (en) | Text abstract extraction method and device | |
| JP5913394B2 (en) | Audio synchronization processing apparatus, audio synchronization processing program, audio synchronization processing method, and audio synchronization system | |
| CN108074562A (en) | Speech recognition equipment, audio recognition method and storage medium | |
| CN118298836B (en) | Tone color conversion method, device, electronic apparatus, storage medium, and program product | |
| CN112686041A (en) | Pinyin marking method and device | |
| JP2012073519A (en) | Reading-aloud support apparatus, method, and program | |
| CN109754791A (en) | Voice control method and system | |
| KR102079453B1 (en) | Method for Audio Synthesis corresponding to Video Characteristics | |
| JP2018169434A (en) | Voice synthesizer, voice synthesis method, voice synthesis system and computer program for voice synthesis | |
| JP2010055236A (en) | Document summarization method by combination of sentence extraction and sentence abbreviation, document summarization device, document summarization program, and recording medium recording the program | |
| JP7367839B2 (en) | Voice recognition device, control method, and program | |
| JP5510263B2 (en) | Emoticon reading information estimation device, emoticon reading information estimation method, emoticon reading information estimation program, and information terminal | |
| JP2004021121A (en) | Voice interaction controller unit | |
| KR20210071713A (en) | Speech Skill Feedback System | |
| CN114863910A (en) | Speech synthesis method, speech synthesis device, electronic equipment and storage medium | |
| JP2019211689A (en) | Recognition device, recognition system, terminal device, server device, method and program | |
| CN119864010A (en) | Non-autoregressive speech synthesis method, device, computer equipment and storage medium | |
| JP5343744B2 (en) | Speech translation apparatus and speech translation method | |
| JP5949634B2 (en) | Speech synthesis system and speech synthesis method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130805 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140214 |
|
| 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: 20140225 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140310 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5510263 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |