JP5284117B2 - Word segmentation apparatus and method - Google Patents
Word segmentation apparatus and method Download PDFInfo
- Publication number
- JP5284117B2 JP5284117B2 JP2009004939A JP2009004939A JP5284117B2 JP 5284117 B2 JP5284117 B2 JP 5284117B2 JP 2009004939 A JP2009004939 A JP 2009004939A JP 2009004939 A JP2009004939 A JP 2009004939A JP 5284117 B2 JP5284117 B2 JP 5284117B2
- Authority
- JP
- Japan
- Prior art keywords
- character string
- frequency
- input
- optimal
- divided
- 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
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Description
本発明は、語分割装置および方法に関する。 The present invention relates to a word division apparatus and method.
従来では、略称生成のための語への分割として、形態素解析器やその他の辞書情報が用いられている。また、英語の語分割の場合には、トークンデータベースなどを参照して検索をおこない語句を分割している(例えば、特許文献1参照)。 Conventionally, morphological analyzers and other dictionary information are used as division into words for abbreviation generation. In the case of English word division, a search is performed with reference to a token database or the like to divide words (for example, see Patent Document 1).
しかし、形態素解析器などを用いる場合、その辞書中に適切な単語が登録されていなければ適切な語分割をおこなうことができないことがある。例えば、新語や造語によって構成される名称では、名称に含まれる基本語が形態素解析器などの辞書に単語が登録されていない語(未知語)となり、語分割ができない。特に、テレビ番組の番組表データ(EPG(Electronic Program Guide)データ)のような日々更新される情報を対象とする領域では、新しい芸能人が現れたり、新しい番組名が現れたりするため未知語となりやすい。さらに、ひらがなや漢字にカタカナや英語が混在する語は、判別できずに未知語として判定されやすい。このような未知語に対して、基本語データや形態素解析器の辞書に蓄えてあるだけのデータでは充分に対応することが困難であり、辞書の更新が頻繁に必要となる。
しかし、未知語に対する辞書の更新を人手でおこなうのはコストがかかる。このように形態素解析を用いた場合、新語や造語に対して略称生成のための語に分割することが難しい。
However, when a morphological analyzer or the like is used, proper word division may not be performed unless an appropriate word is registered in the dictionary. For example, in a name composed of a new word or coined word, a basic word included in the name becomes a word (unknown word) in which no word is registered in a dictionary such as a morphological analyzer, and word division cannot be performed. In particular, in an area that targets information that is updated daily, such as program guide data (EPG (Electronic Program Guide) data) of TV programs, new celebrities appear and new program names appear, so they are likely to become unknown words. . Furthermore, words in which katakana and English are mixed in hiragana and kanji cannot be distinguished and are easily determined as unknown words. It is difficult to sufficiently deal with such unknown words with basic word data or data stored in the dictionary of the morphological analyzer, and the dictionary needs to be updated frequently.
However, it is expensive to manually update the dictionary for unknown words. When morphological analysis is used in this way, it is difficult to divide new words and coined words into abbreviation generation words.
本発明は、上記の課題を解決するためになされたものであり、名称等の文字列が形態素解析器では分割できないような新語や造語であっても、語分割することが可能となる語分割装置および方法を提供する。 The present invention has been made to solve the above-described problem, and even if a new word or coined word such as a character string such as a name that cannot be divided by a morphological analyzer, word division can be performed. Apparatus and methods are provided.
上述の課題を解決するため、本発明に係る語分割装置は、文字列の入力を受け付け入力文字列を得る入力手段と、前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数よりも1少ない数だけ得る分割手段と、前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得する取得手段と、前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定する第1判定手段と、前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定する第2判定手段と、を具備することを特徴とする。 In order to solve the above-described problem, a word segmentation device according to the present invention divides an input character string into two parts between an input unit that receives an input of a character string and obtains an input character string, and all characters of the input character string. Dividing to obtain a divided character string consisting of a first half character string that is a character string of the first half part after division and a second half character string that is a character string of the second half part after division by a number one less than the number of characters of the input character string Means, a first frequency which is a number indicating the frequency of occurrence of the input character string, a second frequency which is a number indicating the frequency of appearance of the first half character string, and a number indicating the frequency of appearance of the second character string A plurality of the divided characters according to a ratio of the acquisition means for acquiring the third frequency, the value of the first frequency, and the smaller one of the second frequency value and the third frequency value. The divided character string having the smallest ratio among the columns is defined as the optimum divided character string. First determination means for determining, and at least one of an optimal first half character string that is the first half character string included in the optimally divided character string and an optimal second half character string that is the second half character string included in the optimal divided character string is further divided A second determination means for determining, as a basic word, a character string satisfying the stop condition among the optimum first half character string and the optimum latter half character string. Features.
本発明の語分割装置および方法によれば、名称等の文字列が形態素解析器では分割できないような新語や造語であっても、語分割することが可能となる。 According to the word segmentation apparatus and method of the present invention, even if a character string such as a name is a new word or coined word that cannot be segmented by a morphological analyzer, it is possible to segment the word.
以下、図面を参照しながら本発明の実施形態に係る語分割装置および方法について詳細に説明する。なお、以下の実施形態では、同一の番号を付した部分については同様の動作をおこなうものとして、重ねての説明を省略する。
(第1の実施形態)
本発明の本実施形態に係る語分割装置は、辞書や単語データを利用することなく外部にある文字列頻度データ等を利用することで、入力文字列の分割を文字列頻度のみを用いて語分割する。
第1の実施形態に係る語分割装置について図1を参照して説明する。
本実施形態に係る語分割装置100は、入力部101、2分割部102、文字列頻度測定部103、分割位置判定部104、停止条件判定部105、出力部106を含む。また以下の本文中では、2分割部102、文字列頻度測定部103、分割位置判定部104、停止条件判定部105、をまとめて語句分割部107と呼ぶ。
Hereinafter, a word segmentation apparatus and method according to embodiments of the present invention will be described in detail with reference to the drawings. In the following embodiments, the same reference numerals are assigned to the same numbered parts, and repeated description is omitted.
(First embodiment)
The word segmentation device according to the present embodiment of the present invention uses an external character string frequency data or the like without using a dictionary or word data, thereby dividing an input character string using only the character string frequency. To divide.
The word division device according to the first embodiment will be described with reference to FIG.
The
入力部101は、氏名、団体名、番組や製品の名称などの文字列を受け付け、2分割部102へ送る。入力部101へ入力された文字列を、以下で入力文字列と呼ぶことがある。また、文字列は1文字だけの場合も含む。
2分割部102は、入力部101から受け取った入力文字列を2分割して文字列頻度測定部103へ送る。2分割部102の詳細な動作は図3を参照して説明する。
The
The two-dividing
文字列頻度測定部103は、2分割部102から受け取った2分割された入力文字列(以下分割文字列という)全てと分割前の入力文字列との頻度を、外部にあるデータベース108を利用して測定し、測定結果を分割位置判定部104へ送る。ここで外部にあるデータベース108は、webなどにおける文字列頻度データ、既存の文書データ、既存の文字列頻度辞書などである。また、頻度とは、webなど外部にあるデータベース中または既存の文書中等で特定の文字列が出現した度数(出現回数)を示す数である。この度数とは例えば、webのデータベース中では、webにおける文字列のヒット数や、文字列を含むweb文書またはコンテンツのヒット件数等である。既存の文書データ中では、ある文書内における特定の文字列の出現回数や、特定の文字列を含む文書数である。
分割位置判定部104は、文字列頻度測定部103から得た分割文字列の組の頻度データと、入力文字列の頻度データとを用いて入力文字列の最も適した分割位置を判定し停止条件判定部105へ送る。分割位置判定部104の詳細な動作は図3を参照して説明する。
停止条件判定部105は、分割位置判定部104から入力された分割文字列が停止条件を満たすかどうかを判定し、停止条件を満たしていないのであれば、停止条件を満たすまで再帰的に分割文字列を2分割部102へ送り新たな分割文字列を生成する。停止条件を満たすのであれば、分割文字列を出力部106へ送る。以下では、語句分割部107の処理を終えて出力された語を、入力文字列を分割する際にある条件下でその条件に最も適した位置で分割されたことを示す基本語として定義する。この条件は、例えば、姓名であれば名字と名前で分割したり、略語であれば略語を構成する基となる略称になりやすい語となるように分割をおこなう。
出力部106は、停止条件判定部105で停止条件を満たした分割文字列を受け取って基本語として外部へ出力する。
The character string
The division
The stop
The
次に、文字列を入力した場合の語句分割部107の動作について図2のフローチャートおよび図3、図4を参照して説明する。
入力文字列の例に、番組名として「たべるのトびら」を入力した場合を示す。なお、本実施例では外部にあるデータベース108を利用して、文字列頻度測定をおこなう例について説明する。
はじめにS201では、入力部101へ入力文字列として「たべるのトびら」を入力する。そして入力文字列「たべるのトびら」を2分割部102へ送る。
Next, the operation of the
As an example of the input character string, a case where “Taberu no Tobira” is input as a program name is shown. In the present embodiment, an example in which character string frequency measurement is performed using an
First, in S <b> 201, “Tabera no Tobira” is input to the
次にS202では、2分割部102において、入力文字列「たべるのトびら」を2分割する全ての分割をおこなう。全ての分割をおこなった例を図3を参照して説明する。分割位置を表すi(i番目の文字の後ろで分割)を用いると、iが1から6までとなる6通りの分割をおこなう。つまり、「た/べるのトびら」、「たべ/るのトびら」、「たべる/のトびら」、「たべるの/トびら」、「たべるのト/びら」、「たべるのトび/ら」という全ての文字間において入力文字列を分割し、分割文字列を生成する。ただし、「/」記号は、語分割位置を表す。ここで各文字列を、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列としてj(j=1が前半文字列、j=2が後半文字列)を用いてSijと表記することにする。「たべるのトびら」の分割の場合、「た」を前半文字列であるS11、「べるのトびら」を後半文字列であるS12、同様に「たべ」をS21、「るのトびら」をS22、・・・、「たべるのトび」をS61、「ら」をS62と呼ぶことにする。また、分割前の入力文字列「たべるのトびら」をS0と呼ぶことにする。なお、分割する際の順序は関係なく先頭文字から順に分割してもよいし、ランダムに分割してもよい。いずれの分割順序おいても、全ての文字間において重複無く入力文字列を分割すればよい。
次にS203では、文字列頻度測定部103において、2分割部102から受け取ったS0とSi1とSi2(i=1からnまでとし、nは(S0の文字列長−1)とする)の文字列頻度を測定する。文字列頻度の測定対象となるデータベース108は、例えば、前記外部にある文字列頻度データにより測定をおこなう。
文字列頻度データの測定例としては、Web検索用のAPI(Application Programming Interface)を利用し、頻度を測定したい各文字列をダブルクォーテーション(「″」)で囲んだ文字列を検索語として検索結果数(文書数)を取得することで得る。このとき、前記文字列が「たべる」であるとき、検索語は「″たべる″」となる。また、前記の既存の文書データ中での各文字列の頻度測定する場合は、例えば組織内で保持するデータ等の文書データに対し、頻度測定したい各文字列の頻度を測定することで得られる。さらに、前記の既存の文字列頻度辞書を利用した頻度測定とは、図4に示したようなデータを保持したテーブルを別途用意し、このテーブルから頻度を得る。図4のデータは、前記文書データから、単語ではなくm文字(mは自然数)までの文字数の文字列(文字列データ401)を作成し、各文字列の頻度(文字列頻度データ402)を前記文書データ中で測定しておくことによって得る。
ここでは、データベース108から得られる文字列Sの文字列頻度をHit(S0)、Hit(Si1)、Hit(Si2)(i=1からnまで)として表し、対応付けて取得しておく。
Next, in S202, the two-dividing
In step S203, the character string
As an example of character string frequency data measurement, an API (Application Programming Interface) for web search is used, and a search result is obtained by using a character string in which each character string whose frequency is to be measured is enclosed in double quotation marks (""). It is obtained by acquiring the number (number of documents). At this time, when the character string is “eat”, the search word is “eat”. Further, when measuring the frequency of each character string in the existing document data, it is obtained by measuring the frequency of each character string to be frequency-measured with respect to document data such as data held in the organization, for example. . Furthermore, the frequency measurement using the existing character string frequency dictionary is to prepare a table holding data as shown in FIG. 4 and obtain the frequency from this table. The data of FIG. 4 creates a character string (character string data 401) having the number of characters up to m characters (m is a natural number) instead of words from the document data, and the frequency of each character string (character string frequency data 402). It is obtained by measuring in the document data.
Here, the character string frequency of the character string S obtained from the
S204では、分割位置判定部104において、S203で取得した文字列頻度データ402から最適な分割位置を判定する。ここでは、文字列の組Si1とSi2と、分割前の文字列S0の頻度から、関連度Rを計算する。関連度Rは、例えば次のような(1)式から計算される。
R(i)=Hit(S0)/min(Hit(Si1),Hit(Si2))・・・(1)
この式を用いて、これを最小にするi=kの分割位置を計算し、Sk1とSk2を出力とする。i=4のときのR(i)を計算する例を図3を参照して説明すると、i=4のとき分割文字列は、S41=「たべるの」、S42=「トびら」であり、「たべるの/トびら」と分割すると推定される。また、関連度Rについて計算すると、S0である「たべるのトびら」の文字列頻度がHit(S0)=11000000であり、「たべるの」の文字列頻度がHit(S41)=1890000、「トびら」の文字列頻度がHit(S42)=12900000であったとする。これらの文字列頻度を用いて関連度R(4)を計算した結果は、(1)式よりR(4)=5.851(ここでは小数点第4位を四捨五入)が得られる。なお、min(Hit(Si1),Hit(Si2))を計算する際に、Hit(Si1),Hit(Si2)のどちらかが0であった場合は該当なしとして候補から除いてもよい。
In S204, the division
R (i) = Hit (S0) / min (Hit (Si1), Hit (Si2)) (1)
Using this equation, the division position of i = k that minimizes this is calculated, and Sk1 and Sk2 are output. An example of calculating R (i) when i = 4 will be described with reference to FIG. 3. When i = 4, the divided character string is S41 = “eat”, S42 = “door”, It is presumed that it will be divided into “Tabe no Tobira”. Further, when calculating the relevance R, the character string frequency of “Tateru no Tobira”, which is S0, is Hit (S0) = 11,000,000, and the character string frequency of “Tabe no Tora” is Hit (S41) = 1890000, It is assumed that the character string frequency of “Bira” is Hit (S42) = 12900000. As a result of calculating the relevance R (4) using these character string frequencies, R (4) = 5.851 (here, rounded to the fourth decimal place) is obtained from the equation (1). In calculating min (Hit (Si1), Hit (Si2)), if either Hit (Si1) or Hit (Si2) is 0, it may be excluded from the candidates as not applicable.
このように他の分割位置iについても同様に関連度Rを計算して、関連度Rが最も小さい値が入力文字列を分割するのに最適位置として推定する。ここではR(4)が一番小さいと仮定し、「たべるの」、「トびら」を基本語としてS205に進む。
同じように、入力文字列が「ひめちゃまかりん」という文字列であった場合を図5を参照して説明する。「たべるのトびら」と同様に、「ひめちゃまかりん」に対してS202およびS203の処理をおこない、2分割部102で7通りの語分割をおこなって、それぞれに対して文字列頻度を測定する。次に、ここでは一例としてi=5の場合、S51=「ひめちゃま」、S52=「かりん」であり、これらの文字列頻度を測定する。Hit(S51)=931000、Hit(S52)=17300000、「ひめちゃまかりん」の文字列頻度がHit(S0)=899000であり、このときの(1)式を用いて関連度R(5)を計算する。仮に、他の関連度よりもR(5)が一番小さければ、R(5)は「ひめちゃま/かりん」と分割すると推定され「ひめちゃま」と「かりん」を基本語としてS205に進む。
In this way, the degree of relevance R is calculated in the same manner for other division positions i, and the value with the smallest degree of relevance R is estimated as the optimum position for dividing the input character string. Here, it is assumed that R (4) is the smallest, and the process proceeds to S205 with “eat” and “door” as basic words.
Similarly, the case where the input character string is the character string “Himechakarin” will be described with reference to FIG. Similarly to “Tabera no Tobira”, the processing of S202 and S203 is performed on “Himechamakalin”, and the word division frequency is measured for each of the seven word divisions by the two
なお、R(i)の式は、単語間の関係を測定するシンプソン係数(単語Aと単語Bの関係を測る場合、Simpson(A,B)=A∩B/min(A,B))という式を改良したものである。特異な文字列を除去した索引付けでは、シンプソン係数をそのまま用いてもうまく計算できない場合がある。このため、外部の文字列頻度データ402を利用するだけで語分割をおこなうことができる式R(i)を用いている。
The expression of R (i) is called a Simpson coefficient that measures the relationship between words (Simpson (A, B) = A∩B / min (A, B) when measuring the relationship between word A and word B)). It is an improvement of the formula. When indexing is performed by removing unique character strings, calculation may not be performed well even if the Simpson coefficient is used as it is. For this reason, Formula R (i) that can perform word division only by using the external character
S205では、停止条件判定部105において、S204から受け取った分割文字列が停止条件を満たすかどうかを判定する。停止条件は、例えば、分割後の各文字列が漢字文字2文字以下、カタカナまたはひらがな文字4字以下である場合や、あるいは、文字数の代わりにモーラ数としてもよい。
ここで、入力文字列「たべるのトびら」から、S204において「たべるの」と「トびら」という分割を得た場合には、「たべるの」はひらがな4文字以下であり、これをそのまま出力としてS206に進む。また、「トびら」もカタカナとひらがなの4字以下であるため、これをそのまま出力としてS206に進む。一方、同様の停止条件であるときに、入力文字列「ひめちゃまかりん」からS204において「ひめちゃま」と「かりん」という分割を得た場合には、「かりん」はひらがな4字以下であるため、このまま出力とする。しかし、「ひめちゃま」はひらがな4字より多いため停止条件を満たさないので、「ひめちゃま」をS201へ戻し、更なる分割位置を求める。こうしてすべての分割文字列が停止条件を満たすまで再帰的に文字列の分割処理を繰り返す。
S206では、S205で停止条件を満たした分割文字列を基本語として出力する。ここでは「たべるの」と「トびら」を出力する。上述したステップにより語句分割部107の処理を終了する。
In S205, the stop
Here, if the division of “Tateru” and “Toba” is obtained from the input character string “Tateru no Tobira” in “S204”, “Tateno” is less than 4 hiragana characters and is output as it is. The process proceeds to S206. Also, since “Tobira” is less than 4 characters of Katakana and Hiragana, this is output as it is and the process proceeds to S206. On the other hand, under the same stop condition, when the division of “Himechama” and “Karin” is obtained in S204 from the input character string “Himechakarin”, “Karin” is less than 4 hiragana characters. Therefore, it is output as it is. However, since “Himechama” has more than 4 hiragana characters and does not satisfy the stop condition, “Himechama” is returned to S201, and a further division position is obtained. In this way, the character string dividing process is repeated recursively until all the divided character strings satisfy the stop condition.
In S206, the divided character string satisfying the stop condition in S205 is output as a basic word. Here, “eat” and “door” are output. The processing of the
(変形例)
次に図1で示した語分割装置100の変形例を図6に示す。
本変形例に係る語分割装置600は、図1に示した語分割装置100に加え、さらに形態素解析部601を含む。語分割装置600に含まれる他の構成は上述した第1の実施形態と同様の動作をおこなうのでここでの説明は省略する。
上述した第1の実施形態では、主に番組名や氏名など単語単位で、未知語の開始位置と終了位置が認識できる状態で入力をおこなうことを想定しているが、本変形例では、単語単位だけではなく、文章で未知語の終了位置がわからない状態の入力においても形態素解析をおこなうことにより未知語を単語単位で抽出して基本語への分割をおこなうことができる。
形態素解析部601は、入力部101から入力文字列を受け取り、形態素解析をおこなった結果、未知語と判定されて1語になったり、名称等の扱いで1語となった文字列を、語句分割部107へ送る。形態素解析器の代わりに、助詞「は」「の」などを分割位置として語分割してもよい。例えば、「T芝S郎の金曜日のエンタメアツメテ」という入力文字列の場合、形態素解析部601によって形態素解析をおこなう。その結果、人名「T芝S郎」や造語「エンタメアツメテ」が未知語となった場合に、語句分割部107へ「T芝S郎」や「エンタメアツメテ」を入力として与え、姓名分割や語分割をおこなう。
また、語句分割部107では、人名を入力として与え、姓名分割をおこなってもよい。さらに、語句分割部107では、複合語を入力として与え、複合語を構成する基本語への分割をおこなってもよい。
(Modification)
Next, FIG. 6 shows a modification of the
A
In the first embodiment described above, it is assumed that input is performed in a state where the start position and end position of an unknown word can be recognized mainly in units of words such as program names and names. Not only the unit but also the input in a state where the end position of the unknown word is not known in the sentence, the unknown word can be extracted in units of words and divided into basic words by performing morphological analysis.
The
Further, the word /
以上に示した第1の実施形態によれば、形態素解析器では分割できないような新語や造語とった未知語であっても、語分割することが可能となる。また、文章を入力した場合にも、形態素解析をかけることにより未知語を抽出して、その未知語に対して語分割をおこなうことができる。さらに、適切な2分割位置を判定する計算で求めるため、全部分文字列から結束度計算をするよりも外部へのアクセスや計算量を少なく抑えて計算することができる。 According to the first embodiment described above, even an unknown word such as a new word or coined word that cannot be divided by a morphological analyzer can be divided. Even when a sentence is input, an unknown word can be extracted by performing morphological analysis, and word division can be performed on the unknown word. Further, since the calculation is performed by determining an appropriate two-divided position, the calculation can be performed with less access to the outside and the amount of calculation than when calculating the cohesion degree from all the partial character strings.
(第2の実施形態)
本発明に係る第2の実施形態について図7を参照して説明する。本実施形態に係る語分割装置700は、図1で示した語分割装置100に加え、さらに略称生成部701を含む。語分割装置700に含まれる他の構成は、上述した第1の実施形態の語分割装置100と同様の動作をおこなうのでここでの説明は省略する。
第1の実施形態に係る語分割装置100と異なる点は、基本語への語分割をおこなった後に、略称生成をおこなうことによって略称候補を取得することである。
略称生成部701では、語句分割部107から受け取った基本語から略称生成規則によって略称候補を生成し、出力部106へ送る。あるいは各文字列を単語として機械学習の素性として用いて、略称候補の生成をおこない出力部106へ送ってもよい。略称生成規則とは、例えば、入力語を分割した各基本語のうち略称生成に用いる、基本語および文字の位置を指定するものである。例えば、文字位置(例えば、語頭や語末)を組み合わせて構成したり、長音や撥音を除く処理を加えて生成する手法といったものである。一例としては、正式名称が「首都間中央自動車道」(首都間/中央/自動車/道)の場合、「第1、第2、第4番目の基本語の語末の1文字を選択」という略称生成規則であれば、「首都間」の「間」、「中央」の「央」、「道」の「道」が各基本語より選択され、「間央道」と略される。また、正式名称が「第三中学校」(第三/中学校)の場合、「第1基本語の語末の1文字および第2基本語の語頭の1文字を選択」という略称生成規則であれば、「第三」の「三」、「中学校」の「中」が選択され、「三中」と略される。さらに「長音を除く」という略称生成規則であれば、基本語「スーパー」は「スパ」と略される。また、機械学習には、例えば、CRF(Conditional Random Fields)といった手法があり、各文字に対し略称に用いられる文字かどうかを判定する。
(Second Embodiment)
A second embodiment according to the present invention will be described with reference to FIG. The
The difference from the
The
略称生成部701での処理の例を図8のフローチャートを参照して説明する。
はじめに、入力部101への入力文字列が「たべるのトびら」であった場合、語句分割部107での語分割処理の結果、「たべるの」「トびら」という基本語がそれぞれ得られたとする。
S801では、略称生成部701へ「たべるの」「トびら」という2語(入力基本語804)の入力をおこなう。
次にS802では、略称生成規則適用の際、語頭2文字ずつを得る略称生成を用いて略称生成する場合は、「たべるの」と「トびら」を基本語として「たべトび」という略称が生成される。略称生成規則が複数あった場合には、この他にも複数の略称候補が生成される(略称候補805)。この略称候補805を生成したあとはS803に進む。
S803では、S802で生成された略称候補805を出力する。以上のステップにより略称生成部701での処理を終了する。
An example of processing in the
First, when the input character string to the
In step S <b> 801, two words (input basic word 804), “eat” and “tobira”, are input to the
Next, in S802, when abbreviation generation is performed using abbreviation generation that obtains two initial characters at the time of applying the abbreviation generation rule, the abbreviation “tabetobi” is used as the basic word “taberuno” and “tobira”. Generated. If there are a plurality of abbreviation generation rules, a plurality of abbreviation candidates are also generated (abbreviation candidate 805). After the
In step S803, the
また、語句分割部107で何回目の語分割であるかを保持し、分割位置だけでなく分割回数も合わせて略称生成部701へ入力してもよい。分割位置および分割回数は停止条件判定部105で記憶することを想定しているが、特に限定されずどこで記憶していてもよい。分割位置だけでなく、分割回数も略称生成部701への入力とすることで、例えば略称生成部701で分割回数が少ない分割位置からなる略称候補805を出力する。あるいは、分割回数が少ない順に候補を順位付けして出力しても良い。これは少ない分割回数の方が、略称候補805の基として選ばれやすい基本語から構成されるからである。例えば、入力文字列「ひめちゃまかりん」の場合、1回目の分割で「ひめちゃま」「かりん」とそれぞれ基本語に分割されたあとに、文字列「ひめちゃま」について再度分割をおこない、「ひめ」「ちゃま」に分割されたとする。このとき、分割位置だけの情報では、「ひめ/ちゃま/かりん」という3語の基本語から構成されることになる。
ここで分割回数も追加情報として与えれば、「ひめ /2ちゃま /1かりん」と分割されることになる。ただし、「/i」は、i番目の分割位置であることを表す。略称生成規則が、「任意に2語から語頭2モーラをつなぎ合わせて作成する」だった場合、「ひめちゃま」「ひめかり」「ちゃまかり」という3候補が生成される。しかし、分割回数を追加情報として与え、このときの略称生成規則が例えば、「分割回数の少ない位置で分割された2語の語頭2モーラから作成される」であった場合、「ひめかり」のみ略称候補805として選択することができる。
In addition, the
Here, if the number of divisions is given as additional information, it will be divided into “hime / 2 chama / 1 karin”. However, “/ i” represents the i-th division position. If the abbreviated name generation rule is “created by arbitrarily connecting two words beginning with two mora”, three candidates “Himechama”, “Himekari”, and “Chamakari” are generated. However, if the number of divisions is given as additional information, and the abbreviation generation rule at this time is, for example, “created from two-
上述した第2の実施形態によれば、基本語から略称生成規則によって自動的に略称を生成することが可能となる。また、さらに再帰的に分割を繰り返すため、何回目の分割であったかという情報からより分割されやすい分割位置を測ることができる。 According to the second embodiment described above, it is possible to automatically generate an abbreviation from a basic word according to an abbreviation generation rule. Further, since the division is repeated recursively, it is possible to measure a division position that is easier to divide from information indicating how many divisions have been made.
(第3の実施形態)
本発明に係る第3の実施形態について図9を参照して説明する。本実施形態に係る語分割装置900は、図7で示した第2の実施形態に係る語分割装置700に加え、さらに略称候補選定部901を含む。文字列頻度測定部103は、略称候補選定部901と文字列頻度データをやり取りする点で第1の実施形態および第2の実施形態と異なるが、その他は同様の動作をおこなう。
語分割装置900に含まれる他の構成は、上述した第2の実施形態に係る語分割装置700とほぼ同様の動作をおこなうのでここでの説明は省略する。
第2の実施形態と異なる点は、略称生成部701により生成された略称候補805をそのまま出力するのではなく、複数の略称候補805に対し、略称候補805の頻度あるいは、略称候補805と入力文字列との共起頻度が閾値よりも小さい略称候補805を削除したり、共起頻度を参照して順位付けをおこなって、選定した略称のみを出力部106へ送る点である。閾値は、文字列の出現数により、統計的に決定される値である。換言すれば、略称候補805の文字列の頻度が閾値以上であれば、その略称候補805は入力文字列の略称としての正解率、つまり信頼度が高いといえる。逆に、略称候補805の文字列の頻度が閾値よりも小さければ、その略称候補805の略称としての信頼度は低くなる。共起頻度とは、入力文字列と略称候補805がどれほど関連付いて出現しているかを示す度数(出現回数)である。例えばWeb上で入力文字列と略称候補との関連を検索し、その度数を測定することで得るといったことが考えられる。
(Third embodiment)
A third embodiment according to the present invention will be described with reference to FIG. The
Other configurations included in the
The difference from the second embodiment is that the
略称候補選定部901は、略称生成部701の処理により生成した略称候補805を受け取り、または文字列頻度測定部103から測定した共起頻度を取得して参照し、複数の略称候補の順位付けをおこなって高い順位の略称候補を出力部106へ送ったり、略称候補の中から閾値により選定した略称候補のみ出力部106へ送る。
The abbreviation
本実施形態における略称生成部701と略称候補選定部901とでの基本語から略称候補の選定処理の一例を図10のフローチャートを参照して説明する。入力部101への入力文字列が「たべるのトびら」であった場合、語句分割部107での語分割処理の結果、「たべるの」「トびら」という分割済みの語が得られたとする。
はじめにS1001では、略称生成部701へ「たべるの」「トびら」という2語(入力基本語804)が入力される。
次にS1002では、略称生成部701において、語頭2文字ずつを得る略称生成規則が適用された場合、「たべるの」と「トびら」を基本語として「たべトび」という略称が生成される。このとき、略称生成規則が複数ある場合には、「たべトび」以外にも幾つかの略称候補805が生成される。
An example of abbreviation candidate selection processing based on basic words in the
First, in
Next, in S1002, in the
続いてS1003では、略称候補選定部901において、略称生成部701から受け取った複数個の略称候補805の選定および順位付けをおこなう。例えば、入力文字列「たべるのトびら」と各略称候補805の2語を検索語とし、文字列頻度測定部103を通してWeb検索用APIで検索結果数(共起頻度)を得る。略称候補805として、「たべトび」「たトび」「たべト」の3語があった場合、検索語A「″たべるのトびら″ ″たべトび″」、検索語B「″たべるのトびら″ ″たトび″」、検索語C「″たべるのトびら″ ″たべト″」の3つをそれぞれ検索語として、Web上での頻度を得る。その結果、A:86700、B:0、C:85200という頻度(略称候補頻度1005)であった場合、頻度が一番高かった「たべトび」を選定し、S1004に進む。なお、閾値を用いて略称候補805の選定をおこなう場合は、例えば閾値よりも小さい頻度である略称候補805は選定されずに出力をおこなわないとしたり、逆に、閾値以上の頻度である略称候補805は全て選定して出力をおこなう等の処理をしてもよい。
また、閾値と順位付けを同時におこない選定処理をしてもよい。例えば、略称候補805を3つ選定して出力する場合を想定する。順位付けにより選定された上位3つの略称候補805が、上位2つの略称候補805の頻度は閾値以上であり、3番目の略称候補805の頻度は閾値以下であった場合は、閾値以上の2つの略称候補805は略称としての信頼度が高く、閾値よりも小さい1つの略称候補805は、選定はされるものの、略称としての信頼度は低いということができる。
In step S <b> 1003, the abbreviation
Further, selection processing may be performed by simultaneously performing thresholding and ranking. For example, assume that three
また、検索エンジンのインデキシングの関係で件数が変化する事情を考慮してもよい。例えば、先ほどの検索語Aから検索語Cで検索し、Web上での頻度を得た結果、それぞれ、A:85200、B:0、C:86700という頻度(略称候補頻度1005)であった場合、「たべト」が頻度が一番高い候補となってしまう。しかし、「たべトび」(頻度が0でない単語)と、頻度が一番高かった「たべト」の2つの文字列は、包含関係(「たべト」+「び」⇒「たべトび」)にあり、実際は「たべトび」が正しい略称であるのに検索エンジンでは「たべト」と「たべトび」の両方が単語として登録されている可能性がある。この場合、「たべトび」を含んでいるのに「たべト」でしかインデキシングされていない文書は件数として現れない。 In addition, the situation where the number of cases changes due to the indexing of the search engine may be considered. For example, when the search word C is searched from the search word A and the frequency on the Web is obtained, the frequencies are A: 85200, B: 0, C: 86700 (abbreviation candidate frequency 1005), respectively. “Tabet” is the most frequent candidate. However, the two character strings “Tabetobi” (words with a non-zero frequency) and “Tabet” with the highest frequency are inclusive relations (“Tabet” + “Bi” ⇒ “Tabetobi”) In fact, “Tabetobi” is the correct abbreviation, but both “Tabetobi” and “Tabetobi” may be registered as words in the search engine. In this case, a document that includes “tabetobi” but is indexed only by “tabet” does not appear as the number of cases.
このような場合を考慮するため、検索結果上位の要約(スニペット)中を調べ、略称候補805の文字列の包含関係(ある文字列の先頭からの部分文字列または後方からの部分文字列が、別の文字列と一致しているかどうか)を確認する。任意の2つの略称候補805のうち、ある候補(文字長が長い方)が、他方(文字長が短い方)を包含するような文字列は、文字長が短い方の略称候補805での検索結果の要約(スニペット)中に現れる短い方の略称候補805が、長い方の略称候補805の一部になっていないかを調べる。もし、包含関係になっている場合には、文字列長が短い方のWeb上での頻度が、長い方の頻度に因るものと判定し、文字列長が長い略称候補805を選定する。「たべト」と「たべトび」の場合、「たべト」は「たべトび」の先頭からの部分文字列になっているため、検索語Bで検索した結果を調べる。その検索結果中で現れる「たべト」が、「…たべトび…」というフレーズ中に頻出する場合には、「たべトび」を略称候補805として選定して、S1004に進む。
S1004では、出力部106において、略称候補選定部901から受け取った略称候補805の出力をおこなう。以上のステップにより基本語から略称候補805の選定処理を終了する。
In order to consider such a case, the search result high-order summary (snippet) is examined, and the character string inclusion relationship of the abbreviation candidate 805 (a partial character string from the beginning of a certain character string or a partial character string from the back is To see if it matches another string. A character string in which one candidate (longer character length) of two
In step S <b> 1004, the
また、語句分割部107で保持した、入力文字列の2分割の際に何回目の語分割であるかという情報を利用して、例えば、略称候補選定部901で、分割回数が少ない分割位置からなる略称候補805を優先的に出力してもよい。上述のように、入力文字列「ひめちゃまかりん」を語句分割部107で分割した結果、分割位置と分割回数が「ひめ /2ちゃま /1かりん」となったとする。略称生成規則が、「基本語中の任意の2語の語頭2モーラをつなぎ合わせて作成する」というものであった場合、「ひめちゃま」「ひめかり」「ちゃまかり」という3つの略称候補805が生成される。そして、この略称候補805それぞれに分割回数を追加情報として与える。このとき、図10のS1003で、分割回数のより少ない回数で分割された2語から作成されたものを優先する場合、「/0ひめ /1かり」「/0ひめ /2ちゃま」「/2ちゃま /1かり」という区切り記号iの総和が小さい順に並べ、「ひめかり」(総和が1)、「ひめちゃま」(総和が2)、「ちゃまかり」(総和が3)という順位付けをおこなう。
Further, by using the information about how many times the input character string is divided when the input character string is divided into two, which is held in the
上述した第3の実施形態によれば、分割された基本語から略称生成が自動的に可能である。さらに、連接確率データを用意する必要がないため、頻度測定をおこなう際に利用する検索エンジン等のデータでも、語分割後の文字列(基本語と原語)を索引付けしていることを前提せずに、語分割前後の関連は未知の状態でも関係付けが可能になる。さらに略称生成規則が複数あり、複数の略称候補が生成された場合に頻度や分割回数による選定等をおこなうことで自動的に複数の略称候補から所望の略称を選定することが可能となる。 According to the third embodiment described above, abbreviations can be automatically generated from the divided basic words. Furthermore, since it is not necessary to prepare connection probability data, it is assumed that the character strings (basic words and original words) after word splitting are indexed even in data such as search engines used for frequency measurement. In addition, the relationship before and after the word division can be related even in an unknown state. Further, there are a plurality of abbreviation generation rules, and when a plurality of abbreviation candidates are generated, a desired abbreviation can be automatically selected from a plurality of abbreviation candidates by selecting according to the frequency or the number of divisions.
なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。 Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.
100、600、700、900・・・語分割装置、101・・・入力部、102・・・分割部、103・・・文字列頻度測定部、104・・・分割位置判定部、105・・・停止条件判定部、106・・・出力部、107・・・語句分割部、108・・・データベース、401・・・文字列データ、402・・・文字列頻度データ、601・・・形態素解析部、701・・・略称生成部、804・・・入力基本語、805・・・略称候補、901・・・略称候補選定部、1005・・・略称候補頻度。
100, 600, 700, 900 ... word dividing device, 101 ... input unit, 102 ... dividing unit, 103 ... character string frequency measuring unit, 104 ... dividing position determining unit, 105 ... Stop condition determination unit, 106 ... output unit, 107 ... phrase division unit, 108 ... database, 401 ... character string data, 402 ... character string frequency data, 601 ...
Claims (12)
前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数より1少ない数だけ取得する分割手段と、
前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得する取得手段と、
前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定する第1判定手段と、
前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定する第2判定手段と、を具備し、
前記取得手段は、外部にある第1データベース内において前記入力文字列または前記分割文字列を検索した結果である前記第1頻度、前記第2頻度、および前記第3頻度を取得することを特徴とする語分割装置。 An input means for receiving input of a character string and obtaining an input character string;
Dividing the input character string into two parts between all characters of the input character string, and dividing the input character string into a first half character string that is the first half character string after the division and a second half character string that is the second half character string after the division Dividing means for obtaining a character string by a number one less than the number of characters of the input character string;
A first frequency that is a number indicating the frequency of appearance of the input character string, a second frequency that is a frequency indicating the frequency of appearance of the first half character string, and a number indicating the frequency of appearance of the second character string. An acquisition means for acquiring three frequencies;
A divided character in which the ratio of the plurality of divided character strings is minimized by a ratio of the first frequency value and the smaller one of the second frequency value and the third frequency value. First determination means for determining a column as an optimally divided character string;
A stop condition indicating a condition in which at least one of the optimum first half character string that is the first half character string included in the optimum division character string and the optimum second half character string that is the second half character string included in the optimum division character string is not further divided. When satisfying, comprises a second determination means for determining, as a basic word, a character string that satisfies the stop condition among the optimal first half character string and the optimal second half character string,
The acquisition means acquires the first frequency, the second frequency, and the third frequency, which are results of searching the input character string or the divided character string in a first external database. Word splitting device.
前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数より1少ない数だけ取得する分割手段と、
前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得する取得手段と、
前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定する第1判定手段と、
前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定する第2判定手段と、を具備し、
前記取得手段は、複数の文字列を記憶し文字列ごとに、文字列と該文字列の頻度とを関連付けて格納している第2データベースから前記第1頻度、前記第2頻度、および前記第3頻度を取得することを特徴とする語分割装置。 An input means for receiving input of a character string and obtaining an input character string;
Dividing the input character string into two parts between all characters of the input character string, and dividing the input character string into a first half character string that is the first half character string after the division and a second half character string that is the second half character string after the division Dividing means for obtaining a character string by a number one less than the number of characters of the input character string;
A first frequency that is a number indicating the frequency of appearance of the input character string, a second frequency that is a frequency indicating the frequency of appearance of the first half character string, and a number indicating the frequency of appearance of the second character string. An acquisition means for acquiring three frequencies;
A divided character in which the ratio of the plurality of divided character strings is minimized by a ratio of the first frequency value and the smaller one of the second frequency value and the third frequency value. First determination means for determining a column as an optimally divided character string;
A stop condition indicating a condition in which at least one of the optimum first half character string that is the first half character string included in the optimum division character string and the optimum second half character string that is the second half character string included in the optimum division character string is not further divided. When satisfying, comprises a second determination means for determining, as a basic word, a character string that satisfies the stop condition among the optimal first half character string and the optimal second half character string,
The acquisition means stores a plurality of character strings, and for each character string, the first frequency, the second frequency, and the first frequency from a second database that stores the character string and the frequency of the character string in association with each other. A word segmentation device characterized by acquiring three frequencies.
前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数より1少ない数だけ取得する分割手段と、
前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得する取得手段と、
前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定する第1判定手段と、
前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定する第2判定手段と、を具備し、
前記取得手段は、既存の文書データを取得して、該文書データ中に前記入力文字列、前記前半文字列、および前記後半文字列が出現した度数をそれぞれ測定することにより、前記第1頻度、前記第2頻度、および前記第3頻度を取得することを特徴とする語分割装置。 An input means for receiving input of a character string and obtaining an input character string;
Dividing the input character string into two parts between all characters of the input character string, and dividing the input character string into a first half character string that is the first half character string after the division and a second half character string that is the second half character string after the division Dividing means for obtaining a character string by a number one less than the number of characters of the input character string;
A first frequency that is a number indicating the frequency of appearance of the input character string, a second frequency that is a frequency indicating the frequency of appearance of the first half character string, and a number indicating the frequency of appearance of the second character string. An acquisition means for acquiring three frequencies;
A divided character in which the ratio of the plurality of divided character strings is minimized by a ratio of the first frequency value and the smaller one of the second frequency value and the third frequency value. First determination means for determining a column as an optimally divided character string;
A stop condition indicating a condition in which at least one of the optimum first half character string that is the first half character string included in the optimum division character string and the optimum second half character string that is the second half character string included in the optimum division character string is not further divided. When satisfying, comprises a second determination means for determining, as a basic word, a character string that satisfies the stop condition among the optimal first half character string and the optimal second half character string,
The acquisition means acquires the existing document data, and measures the frequency of occurrence of the input character string, the first half character string, and the second half character string in the document data, thereby obtaining the first frequency, The word division apparatus characterized by acquiring the second frequency and the third frequency.
複数の前記基本語内の該基本語ごとに先頭文字からの位置であって、指定された文字位置にあるN個(Nは0以上の整数)の文字列を略称候補文字列として選択し、複数の該略称候補文字列を指定された組み合わせにより少なくとも2文字以上の第1略称を生成する生成手段をさらに具備することを特徴とする請求項1から請求項3のいずれか1項に記載の語分割装置。 The second determination means does not satisfy the stop condition of the optimal first half character string and the optimal second half character string when at least one of the optimal first half character string and the optimal second half character string does not satisfy the stop condition. A character string is sent to the dividing means as a new input character string, and the dividing means obtains a new divided character string based on the new input character string,
Selecting N character strings (N is an integer of 0 or more) at the designated character positions as the abbreviated candidate character strings at positions from the first character for each of the basic words in the plurality of basic words; The generator according to any one of claims 1 to 3 , further comprising generating means for generating a first abbreviation of at least two characters or more by a specified combination of the plurality of abbreviation candidate character strings. Word divider.
前記分割手段は、前記1語文字列を入力文字列として取得し、該入力文字列を分割することを特徴とする請求項1から請求項8のいずれか1項に記載の語分割装置。 When the character string is a sentence, the character string is further subjected to morphological analysis, and further includes an analysis unit that acquires a character string that is included in the character string and is one word as a one-word character string,
9. The word dividing device according to claim 1 , wherein the dividing unit acquires the one-word character string as an input character string and divides the input character string.
分割手段が、前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数よりも1少ない数だけ得、
取得手段が、前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得し、
第1判定手段が、前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定し、
第2判定手段が、前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定し、
前記取得手段が、外部にある第1データベース内において前記入力文字列または前記分割文字列を検索した結果である前記第1頻度、前記第2頻度、および前記第3頻度を取得することを特徴とする語分割方法。 The input means accepts the input of the character string, obtains the input character string,
The dividing means divides the input character string into two parts between all characters of the input character string, and the first half character string that is the first half character string after the division and the second half character string that is the second half character string after the division A divided character string consisting of is obtained by a number one less than the number of characters of the input character string,
The acquisition means indicates a first frequency that is a number indicating the frequency of appearance of the input character string, a second frequency that is a number indicating the frequency of appearance of the first half character string, and a frequency of occurrence of the second character string. Get a third frequency that is a number,
The first determination means determines the ratio of the plurality of divided character strings based on a ratio between the first frequency value and the smaller one of the second frequency value and the third frequency value. Is determined as the optimal divided character string.
At least one of the optimal first half character string that is the first half character string included in the optimal divided character string and the optimal second half character string that is the second half character string included in the optimal divided character string is further divided by the second determination unit. When the stop condition indicating no condition is satisfied, a character string satisfying the stop condition is determined as a basic word among the optimal first half character string and the optimal second half character string ,
The acquisition means acquires the first frequency, the second frequency, and the third frequency, which are results of searching the input character string or the divided character string in a first external database. How to split words.
分割手段が、前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数よりも1少ない数だけ得、The dividing means divides the input character string into two parts between all characters of the input character string, and the first half character string that is the first half character string after the division and the second half character string that is the second half character string after the division A divided character string consisting of is obtained by a number one less than the number of characters of the input character string,
取得手段が、前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得し、The acquisition means indicates a first frequency that is a number indicating the frequency of appearance of the input character string, a second frequency that is a number indicating the frequency of appearance of the first half character string, and a frequency of occurrence of the second character string. Get a third frequency that is a number,
第1判定手段が、前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定し、The first determination means determines the ratio of the plurality of divided character strings based on a ratio between the first frequency value and the smaller one of the second frequency value and the third frequency value. Is determined as the optimal divided character string.
第2判定手段が、前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定し、At least one of the optimal first half character string that is the first half character string included in the optimal divided character string and the optimal second half character string that is the second half character string included in the optimal divided character string is further divided by the second determination unit. When the stop condition indicating no condition is satisfied, a character string satisfying the stop condition is determined as a basic word among the optimal first half character string and the optimal second half character string,
前記取得手段が、複数の文字列を記憶し文字列ごとに、文字列と該文字列の頻度とを関連付けて格納している第2データベースから前記第1頻度、前記第2頻度、および前記第3頻度を取得することを特徴とすることを特徴とする語分割方法。The acquisition means stores a plurality of character strings and stores, for each character string, the first frequency, the second frequency, and the second frequency from a second database that stores the character string and the frequency of the character string in association with each other. A word division method characterized by acquiring three frequencies.
分割手段が、前記入力文字列の全ての文字間で該入力文字列を2分割し、分割後の前半部分の文字列である前半文字列と分割後の後半部分の文字列である後半文字列とからなる分割文字列を、前記入力文字列の文字数よりも1少ない数だけ得、The dividing means divides the input character string into two parts between all characters of the input character string, and the first half character string that is the first half character string after the division and the second half character string that is the second half character string after the division A divided character string consisting of is obtained by a number one less than the number of characters of the input character string,
取得手段が、前記入力文字列が出現した度数を示す数である第1頻度と、前記前半文字列が出現した度数を示す数である第2頻度と、前記後半文字列が出現した度数を示す数である第3頻度を取得し、The acquisition means indicates a first frequency that is a number indicating the frequency of appearance of the input character string, a second frequency that is a number indicating the frequency of appearance of the first half character string, and a frequency of occurrence of the second character string. Get a third frequency that is a number,
第1判定手段が、前記第1頻度の値と、前記第2頻度の値および前記第3頻度の値のうちの小さい方の値との比により、複数の前記分割文字列のうちの該比が最小となる分割文字列を最適分割文字列として判定し、The first determination means determines the ratio of the plurality of divided character strings based on a ratio between the first frequency value and the smaller one of the second frequency value and the third frequency value. Is determined as the optimal divided character string.
第2判定手段が、前記最適分割文字列に含まれる前半文字列である最適前半文字列および該最適分割文字列に含まれる後半文字列である最適後半文字列の少なくとも1つが、さらに分割をおこなわない条件を示す停止条件を満たす場合は、前記最適前半文字列および前記最適後半文字列のうち該停止条件を満たす文字列を基本語として判定し、At least one of the optimal first half character string that is the first half character string included in the optimal divided character string and the optimal second half character string that is the second half character string included in the optimal divided character string is further divided by the second determination unit. When the stop condition indicating no condition is satisfied, a character string satisfying the stop condition is determined as a basic word among the optimal first half character string and the optimal second half character string,
前記取得手段が、既存の文書データを取得して、該文書データ中に前記入力文字列、前記前半文字列、および前記後半文字列が出現した度数をそれぞれ測定することにより、前記第1頻度、前記第2頻度、および前記第3頻度を取得することを特徴とする語分割方法。The acquisition means acquires the existing document data and measures the frequency at which the input character string, the first half character string, and the second half character string appear in the document data, thereby obtaining the first frequency, The word dividing method, wherein the second frequency and the third frequency are acquired.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009004939A JP5284117B2 (en) | 2009-01-13 | 2009-01-13 | Word segmentation apparatus and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009004939A JP5284117B2 (en) | 2009-01-13 | 2009-01-13 | Word segmentation apparatus and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010165040A JP2010165040A (en) | 2010-07-29 |
| JP5284117B2 true JP5284117B2 (en) | 2013-09-11 |
Family
ID=42581169
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009004939A Expired - Fee Related JP5284117B2 (en) | 2009-01-13 | 2009-01-13 | Word segmentation apparatus and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5284117B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104750665B (en) * | 2013-12-30 | 2019-05-14 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of text information |
| CN115039042A (en) * | 2020-02-04 | 2022-09-09 | 三菱电机株式会社 | Program creation support device, program creation support method, and program creation support program |
| CN113779990B (en) * | 2021-09-10 | 2023-10-31 | 中国联合网络通信集团有限公司 | Chinese word segmentation methods, devices, equipment and storage media |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62191898A (en) * | 1986-02-18 | 1987-08-22 | 富士通株式会社 | Compound word split processing system |
| JP4007504B2 (en) * | 2003-05-23 | 2007-11-14 | 日本電信電話株式会社 | Word division device, storage medium, and program |
-
2009
- 2009-01-13 JP JP2009004939A patent/JP5284117B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010165040A (en) | 2010-07-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11803596B2 (en) | Efficient forward ranking in a search engine | |
| JP5870790B2 (en) | Sentence proofreading apparatus and proofreading method | |
| US7979268B2 (en) | String matching method and system and computer-readable recording medium storing the string matching method | |
| JP5445787B2 (en) | Attribute extraction method, system and program | |
| JP2006031010A (en) | Method and apparatus for providing recognition of proper names or partial proper names | |
| JP5900367B2 (en) | SEARCH DEVICE, SEARCH METHOD, AND PROGRAM | |
| JP2020087353A (en) | Summary generation method, summary generation program, and summary generation apparatus | |
| JP2011085986A (en) | Text summarization method, its device, and program | |
| KR101379128B1 (en) | Dictionary generation device, dictionary generation method, and computer readable recording medium storing the dictionary generation program | |
| JP5284117B2 (en) | Word segmentation apparatus and method | |
| JP2005038395A (en) | Database retrieval device | |
| WO2008038416A1 (en) | Document searching device and document searching method | |
| JP5447368B2 (en) | NEW CASE GENERATION DEVICE, NEW CASE GENERATION METHOD, AND NEW CASE GENERATION PROGRAM | |
| JP2012185654A (en) | Translation apparatus, translation program, and translation method | |
| JP5169456B2 (en) | Document search system, document search method, and document search program | |
| CN113330430B (en) | Statement structure vectorization device, statement structure vectorization method, and recording medium recording statement structure vectorization program | |
| CN101371252B (en) | Character processing device, method and program, and recording medium | |
| JP5491446B2 (en) | Topic word acquisition apparatus, method, and program | |
| JP5513985B2 (en) | CHARACTER VECTOR GENERATION DEVICE, CHARACTER VECTOR GENERATION METHOD, PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM | |
| KR101113787B1 (en) | Apparatus and method for indexing text | |
| JP2010250389A (en) | Information retrieval system, method and program, and index generation system, method, and program | |
| JP3848014B2 (en) | Document search method and document search apparatus | |
| US20220171937A1 (en) | Document sentence concept labeling system, training method and labeling method thereof | |
| JP6181890B2 (en) | Literature analysis apparatus, literature analysis method and program | |
| JP5229448B2 (en) | Reading imparting device and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110323 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121227 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130205 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130403 |
|
| 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: 20130507 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130529 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5284117 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 Free format text: JAPANESE INTERMEDIATE CODE: R313114 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |