Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4503520B2 - Document data reading apparatus and computer program therefor - Google Patents
[go: Go Back, main page]

JP4503520B2 - Document data reading apparatus and computer program therefor - Google Patents

Document data reading apparatus and computer program therefor Download PDF

Info

Publication number
JP4503520B2
JP4503520B2 JP2005293397A JP2005293397A JP4503520B2 JP 4503520 B2 JP4503520 B2 JP 4503520B2 JP 2005293397 A JP2005293397 A JP 2005293397A JP 2005293397 A JP2005293397 A JP 2005293397A JP 4503520 B2 JP4503520 B2 JP 4503520B2
Authority
JP
Japan
Prior art keywords
cell
item
cells
items
document data
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 - Lifetime
Application number
JP2005293397A
Other languages
Japanese (ja)
Other versions
JP2007102605A (en
Inventor
久美子 大森
昌平 菅原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Data Group Corp
Original Assignee
NTT Data Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Data Corp filed Critical NTT Data Corp
Priority to JP2005293397A priority Critical patent/JP4503520B2/en
Publication of JP2007102605A publication Critical patent/JP2007102605A/en
Application granted granted Critical
Publication of JP4503520B2 publication Critical patent/JP4503520B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

本発明は、入力される文書データを合成音声にて読み上げる文書データ読み上げ装置及びそのコンピュータプログラムに関する。   The present invention relates to a document data reading device that reads out input document data with synthesized speech and a computer program thereof.

利用者に対して簡潔に情報を伝達する情報の表現方法の一つとして、表形式が用いられる場合が多い。表形式は、縦の項目と横の項目という2次元で表現することにより、情報、すなわち項目から特定される要素の関連付けや、変換等を視覚的に示すことができる点で非常に有効な情報の伝達形式である。また、インターネットを介して様々な情報を公開するウェブサイトにおいても、表形式が用いられていることが多い。   A tabular format is often used as one of the methods of expressing information that is simply transmitted to the user. The tabular format is very effective in that it can visually indicate information, that is, the association and conversion of elements specified from the items, by expressing them in two dimensions, vertical items and horizontal items. Is the transmission format. In addition, a tabular format is often used in websites that disclose various information via the Internet.

ところで、上記のようなウェブサイトに表示されている情報を視覚障害者に伝達することを支援する従来技術として、音声読み上げのソフトウェアプログラムや、スクリーンリーダなどが存在する。しかし、音声読み上げソフトウェアプログラムでは、表形式で表現された情報に対して、表の左上から右下に文字を探し、現れた順に文字を1次元の並びとして読み上げていく。すなわち、1列目を左から右に読んだあと、2列目を左から右、続いて3列目というように読み上げていくため、縦と横という2次元の項目に対応する要素としての情報ではなく、単に1次元の情報の羅列となり、視覚障害者が読み上げられる音声を聞いても、現在、読み上げられている情報の行の項目、列の項目が何であるかを読み上げの当初に読み上げられてしまった音声を遡って、行と列の項目が何であり、行と列の項目にどのような関係があり、各情報が行と列のどの項目に該当する要素であるのか理解することは非常に困難である。また、多くの行数、列数から構成される規模の大きい表、あるいは、行と列の項目が一対一に対応していない表に関しては、行と列にどのような項目が存在するかを把握することが更に困難となる。   By the way, as a conventional technique for assisting in transmitting information displayed on the website as described above to a visually handicapped person, there are a software program for reading a voice, a screen reader, and the like. However, the speech-to-speech software program searches for characters expressed in a table format from the upper left to the lower right of the table, and reads out the characters as a one-dimensional sequence in the order they appear. In other words, after reading the first column from left to right, the second column is read from left to right and then the third column, so information as an element corresponding to two-dimensional items of vertical and horizontal Rather, it is simply a list of one-dimensional information, and even if a visually impaired person hears a voice that is read out, it will be read out at the beginning of reading out what is the row item and column item of the information currently being read out. It ’s important to go back and understand what the items in the row and column are, what the relationship is between the items in the row and the column, and what information each element corresponds to which item in the row and the column. It is very difficult. In addition, for large tables composed of many rows and columns, or tables that do not have one-to-one correspondence between row and column items, what items exist in the rows and columns? It becomes more difficult to grasp.

また、上記のような表の構成そのものではなく、例えば、勝敗を表す白丸や黒丸、対戦結果のスコアを表す「数字−数字」のような視覚的な情報表現は、音声読み上げソフトウェアプログラムによる読み上げを聞いても理解するのが困難である。   Also, instead of the above table structure itself, for example, visual information such as white and black circles representing wins and losses, and “numbers-numbers” representing the score of the competition results should be read aloud by a speech-to-speech software program. It is difficult to understand by listening.

特許文献1では、スコアなどを表す表に含まれるデータの記述に着目し、野球の勝敗表や大相撲の星とり表に焦点をあて「(数字列A)+(横棒)+(数字列B)」を「A対B」と読み上げ、自然言語が数字Aの前、Bの後についてくる場合は、当該自然言語をチーム名と判定して、大きい数字のチームに対応する自然言語に「の勝ち」を加えて読み上げるという技術を提案している。また、試合場所や試合開始時間など補完的な情報が括弧付きで付加されている場合には、不要情報として読み上げないなど、規則を辞書に定めて表情報を自然言語に変換する方法も提案している。   In Patent Document 1, focusing on the description of data included in a table representing scores and the like, focusing on the baseball win / loss table and the sumo wrestler table, “(numerical string A) + (horizontal bar) + (numerical string B ) ”As“ A vs. B ”, and the natural language comes before the number A and after the number B, the natural language is determined as the team name, and the natural language corresponding to the team with a large number is We are proposing a technology that reads out with "win". In addition, when supplementary information such as game location and game start time is added with parentheses, we propose a method to convert the table information to natural language by setting rules in the dictionary, such as not reading it as unnecessary information. ing.

しかし、上記の特許文献1に記載の技術は、表の各セルに含まれる情報の表現形式に着目したものであり、読み上げ順序は、従来の音声読み上げソフトウェアプログラムと同じく、左から右へ1列目、2列目、…と順に読み上げていく構成であり、行と列の項目が何であるか、2つのセルが1つに統合された項目、あるいは逆に1つのセルが2つに分解された項目があっても、項目間の関係を、読み上げによって表すことができていないという問題がある。   However, the technique described in Patent Document 1 focuses on the expression format of information included in each cell of the table, and the reading order is one column from the left to the right as in the conventional voice reading software program. It is a structure that reads out in the order of the first, second, and so on, what the items of the row and column are, the item in which two cells are integrated into one, or conversely, one cell is decomposed into two There is a problem that even if there are other items, the relationship between the items cannot be expressed by reading.

特許文献2及び特許文献3に記載の技術では、上記の特許文献1に記載の技術に係る問題を解決するため、表の各セルに含まれる情報に対応している行と列の項目の明瞭化を図っている。すなわち、右から左に1行ずつセルを読み上げさせることや、あるいは上から下に1列ずつセルを読み上げさせるかを利用者がキーボードを操作することで選択可能にしている。また、各セルの読み上げが終了した時点で、行と列の項目が何であるかを利用者がキーボードを操作することによりその都度確認できる機能も提案している。   In the techniques described in Patent Document 2 and Patent Document 3, in order to solve the problem related to the technique described in Patent Document 1, the row and column items corresponding to the information included in each cell of the table are clearly identified. We are trying to make it. That is, the user can select whether to read the cells one row at a time from the right to the left, or to read the cells one column at a time from the top to the bottom by operating the keyboard. It also proposes a function that allows the user to confirm what each item of the row and column is by operating the keyboard when reading of each cell is completed.

また、特許文献2及び特許文献3に記載の技術では、複数のセルが1つに統一されている場合、セルを最小単位に分解して、分解したセルには同じ文書データや値が含まれているものとして、行と列の項目が一対一に対応している表として読み上げる機能も有している。また、指定した行のみ、あるいは列のみを順に読み上げる機能も有しており、行のみを読み上げる場合は、各セルに対する列の項目が何であるかもあわせて読み上げるようにする機能も有している。   Further, in the techniques described in Patent Document 2 and Patent Document 3, when a plurality of cells are unified into one, the cells are decomposed into minimum units, and the decomposed cells include the same document data and values. It has a function of reading out as a table in which the items of the row and the column correspond one-to-one. It also has a function of reading out only the designated row or column in order. When only a row is read out, it also has a function of reading out what the column items for each cell are.

また、さらに、特許文献2及び特許文献3に記載の技術では、キーワードを指定して、キーワードを含むセルのみを抽出し、行と列の情報とあわあせて読み上げることも可能としている。同じ内容のセルが続く場合には、「以下、同文」のように重複しないような読み上げを行うことも特徴の1つである。また、表全体を読み上げず、何行、何列まで読み上げるといった指定も可能としている。   Furthermore, in the techniques described in Patent Document 2 and Patent Document 3, it is possible to specify a keyword, extract only the cell including the keyword, and read it out together with the row and column information. When cells having the same content continue, it is one of the features that reading is performed so as not to overlap as in “the same sentence”. Also, it is possible to specify how many rows and columns are read out without reading out the entire table.

上述したように、特許文献2及び特許文献3に記載の技術では、表全体に記載されている情報が理解できている利用者にとって、必要な情報が明確である場合には、表の読み上げを全て聞かずに、必要な情報のみを聞くことを可能としている。また、表の読み上げを利用者の操作によって進めることができ、各セルに対して行と列の情報をその場で確認できることから、利用者は、個々の情報に対する行と列の項目を容易に把握することが可能となる。
特開平11−134166号公報 特開2004−316972号公報 特開2000−089778号公報
As described above, in the techniques described in Patent Document 2 and Patent Document 3, when the necessary information is clear for a user who can understand the information described in the entire table, the table is read out. It is possible to listen to only the necessary information without listening to everything. In addition, the table can be read out by the user's operation, and the row and column information can be confirmed on the spot for each cell, so the user can easily identify the row and column items for each piece of information. It becomes possible to grasp.
JP-A-11-134166 JP 2004-316972 A JP 2000-089778 A

しかしながら、特許文献2及び3に記載の技術では、必要な情報を指定する前に、利用者が予め表全体にどのような情報が含まれているのかを知っておく必要があり、視覚で情報を確認することができない視覚障害者にとっては、読み上げを聞く前に、自らの必要とする情報が表の中に存在するのか否かの判断をすることは困難であるという問題がある。   However, in the techniques described in Patent Documents 2 and 3, it is necessary for the user to know in advance what information is included in the entire table before designating the necessary information. There is a problem that it is difficult for a visually handicapped person who cannot confirm whether or not the information he / she needs exists in the table before listening to the reading.

本発明は、上記問題を解決すべくなされたもので、その目的は、表形式で表現される情報を音声の出力によって示す場合に、表形式の全体の構成を示す情報を伝達可能とする文書データ読み上げ装置及びそのコンピュータプログラムを提供することにある。   SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and its purpose is to provide a document that can transmit information indicating the overall structure of a tabular format when the information expressed in the tabular format is indicated by audio output. To provide a data reading device and a computer program thereof.

上記問題を解決するために、本発明は、入力される文章データを音声合成により読み上げて出力する文章データ読み上げ装置であって、1以上の行及び1以上の列からなる表内におけるセルの位置と、前記セルに含まれる項目、あるいは、前記セルに含まれる前記項目の要素との対応付けを示す表情報を含む文章データを入力する入力手段と、前記入力手段が入力する文章データから前記表情報を検出する表検出手段と、前記表検出手段が検出する表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定する判定手段と、前記判定手段が項目を含むセルとして判定したセルの個数を算出する項目数算出手段と、前記判定手段が要素を含むセルとして判定したセルの個数を算出する要素数算出手段と、前記項目数算出手段が算出したセルの個数を項目の数として音声合成により読み上げて出力し、前記要素数算出手段が算出したセルの個数を要素の数として音声合成により読み上げて出力する全体出力手段と、前記判定手段が項目を含むセルとして判定した全てのセルに含まれる文章データを音声合成により読み上げて出力する項目出力手段と、前記判定手段が要素を含むセルとして判定したセルに含まれる文章データを音声合成により読み上げて出力する要素出力手段と、を含むことを特徴とする文章データ読み上げ装置である。 In order to solve the above problems, the present invention provides a text data reading device that reads out and outputs input text data by speech synthesis, and the position of a cell in a table composed of one or more rows and one or more columns And input means for inputting sentence data including table information indicating an association with an item included in the cell or an element of the item included in the cell, and the table from the sentence data input by the input means Table detecting means for detecting information, determining means for determining whether each cell of the table information detected by the table detecting means is a cell including the item or a cell including the element, and the determining means Item number calculating means for calculating the number of cells determined as cells including items, element number calculating means for calculating the number of cells determined by the determining means as cells including elements, and item counting A total output means for reading out and outputting by speech synthesis the number of cells calculated by the output means as the number of items, and outputting by reading out the number of cells calculated by the number of elements as a number of elements; and Item output means for reading out and outputting text data included in all cells determined by the determination means as cells including items by speech synthesis; and text data included in the cells determined by the determination means as cells including elements A text data reading device comprising: element output means for reading out by synthesis and outputting.

本発明は、上記に記載の発明において、前記表検出手段が検出する表情報に、統合されたセルが含まれるか否かを判定し、統合されたセルが含まれると判定した場合、前記統合されたセルを分割し、分割元のセルに含まれる項目あるいは要素の内容を、分割した全てのセルの内容とした表情報を出力する統合判定分割手段を備え、前記判定手段は、前記統合判定分割手段が統合されたセルを含まないと判定した場合、前記表検出手段が検出する表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定し、前記統合判定分割手段が統合されたセルを含むと判定した場合、前記統合判定分割手段から出力される表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定することを特徴とする。   The present invention determines whether or not the table information detected by the table detection unit includes an integrated cell in the above-described invention, and determines that the integrated cell is included. The integrated determination dividing means for dividing the divided cells and outputting the table information in which the contents of the items or elements included in the original cell are the contents of all the divided cells. When it is determined that the dividing means does not include an integrated cell, it is determined whether each cell of the table information detected by the table detecting means is a cell including the item or the element, When it is determined that the integrated determination dividing unit includes an integrated cell, it is determined whether each cell of the table information output from the integrated determination dividing unit is a cell including the item or a cell including the element. It is characterized by

本発明は、上記に記載の発明において、ユーザの操作を受けて、前記表形式のセルのうち、前記要素を含むセルの位置を指定する位置情報を入力する要求入力手段を備え、前記要素出力手段は、前記要求入力手段が入力する位置情報に対応するセルに含まれる文章データを音声合成により読み上げて出力することを特徴とする。   The present invention, in the invention described above, comprises request input means for inputting position information for specifying the position of a cell including the element among the tabular cells in response to a user operation, and the element output The means is characterized in that the text data included in the cell corresponding to the position information input by the request input means is read out by speech synthesis and output.

本発明は、上記に記載の発明において、前記判定手段は、前記表情報が行及び列に項目がある表であるか、行のみに項目がある表であるか、列のみに項目がある表であるかを判定し、行及び列に項目がある表と判定した場合、前記表情報の各セルが行に対応する前記項目を含むセルであるか、列に対応する前記項目を含むセルか、前記要素を含むセルであるかを判定し、行のみに項目がある表と判定した場合、前記表情報の各セルが行に対応する前記項目を含むセルであるか、前記要素を含むセルであるかを判定し、列のみに項目がある表と判定した場合、前記表情報の各セルが列に対応する前記項目を含むセルであるか、前記要素を含むセルであるかを判定することを特徴とする。 According to the present invention, in the invention described above, the determination unit is configured such that the table information is a table having items in rows and columns , a table having items only in rows , or a table having items only in columns. If it is determined that the table has items in rows and columns, whether each cell of the table information is a cell including the item corresponding to a row or a cell including the item corresponding to a column If it is determined that the cell includes the element and the table includes an item only in a row, each cell of the table information is a cell including the item corresponding to the row, or a cell including the element determines whether it is, if it is determined that a table with fields only in the column, or each cell of the table information is a cell that contains the item corresponding to the column, determines whether the cell containing the element It is characterized by that.

本発明は、入力される文章データを音声合成により読み上げて出力する文章データ読み上げ装置のコンピュータを、1以上の行及び1以上の列からなる表内におけるセルの位置と、前記セルに含まれる項目、あるいは、前記セルに含まれる前記項目の要素との対応付けを示す表情報を含む文章データを入力する入力手段と、前記入力手段が入力する文章データから前記表情報を検出する表検出手段と、前記表検出手段が検出する表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定する判定手段と、前記判定手段が項目を含むセルとして判定したセルの個数を算出する項目数算出手段と、前記判定手段が要素を含むセルとして判定したセルの個数を算出する要素数算出手段と、前記項目数算出手段が算出したセルの個数を項目の数として音声合成により読み上げて出力し、前記要素数算出手段が算出したセルの個数を要素の数として音声合成により読み上げて出力する全体出力手段と、前記判定手段が項目を含むセルとして判定した全てのセルに含まれる文章データを音声合成により読み上げて出力する項目出力手段と、前記判定手段が要素を含むセルとして判定したセルに含まれる文章データを音声合成により読み上げて出力する要素出力手段と、として機能させるためのコンピュータプログラムである。 The present invention relates to a computer of a text data reading device that reads out text data to be input by speech synthesis and outputs the data , and includes a cell position in a table composed of one or more rows and one or more columns, and items included in the cells. Alternatively, input means for inputting text data including table information indicating correspondence with elements of the items included in the cell, and table detection means for detecting the table information from text data input by the input means; Determination means for determining whether each cell of the table information detected by the table detection means is a cell including the item or a cell including the element; and a cell determined by the determination means as a cell including the item An item number calculating means for calculating the number of cells, an element number calculating means for calculating the number of cells determined by the determining means as a cell containing elements, and a cell number calculated by the item number calculating means. The number of cells is read out by voice synthesis as the number of items and output, and the total number of cells calculated by the number-of-elements calculation unit is read out by voice synthesis as the number of elements and output, and the determination unit Item output means for reading out and outputting sentence data included in all cells determined as including cells by speech synthesis, and reading out and outputting sentence data included in the cells determined by the determination means as cells including elements And a computer program for functioning as an element output means.

この発明によれば、文書データ読み上げ装置は、1以上の行及び1以上の列からなる表内におけるセルの位置と、セルに含まれる項目、あるいは、セルに含まれる項目の要素との対応付けを示す表情報を含む文章データを入力する。入力する文章データから表情報を検出し、検出する表情報の各セルが項目を含むセルであるか、要素を含むセルであるかを判定する。項目を含むセルとして判定したセルの個数を算出し、要素を含むセルとして判定したセルの個数を算出し、項目を含むセルとして算出したセルの個数を項目の数として音声合成により読み上げて出力し、要素を含むセルとして算出したセルの個数を要素の数として音声合成により読み上げて出力する。また、項目を含むセルとして判定した全てのセルに含まれる文章データを音声合成により読み上げて出力し、要素を含むセルとして判定したセルに含まれる文章データを音声合成により読み上げて出力する構成とした。これにより、最初に、表形式の文書データの全体的な表形式の構成が読み上げられ、さらに、項目ごとの内容が読み上げられるため、視覚の利用が困難な状況下において、表の全体像や、項目の要約を理解させることができ、その後で、要素を含むセルを指定して読み上げさせることが可能となる。 According to this invention, the document data reading apparatus associates the position of a cell in a table composed of one or more rows and one or more columns with an item included in the cell or an element of an item included in the cell. Text data including table information indicating is input. Table information is detected from the text data to be input, and it is determined whether each cell of the detected table information is a cell including an item or a cell including an element. Calculate the number of cells determined as cells containing an item, calculate the number of cells determined as cells containing an element, read the number of cells calculated as cells containing an item as the number of items, and output it by speech synthesis. The number of cells calculated as a cell including an element is read out by speech synthesis as the number of elements and output. In addition, text data included in all cells determined as cells including items is read out by voice synthesis and output, and text data included in cells determined as cells including elements is read out and output by voice synthesis. . As a result, first, the overall structure of the tabular document data is read out, and further, the contents of each item are read out. The summary of the item can be understood, and then the cell containing the element can be designated and read out.

また、この発明によれば、文書データ読み上げ装置は、検出する表情報に、統合されたセルが含まれるか否かを判定し、統合されたセルが含まれると判定した場合、統合されたセルを分割し、分割元のセルに含まれる項目あるいは要素の内容を、分割した全てのセルの内容とした表情報を出力する。また、統合されたセルを含まないと判定した場合、検出する表情報の各セルが項目を含むセルであるか、要素を含むセルであるかを判定し、統合されたセルを含むと判定した場合、出力される表情報の各セルが項目を含むセルであるか、要素を含むセルであるかを判定する構成とした。これにより、複数行あるいは複数列が統合されている表形式の文書データであっても、統合されているセルを分割することにより、視覚の利用が困難な状況下においても、統一された表現で表形式の文書データの全体像を表すことが可能となり、視覚の利用が困難な状況下において、表形式の理解を容易にすることが可能となる。  Further, according to the present invention, the document data reading apparatus determines whether or not the table information to be detected includes an integrated cell, and determines that the integrated cell is included. Is output, and table information in which the contents of items or elements included in the original cell are the contents of all the divided cells is output. Also, if it is determined that the integrated cell is not included, it is determined whether each cell of the table information to be detected is a cell including an item or a cell including an element, and it is determined that the cell includes an integrated cell. In this case, it is determined whether each cell of the output table information is a cell including an item or a cell including an element. As a result, even in the case of tabular document data in which multiple rows or multiple columns are integrated, by dividing the integrated cells, even in situations where visual usage is difficult, a unified expression can be obtained. It becomes possible to represent the entire image of the tabular document data, and it is possible to easily understand the tabular format in a situation where visual use is difficult.

また、この発明によれば、文書データ読み上げ装置は、ユーザの操作を受けて、表形式のセルのうち、要素を含むセルの位置を指定する位置情報を入力し、入力する位置情報に対応するセルに含まれる文章データを音声合成により読み上げて出力する構成とした。これにより、ユーザは、表形式の全体像を理解した後に、個別に要素を含むセルを位置情報により特定して、読み上げさせることが可能となる。   Further, according to the present invention, the document data reading apparatus receives position information, inputs position information for designating the position of a cell including an element among tabular cells, and corresponds to the input position information. The text data included in the cell is read out by speech synthesis and output. As a result, after the user understands the overall image of the tabular format, the user can individually specify the cell including the element by the position information and read it out.

また、この発明によれば、文書データ読み上げ装置は、表情報が行及び列に項目がある表であるか、行のみに項目がある表であるか、列のみに項目がある表であるかを判定し、行及び列に項目がある表と判定した場合、表情報の各セルが行に対応する項目を含むセルであるか、列に対応する項目を含むセルか、要素を含むセルであるかを判定し、行のみに項目がある表と判定した場合、表情報の各セルが行に対応する項目を含むセルであるか、要素を含むセルであるかを判定し、列のみに項目がある表と判定した場合、表情報の各セルが列に対応する項目を含むセルであるか、要素を含むセルであるかを判定する構成とした。これにより、行及び列からなる表以外、すなわち行のみ、あるいは列のみの表形式の文書データであっても、表形式の文書データの全体的な表形式の構成を読み上げさせ、さらに、項目ごとの内容が読み上げさせることが可能となり、視覚の利用が困難な状況下において、表形式の理解を容易にすることが可能となる。 Further, according to the present invention, the document data reading apparatus determines whether the table information is a table having items in rows and columns , a table having items only in rows, or a table having items only in columns . If the table is determined to be a table with items in rows and columns, each cell of the table information is a cell that contains items corresponding to rows, cells that contain items corresponding to columns, or cells that contain elements. determine whether, when it is determined that a table with fields only in the row, or a cell that contains the item that each cell of the table information corresponding to the row, determining whether a cell containing the element, the column only When it is determined that the item is a table , it is determined whether each cell of the table information is a cell including an item corresponding to a column or a cell including an element. This makes it possible to read out the overall tabular structure of tabular document data, even for tabular document data other than rows and columns, that is, only rows or columns only, and for each item. Can be read aloud, and in a situation where visual use is difficult, it is possible to easily understand the table format.

以下、本発明の一実施形態を図面を参照して説明する。
図1は、本実施形態による文書データ読み上げ装置1の内部構成を示す概略ブロック図である。入力部10は、項目の情報と当該項目に対応する1つ以上の要素の情報からなる表形式を含む文書データを入力する。ここで、以下の説明では、表形式の各情報をセルと記載し、項目の情報を含むセルを、項目を含むセル、要素の情報を含むセルを、要素を含むセルと記載する。表検出部12は、入力部10から入力される文書データの中から表形式の部分の文書データを検出する。ここで、表形式の検出は、例えば、ウェブサイトで公開されている文書データであって、HTML(Hyper Text Markup Language)で記述された文書データの場合、HTMLのタグ等から表形式の部分を検出する。また、一般的なワープロソフトなどで作成された文書データの場合には、文章中に存在する罫線の形状(表の最上部の横罫線が存在するか、項目欄の区切罫線が存在するか、最下部の横罫線が存在するか、角の部分の罫線が存在するか等)を解析するといった公知の技術により、文書から表を検出する。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic block diagram showing an internal configuration of a document data reading apparatus 1 according to the present embodiment. The input unit 10 inputs document data including a table format including item information and information of one or more elements corresponding to the item. Here, in the following description, each piece of tabular information is described as a cell, a cell including item information is described as a cell including an item, and a cell including element information is described as a cell including an element. The table detection unit 12 detects document data in a tabular format from the document data input from the input unit 10. Here, the detection of the tabular format is, for example, document data published on a website, and in the case of document data described in HTML (Hyper Text Markup Language), the tabular format portion is detected from an HTML tag or the like. To detect. In addition, in the case of document data created with general word processing software, the shape of the ruled line that exists in the sentence (whether there is a horizontal ruled line at the top of the table, there is a delimited ruled line in the item column, The table is detected from the document by a known technique such as analyzing whether the lowest horizontal ruled line exists or the corner ruled line exists.

統合判定・分割部14は、表検出部12が検出した表形式の部分に、表形式の全体構成に基づいて、複数のセルが統合されたセルが存在するか否かを判定する。また、統合判定・分割部14によって複数のセルが統合されたセルが存在すると検出した場合、当該セルを分割し、分割した各セルが、分割元のセルの内容を有する表形式の文書データを構成する。なお、表形式の文書データの中で、左上のセルが空欄、斜め線、あるいは斜め線と行と列の項目で構成されている場合、当該左上のセルについては分割を行わない。   The integration determination / division unit 14 determines whether or not a cell in which a plurality of cells are integrated exists in the table format portion detected by the table detection unit 12 based on the overall configuration of the table format. Further, when it is detected by the integration determining / dividing unit 14 that there is a cell in which a plurality of cells are integrated, the cell is divided, and each divided cell generates tabular document data having the contents of the division source cell. Constitute. In the tabular document data, if the upper left cell is composed of blank, diagonal lines, or diagonal lines and rows and columns, the upper left cell is not divided.

また、統合判定・分割部14は、分割を行う際に、分割元のセルと分割後のセルの対応関係を示した分割対応関係情報を統合情報記憶部30に記録する。   Further, when performing the division, the integration determining / dividing unit 14 records division correspondence information indicating the correspondence between the division source cell and the divided cell in the integrated information storage unit 30.

解析部18は、判定手段18aと、項目数算出手段18bと、要素数算出手段18cとを備えており、統合判定・分割部14が統合されたセルが存在しないと判定した場合、統合判定・分割部14から入力される表形式の部分の文書データに基づいて、統合判定・分割部14が統合されたセルが存在する判定した場合、統合判定・分割部14が分割した後の表形式の文書データに基づいて表形式の解析を行う。   The analysis unit 18 includes a determination unit 18a, an item number calculation unit 18b, and an element number calculation unit 18c. When the integrated determination / division unit 14 determines that there is no integrated cell, the integrated determination / If the integrated determination / division unit 14 determines that there is an integrated cell based on the document data in the tabular format input from the division unit 14, the table format after the integration determination / division unit 14 has divided Perform tabular analysis based on document data.

解析部18において、判定手段18aは、入力される表形式の文書データの左上のセルが空欄、斜め線、または斜め線と行と列の項目で構成されているか否かに基づいて、左上のセルが空欄、斜め線、または斜め線と行と列の項目で構成されている場合、表形式の文書データが、行及び列で構成される表形式の文書データであると判定し、それ以外の場合、行のみ、あるいは列のみで構成されている表形式の文書データであるとして判定する。   In the analysis unit 18, the determination unit 18 a determines whether the upper left cell of the input tabular document data is composed of blank, diagonal line, or diagonal line and row and column items. If the cell is composed of blank, slanted line, or slanted line and row and column items, it is determined that the tabular document data is tabular document data composed of rows and columns. In this case, the document data is determined to be tabular document data composed of only rows or columns.

また、判定手段18aは、行のみ、あるいは列のみで構成される表形式の文書データと判定した場合、どこまでが項目を含むセルで、どこからが要素を含むセルであるかを判定し、項目を含むセルと、要素を含むセルを特定する。また、判定手段18aは、入力される表形式の文書データとともに、項目を含むセルと、要素を含むセルとを特定した情報をデータ記憶部32に記録する。   Further, when the determination unit 18a determines that the document data is in a tabular format including only rows or columns, the determination unit 18a determines how far the cell including the item is, and from where the cell includes the element. Identify the containing cell and the cell containing the element. The determination unit 18a records information specifying the cell including the item and the cell including the element in the data storage unit 32 together with the input document data in the table format.

項目数算出手段18bは、判定手段18aが項目を含むセルであると判定したセルの個数をカウントして出力する。このとき、行と列から構成される表の場合には、左上のセルは、空欄、斜め線、または斜め線と行と列の項目を含むため、左上のセルは除いてカウントする。   The item number calculation means 18b counts and outputs the number of cells determined by the determination means 18a as a cell including an item. At this time, in the case of a table composed of rows and columns, the upper left cell includes items of blanks, diagonal lines, or diagonal lines and rows and columns, and therefore the upper left cells are excluded.

要素数算出手段18cは、判定手段18aが要素を含むセルであると判定したセルの個数をカウントして出力する。当該カウントは、文書データが行と列からなる表形式の文書データの場合、行と列の個数を乗算することによって算出するようにしてもよい。このとき、行と列の数は、要素を含むセルについての行と列の数であり、項目を含むセルについては含まない。   The element number calculation means 18c counts and outputs the number of cells determined by the determination means 18a as a cell including an element. The count may be calculated by multiplying the number of rows and columns when the document data is tabular document data composed of rows and columns. At this time, the number of rows and columns is the number of rows and columns for a cell including an element, and is not included for a cell including an item.

全体出力部24は、判定手段18aから表形式の文書データとともに項目を含むセルと、要素を含むセルとを特定した情報が入力される。また、全体出力部24は、項目を含むセル及び要素を含むセルを特定した情報、項目数算出手段18bが出力する項目を含むセルの個数及び、要素数算出手段18cが出力する要素を含むセルの個数に基づいて、表形式の文書データの全体像を示す読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生、すなわち読み上げて出力する。例えば、「上から○行が行(あるいは横)の項目であり、△個の項目が存在する。左から□列が列(あるいは縦)の項目であり、◇個の項目が存在する。全体のデータ数は◎個である。」等の読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する。また、項目を含むセルが複数行あるいは複数列に存在する場合には、各項目数については「1行(列)目に○個の項目、2行目に△個の項目…」などのようにそれぞれの項目を示す読み上げ用データを生成する。   The entire output unit 24 receives information specifying the cell including the item and the cell including the element together with the document data in the table format from the determination unit 18a. The overall output unit 24 also includes information specifying the cell including the item and the cell including the element, the number of cells including the item output by the item number calculating unit 18b, and the cell including the element output by the element number calculating unit 18c. Based on the number, the reading data indicating the entire image of the tabular document data is generated, and the generated reading data is reproduced by voice synthesis, that is, read and output. For example, “From the top row is a row (or horizontal) item and there are Δ items. From the left, the □ column is a column (or vertical) item, and there are ◇ items. The number of data of “◎” is “◎”, etc., and the read-out data is reproduced by speech synthesis. In addition, when cells including items exist in a plurality of rows or columns, the number of each item is “○ items in the first row (column), Δ items in the second row, etc.”. Read-out data indicating each item is generated.

項目出力部26は、判定手段18aから表形式の文書データとともに項目を含むセルと、要素を含むセルとを特定した情報が入力され、項目を含むセルの内容について1から順に番号を付与した読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する。行と列が存在する場合、「行(あるいは横)にある○個の項目は、1○○、2××、3△△…、列(あるいは縦)にある□個の項目は、1◎◎、2□□、3、◇◇…」等の読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する。   The item output unit 26 receives information specifying the cell including the item and the cell including the element together with the document data in the table format from the determination unit 18a, and reads out the contents of the cell including the item sequentially from 1 Data is generated, and the generated read-out data is reproduced by speech synthesis. If there are rows and columns, “○ items in the row (or horizontal) are 1XX, 2xx, 3ΔΔ... □ items in the column (or vertical) are 1 ◎. ◎ 2 □□, 3, ◇◇ ... "is generated, and the generated read-out data is reproduced by speech synthesis.

要求入力部20は、キーボードなどの入力デバイスが接続され、ユーザの入力デバイスの操作を検出し、検出した操作に基づいて、要素のセルの位置情報を含む個別セル読み上げ指示を入力する。ここで、位置情報とは、行と列から構成される表形式の場合は、行番号と列番号の組み合わせで示されることになる。例えば、ユーザが「1」「Enter」「3」「Enter」のようにキーボード入力すると、1行、3列を示す位置情報を入力することになる。また、要求入力部20は、特定のキーボードのキーがユーザによって操作された場合には、全体を読み上げる指示を示す全体読み上げ指示情報を入力する。   The request input unit 20 is connected to an input device such as a keyboard, detects an operation of the user's input device, and inputs an individual cell reading instruction including position information of the element cell based on the detected operation. Here, in the case of a table format composed of rows and columns, the position information is indicated by a combination of row numbers and column numbers. For example, when the user inputs a keyboard such as “1”, “Enter”, “3”, and “Enter”, position information indicating one row and three columns is input. Further, when a specific keyboard key is operated by the user, the request input unit 20 inputs whole reading instruction information indicating an instruction to read the whole.

要素出力部22は、要求入力部20から入力される指示情報に基づいてデータ記憶部32から文書データを読み出し、読み出した文書データの該当するセルの文書データから読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する。このとき、個別セル読み上げ指示情報が入力される場合であって、行番号と列番号からなる位置情報を含む場合、当該位置情報に対応するセルに含まれる文書データに基づいて読み上げ用データが生成される。行のみあるいは列のみの表形式の場合には、位置情報としては、1つの番号しか含まれないため、行のみの表形式の場合は、該当する行番号を左から右へ読み上げる読み上げ用データが生成され、列のみの表形式の場合は、該当する列番号を上から下へ読み上げる読み上げ用データが生成される。   The element output unit 22 reads out the document data from the data storage unit 32 based on the instruction information input from the request input unit 20, generates the data for reading out from the document data of the corresponding cell of the read out document data, Read-out data is reproduced by speech synthesis. At this time, when individual cell reading instruction information is input and position information including a row number and a column number is included, data for reading is generated based on document data included in a cell corresponding to the position information. Is done. In the case of a table format of only rows or columns, only one number is included as position information. Therefore, in the case of a table format of only rows, read-out data that reads out the corresponding row number from left to right is included. In the case of a table format that includes only columns, read-out data is generated to read out the corresponding column numbers from top to bottom.

また、要素出力部22に全体読み上げ指示情報が入力される場合であって、行と列からなる表形式の文書データの場合には、項目の行及び列を除いた最も左上のセルを基点として行ごとに左から右及び上から下へ連続的に読み上げるための読み上げ用データが生成されることになる。   In the case where the entire reading instruction information is input to the element output unit 22 and the document data is in a tabular format consisting of rows and columns, the upper left cell excluding the row and column of items is used as a base point. Read-out data for continuously reading out from left to right and from top to bottom is generated for each line.

また、要素出力部22に全体読み上げ指示情報が入力される場合であって、行のみから構成される表形式の文書データの場合、要素出力部22は、項目の行を除いた次の行から順に行ごとに左から右へ順に読み上げさせるための読み上げ用データを生成し、列のみから構成される表形式の文書データの場合、要素出力部22は、項目の列を除いた次の行を列ごとに上から下へ読み上げさせるための読み上げ用データを生成するようにしてもよい。   In the case where the entire reading instruction information is input to the element output unit 22 and the document data is in a tabular format including only rows, the element output unit 22 starts from the next line excluding the item line. In the case of tabular document data composed of columns only, the element output unit 22 generates the next line excluding the column of items. Data for reading to be read out from the top to the bottom may be generated for each column.

なお、行と列の指定の順は、上記のように行と列の順に指定するようにしてもよいし、列と行の順に指定するようにしてもよい。   It should be noted that the order of designation of rows and columns may be designated in the order of rows and columns as described above, or may be designated in the order of columns and rows.

また、読み上げ用データを生成する場合に、要素を含むセルの文書データのみを含むように生成してもよいし、読み上げる要素を含むセルに対応する項目を含むセルの文書データを含む読み上げ用データを生成してもよい。   Further, when generating data for reading, it may be generated so as to include only the document data of the cell including the element, or the data for reading including the document data of the cell including the item corresponding to the cell including the element to be read. May be generated.

また、要求入力部20から入力する指示情報に統合判定・分割部14で分割されたセルを個別に読み上げるか、統合して読み上げるかを指定する情報を含めることもでき、統合して読み上げることを指定する情報が含まれる場合、要素出力部22は、統合情報記憶部30に記憶される分割元のセルと分割後のセルの分割対応関係情報を読み出し、読み出した分割対応関係情報に基づいてまとめて1つの要素として読み上げさせる読み上げ用データを生成することもできる。   In addition, the instruction information input from the request input unit 20 can include information designating whether the cells divided by the integration determination / division unit 14 are individually read out or integrated and read out. When the information to be specified is included, the element output unit 22 reads the division correspondence information between the division source cell and the divided cell stored in the integrated information storage unit 30, and summarizes the information based on the read division correspondence information. It is also possible to generate read-out data to be read out as one element.

また、セルに含まれる文書データが数値の場合、要求入力部20から入力する指示情報に各行あるいは各列に対して平均、最大値を有する項目、最小値を有する項目を読み上げさせることを指定する情報を含めるようにすることもできる。   When the document data included in the cell is a numerical value, the instruction information input from the request input unit 20 is designated to read out items having an average and maximum value and items having a minimum value for each row or column. Information can also be included.

次に、図2から図5を参照し、HTMLで記述された表形式の文書データにおいて、複数のセルが統合されたセルを分割する手順について説明する。   Next, a procedure for dividing a cell in which a plurality of cells are integrated in tabular document data described in HTML will be described with reference to FIGS.

図2(a)は、HTMLで記述された表形式の文書データを示した図であり、図2(b)は、図2(a)の文書データをウェブブラウザ等で表示した場合の表の構成を示した図である。図2(a)に示されるように、統合されているセルか否かは、HTMLの<TD>属性に含まれる「Colspan」の値に基づいて、列の結合の有無及び結合数を判定することが可能である。同様に、<TD>属性に「Rowspan」が含まれている場合には、行の結合の有無を判定することができ、さらに「Rowspan」の値に基づいて結合数を判定することが可能である。   FIG. 2A is a diagram showing document data in a tabular format described in HTML, and FIG. 2B is a table when the document data in FIG. 2A is displayed by a web browser or the like. It is the figure which showed the structure. As shown in FIG. 2A, whether or not the cells are integrated is determined based on the value of “Colspan” included in the <TD> attribute of HTML, and whether or not the columns are combined and the number of connections. It is possible. Similarly, when “Rowspan” is included in the <TD> attribute, it is possible to determine whether or not a row is joined, and it is possible to determine the number of joins based on the value of “Rowspan”. is there.

次に、図3のフローチャートを参照しつつ、上記の統合判定・分割部14によって図4(a)に示される複数列の統合を含む表形式の文書データを図5(a)に示す表形式の文書データのように分割する手順について説明する。   Next, referring to the flowchart of FIG. 3, the document data in the tabular format including the integration of a plurality of columns shown in FIG. 4A by the integration determining / dividing unit 14 is shown in the tabular format shown in FIG. A procedure for dividing the document data as described above will be described.

まず、最初に、統合判定・分割部14が表検出部12が検出して入力する表形式の文書データにおいて先頭から順に1組の<TR>と</TR>の箇所を検出する(ステップSa1)。次に、統合判定・分割部14は、検出した<TR>と</TR>の間において、先頭から順に1組の<TD>と</TD>の箇所を検出する(ステップSa2)。そして、統合判定・分割部14は、検出した<TD>にColspanが指定されている、すなわちHTMLの記述が、「<TD Colspan=X>」となっているか否かを判定する(ステップSa3)。Colspanが指定されていない場合、統合判定・分割部14は、次の<TD>と</TD>の組み合わせが存在するか否かを判定し、存在する場合ステップSa2以降の処理を繰り返す(第2ループ)。   First, the integration determination / division unit 14 detects a set of <TR> and </ TR> locations in order from the top in the document data in the table format detected and input by the table detection unit 12 (step Sa1). ). Next, the integration determining / dividing unit 14 detects a pair of <TD> and </ TD> in order from the top between the detected <TR> and </ TR> (step Sa2). Then, the integration determination / division unit 14 determines whether or not Colspan is specified in the detected <TD>, that is, whether or not the HTML description is “<TD Colspan = X>” (step Sa3). . If Colspan is not specified, the integration determination / division unit 14 determines whether the next combination of <TD> and </ TD> exists, and if it exists, repeats the processing from step Sa2 onward (first step). 2 loops).

一方、統合判定・分割部14は、Colspanが指定されている場合、当該列が統合されていると判定する。例えば、図4(a)の例では、最初に、2行目の1列目のセルについて「<TD Colspan=2>え</TD>」となっているため、当該列が統合されていると判定する。次に、統合判定・分割部14は、変数nに、Colspan=Xの「X」に示される値を設定し、変数Valueに<TD>と</TD>の間に存在する文書データを設定し、「Colspan=X」の記述を削除する。例えば、図4(a)の2行目の1列目のセルの場合、変数nに「2」を設定し、変数Valueには「え」を設定する。そして、「<TD Colspan=2>え</TD>」から「Colspan=2」の箇所を削除して「<TD>え</TD>」とする(ステップSa4)。   On the other hand, when the Colspan is designated, the integration determination / division unit 14 determines that the column is integrated. For example, in the example of FIG. 4A, since the cell in the first column of the second row is “<TD Colspan = 2> e </ TD>”, the column is integrated. Is determined. Next, the integration determining / dividing unit 14 sets the value indicated by “X” of Colspan = X to the variable n, and sets the document data existing between <TD> and </ TD> to the variable Value. Then, the description of “Colspan = X” is deleted. For example, in the case of the cell in the first column of the second row in FIG. 4A, the variable n is set to “2”, and the variable Value is set to “e”. Then, the location of “Colspan = 2” is deleted from “<TD Colspan = 2> e </ TD>” to become “<TD> e </ TD>” (step Sa4).

そして、nが1より大きい間(ステップSa5)は、「Colspan=X」の記述を削除した<TD>と</TD>の組み合わせの後に、「<TD>Value</TD>」の記述を付加し(ステップSa6)、変数nにn−1の値を代入する(ステップSa7)。nが1以下となった場合、次の<TD>と</TD>の組み合わせが存在するか否かを判定し、存在する場合、ステップSa2以降の処理を繰り返す(第2ループ)。   While n is larger than 1 (step Sa5), the description of “<TD> Value </ TD>” is added after the combination of <TD> and </ TD> in which the description of “Colspan = X” is deleted. Add (step Sa6), and substitute the value of n-1 for the variable n (step Sa7). When n is 1 or less, it is determined whether or not the next combination of <TD> and </ TD> exists, and if it exists, the processing after step Sa2 is repeated (second loop).

次の<TD>と</TD>の組み合わせが存在しない場合、統合判定・分割部14は、次の<TR>と</TR>の組み合わせが存在するか否かを判定し、存在する場合はステップSa1以降の処理を繰り返す(第1ループ)。一方、存在しない場合には、処理を終了する。   When the next combination of <TD> and </ TD> does not exist, the integration determination / division unit 14 determines whether or not the next combination of <TR> and </ TR> exists, and exists Repeats the processing after step Sa1 (first loop). On the other hand, if it does not exist, the process ends.

上記の処理を繰り返すことにより、図4(a)に示された文書データは、図5(a)のように書き換えられることになる。当該図5(a)のHTMLの文書データをウェブブラウザ等で表示すると、図5(b)のように、図4(b)において統合されていた2行1列目と、3行目の統合されたセルが、分割された状態で表示されることになる。   By repeating the above processing, the document data shown in FIG. 4A is rewritten as shown in FIG. When the HTML document data of FIG. 5A is displayed by a web browser or the like, as shown in FIG. 5B, the integration of the second row and the first column and the third row integrated in FIG. 4B is performed. The divided cells are displayed in a divided state.

上記の処理において、Colspanではなく、Rowspanについて行うと、行についての統合を判定できる。但し、Rowspanについては、分割を行うと次の<TR>と</TR>の間に分割するセルを挿入する手順が加わることになる。   If the above processing is performed for Rowspan instead of Colspan, it is possible to determine integration for rows. However, for Rowspan, when division is performed, a procedure for inserting a cell to be divided between <TR> and </ TR> is added.

次に、図6から図10を参照して、文書データ読み上げ装置1に係る動作について説明する。最初に、入力部10が図7に示す表形式を含む文書データを入力する(ステップSb1)。表検出部12は、入力部10から入力される文書データから表形式の箇所を検出する(ステップSb2)。統合判定・分割部14は、表形式の文書データの中で複数行、あるいは複数列が統合されているセルが存在するか否かを判定する(ステップSb3)。統合判定・分割部14は、統合されているセルが存在する場合には、分割を行う。HTMLの文書の場合には、上述した分割の手順により分割を行うことになる。当該分割により、図7に示す表形式の文書データの場合、図8に示す表形式の文書データのように分割されることなる。表形式を含む文書データを分割した後に、統合判定・分割部14は、分割後の文書データを解析部18に入力するとともに、分割元のセルと分割したセルの対応関係を示す分割対応関係を統合情報記憶部30に記録する(ステップSb4)。なお、上述したように、図7の表形式の文書データでは、左上のセルが斜め線と行と列の項目を含むため、当該セルについては分割を行わない。   Next, operations related to the document data reading apparatus 1 will be described with reference to FIGS. First, the input unit 10 inputs document data including the table format shown in FIG. 7 (step Sb1). The table detector 12 detects a tabular part from the document data input from the input unit 10 (step Sb2). The integration determining / dividing unit 14 determines whether there is a cell in which a plurality of rows or a plurality of columns are integrated in the tabular document data (step Sb3). The integration determining / dividing unit 14 performs division when there is an integrated cell. In the case of an HTML document, division is performed according to the division procedure described above. By the division, the document data in the table format shown in FIG. 7 is divided like the document data in the table format shown in FIG. After dividing the document data including the table format, the integration determination / division unit 14 inputs the divided document data to the analysis unit 18 and also displays a division correspondence indicating the correspondence between the division source cell and the divided cell. It records in the integrated information storage part 30 (step Sb4). Note that, as described above, in the tabular document data in FIG. 7, the upper left cell includes items of diagonal lines, rows, and columns, so that the cell is not divided.

次に、解析部18の判定手段18aは、統合判定・分割部14から入力される表形式の文書データの左上のセルが空欄、斜め線、あるいは斜め線と行と列の項目であるか否かを判定する(ステップSb5)。判定手段18aが、左上のセルが空欄、斜め線、あるいは斜め線と行と列の項目であると判定した場合、当該左上のセルが複数行あるいは複数列が統合されたセルであるか否かを判定する(ステップSb6)。判定手段18aが、左上のセルが複数行あるいは複数列が統合されたセルでないと判定した場合、1行1列の表形式の文章データとして項目を含むセルと、要素を含むセルとを特定する。そして、判定手段18aは、項目を含むセルを特定した情報については項目数算出手段18bに入力し、要素を含むセルを特定した情報については要素数算出手段18cに入力し、項目を含むセル及び要素を含むセルを特定した情報及び文書データを全体出力部24及び項目出力部26に入力する(ステップSb7)。ここで、特定した情報とは、各セルの位置を示す位置情報に項目あるいは要素を示す識別情報が対応付けられた情報等である。   Next, the determination unit 18a of the analysis unit 18 determines whether the upper left cell of the tabular document data input from the integration determination / division unit 14 is a blank, diagonal line, or diagonal line / row / column item. Is determined (step Sb5). If the determination unit 18a determines that the upper left cell is a blank, diagonal line, or diagonal line and row and column item, whether or not the upper left cell is a cell in which a plurality of rows or a plurality of columns are integrated. Is determined (step Sb6). When the determination unit 18a determines that the upper left cell is not a cell in which a plurality of rows or columns are integrated, a cell including items and a cell including elements are specified as tabular text data in one row and one column. . Then, the determination unit 18a inputs information specifying the cell including the item to the item number calculation unit 18b, and inputs information specifying the cell including the element to the element number calculation unit 18c. Information specifying the cell including the element and document data are input to the overall output unit 24 and the item output unit 26 (step Sb7). Here, the specified information is information in which identification information indicating an item or element is associated with position information indicating the position of each cell.

一方、ステップSb6において、判定手段18aが、左上のセルが複数行あるいは複数列が統合されたセルであると判定した場合、上から何行が行の項目であり、左から何列が列の項目であるかを特定して、項目を含むセルを特定する。そして、判定手段18aは、項目を含むセルを特定した情報については項目数算出手段18bに入力し、要素を含むセルを特定した情報については要素数算出手段18cに入力し、項目を含むセル及び要素を含むセルを特定した情報及び文書データを全体出力部24及び項目出力部26に入力する(ステップSb8)。   On the other hand, in step Sb6, when the determination unit 18a determines that the upper left cell is a cell in which a plurality of rows or a plurality of columns are integrated, the number of rows from the top is an item of the row, and the number of columns from the left is the column. Specify whether it is an item, and specify the cell that contains the item. Then, the determination unit 18a inputs information specifying the cell including the item to the item number calculation unit 18b, and inputs information specifying the cell including the element to the element number calculation unit 18c. Information specifying the cell including the element and document data are input to the overall output unit 24 and the item output unit 26 (step Sb8).

一方、ステップSb5において、判定手段18aが、左上のセルが空欄、斜め線、あるいは斜め線と行と列の項目でないと判定した場合、例えば、表検出部12によって検出された表形式の文書データが図9及び図10に示す文書データの場合には、判定手段18aは、表形式の文書データが、行のみ、あるいは列のみのいずれであるかを判定する(ステップSb9)。   On the other hand, when the determination unit 18a determines in step Sb5 that the upper left cell is not a blank, diagonal line, or diagonal line and row and column item, for example, tabular document data detected by the table detection unit 12 9 and FIG. 10, the determination unit 18a determines whether the tabular document data is only a row or only a column (step Sb9).

ここで、表形式の文書データが、行のみであるか、列のみであるかを判定するには、1行目のセルの内容と2行目以降のセルの内容というように縦のセルの内容を順に辿り、1列目、2列目、3列目のセルの内容を比較した場合に、データ形式が1行目のセルの内容と、2行目以降のセルの内容、あるいは1行目及び2行目のセルの内容と3行目以降のセルの内容というように2分される傾向を有する場合には、列には項目が存在せず、行のみの表形式の文書データであると判定する。   Here, in order to determine whether the tabular document data is only a row or only a column, the contents of vertical cells such as the contents of cells in the first row and the contents of cells in the second and subsequent rows are used. When the contents are sequentially traced and the contents of the cells in the first, second, and third columns are compared, the contents of the cell in the first row and the contents of the cells in the second and subsequent rows, or one row When there is a tendency to divide into two, such as the contents of the cells in the first and second rows and the contents of the cells in the third and subsequent rows, there is no item in the column, and the document data is in tabular format with only rows Judge that there is.

一方、縦のセルの内容を辿っても、データ形式が2分される傾向を検出できない場合、1列目のセルの内容と2列目以降のセルの内容というように横のセルの内容を順に辿り、1行目、2行目、3行目のセルの内容を比較して、縦のセルを辿った場合と同様に、2分される傾向を有する場合には、行には項目が存在せず、列のみの表形式の文書データであると判定する。   On the other hand, if it is not possible to detect the tendency that the data format is divided into two even if the contents of the vertical cell are traced, the contents of the horizontal cells such as the contents of the cells in the first column and the contents of the cells in the second column and after are If the contents of the cells in the first row, the second row, and the third row are compared and the vertical cells are traced, the items in the row are It is determined that the document data is in a tabular format with only columns.

上記の処理により、行あるいは列のみからなる表形式の場合には、個々のセルの行と列の項目に基づいても、表によって表現された要素の情報の理解に繋がらない文書データの場合、例えば、1列目に各月を示し、2列目以降、各月の移り変わりを示すような、値の増減や変化を表すことによって要素の情報を明瞭化している表形式の文書データの場合であっても、行、あるいは列のみからなる表形式であることを特定することができる。   In the case of a table format consisting of only rows or columns by the above processing, in the case of document data that does not lead to an understanding of the element information expressed by the table, based on the row and column items of each cell, For example, in the case of tabular document data in which the element information is clarified by representing the increase / decrease or change of the value, such as each month in the first column and the transition of each month in the second column. Even if it exists, it can specify that it is the table format which consists only of a row or a column.

例えば、図9に示す表形式の文書データに対して適用すると、縦のセルの内容を辿っても、データ形式が2分される傾向を検出することができず、横のセルの内容を順に辿ると、1行目及び2行目の組み合わせは、区名と町名であり、3行目のセルは、場所の名称であり、2分されるため、列のみの表形式の文書データであると判定される。   For example, when applied to the document data in the table format shown in FIG. 9, even if the contents of the vertical cells are traced, the tendency that the data format is divided into two cannot be detected, and the contents of the horizontal cells are sequentially changed. Traced, the combination of the first row and the second row is the ward name and the town name, the cell in the third row is the name of the place, and is divided into two, so it is document data in a tabular format only in columns. It is determined.

また、図10に示す表形式の文書データに対して適用すると、縦のセルの内容を辿ると、1列目は曜日であるのに対して、2列目以降は、ごみの種別であるため、行のみの表形式の文書データであると判定される。   Further, when applied to the tabular document data shown in FIG. 10, when the contents of the vertical cells are traced, the first column is the day of the week, whereas the second and subsequent columns are garbage types. It is determined that the document data is in a tabular format with only rows.

なお、上記のデータ形式の判定は、セルに含まれる項目が自然言語と数字であるか否かを判定することによって行われ、さらに、自然言語の間のデータ形式については、予め内部に記憶される辞書データに基づいて、その言語が属するカテゴリの種類、例えば車の名前やゴミの種類などの形式を判定することによって行われる。   The determination of the data format is performed by determining whether or not the items included in the cell are natural language and numbers, and the data format between the natural languages is stored in advance in advance. This is done by determining the type of category to which the language belongs, such as the name of a car or the type of garbage, based on the dictionary data.

判定手段18aが、表形式の文書データが行のみであると判定した場合、上述した判定において、2分された行を基点として、項目を含むセルと、要素を含むセルとを特定する。そして、判定手段18aは、項目を含むセルを特定した情報については項目数算出手段18bに入力し、要素を含むセルを特定した情報については要素数算出手段18cに入力し、項目を含むセル及び要素を含むセルを特定した情報及び文書データを全体出力部24及び項目出力部26に入力する(ステップSb10)。一方、判定手段18aが、表形式の文書データが列のみであると判定した場合、上述した判定において、2分された列を基点として、項目を含むセルと、要素を含むセルとを特定する。そして、判定手段18aは、項目を含むセルを特定した情報については項目数算出手段18bに入力し、要素を含むセルを特定した情報については要素数算出手段18cに入力し、項目を含むセル及び要素を含むセルを特定した情報及び文書データを全体出力部24及び項目出力部26に入力する(ステップSb11)。   When the determination unit 18a determines that the tabular document data is only a row, in the above-described determination, the cell including the item and the cell including the element are specified using the divided line as a base point. Then, the determination unit 18a inputs information specifying the cell including the item to the item number calculation unit 18b, and inputs information specifying the cell including the element to the element number calculation unit 18c. Information specifying the cell including the element and document data are input to the overall output unit 24 and the item output unit 26 (step Sb10). On the other hand, when the determination unit 18a determines that the tabular document data is only a column, in the above-described determination, the cell including the item and the cell including the element are specified based on the divided column. . Then, the determination unit 18a inputs information specifying the cell including the item to the item number calculation unit 18b, and inputs information specifying the cell including the element to the element number calculation unit 18c. Information specifying the cell including the element and document data are input to the overall output unit 24 and the item output unit 26 (step Sb11).

そして、判定手段18aは、ステップSb7、ステップSb8、ステップSb10及びステップSb11において項目を含むセルと、要素を含むセルとを特定した際に、項目を含むセルと、要素を含むセルとを特定した情報と文書データとをデータ記憶部32に記録する(ステップSb12)。   And the determination means 18a specified the cell containing an item, and the cell containing an element, when the cell containing an item and the cell containing an element were specified in step Sb7, step Sb8, step Sb10, and step Sb11. Information and document data are recorded in the data storage unit 32 (step Sb12).

次に、項目数算出手段18bは、判定手段18aから入力される項目を含むセルを特定した情報に基づいて、項目を含むセルの個数のカウントを行い、カウントした値を全体出力部24に出力する(ステップSb13)。また、要素数算出手段18cは、判定手段18aから入力される要素を含むセルを特定した情報に基づいて、要素を含むセルの個数のカウントを行い、カウントした値を全体出力部24に出力する(ステップSb14)。   Next, the item number calculation unit 18b counts the number of cells including the item based on the information specifying the cell including the item input from the determination unit 18a, and outputs the counted value to the overall output unit 24. (Step Sb13). In addition, the element number calculation unit 18c counts the number of cells including the element based on the information specifying the cell including the element input from the determination unit 18a, and outputs the counted value to the overall output unit 24. (Step Sb14).

全体出力部24は、判定手段18aから入力されるセルが項目を含むかあるいは要素を含むかを特定した情報及び文書データと、項目数算出手段18bから入力される項目を含むセルの個数の値と、要素数算出手段18cから入力される要素を含むセルの個数の値とに基づいて、表形式の文書データの全体を示す読み上げ用データを生成し(ステップSb15)、生成した読み上げ用データを音声合成により再生する(ステップSb16)。また、項目出力部26は、判定手段18aから入力される特定した情報及び文書データに基づいて、項目ごとの内容を示す読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する(ステップSb17)。全体出力部24及び項目出力部26から読み上げ用データが音声合成により再生された後、ユーザは、要求入力部20に接続される入力デバイスを操作し、当該操作を受けた要求入力部20は、要素を含むセルを読み上げさせるための指示情報を要素出力部22に入力し、要素出力部22は、入力される指示情報に基づいて、データ記憶部32から文書データを読み出し、読み出した文書データから読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する(ステップSb18)。   The total output unit 24 includes information and document data specifying whether the cell input from the determination unit 18a includes an item or an element, and the value of the number of cells including the item input from the item number calculation unit 18b. Then, based on the value of the number of cells including the elements input from the element number calculation means 18c, reading data indicating the entire document data in the tabular format is generated (step Sb15), and the generated reading data is Playback is performed by speech synthesis (step Sb16). The item output unit 26 generates read-out data indicating the contents of each item based on the specified information and document data input from the determination unit 18a, and reproduces the generated read-out data by speech synthesis ( Step Sb17). After the read-out data is reproduced by speech synthesis from the overall output unit 24 and the item output unit 26, the user operates the input device connected to the request input unit 20, and the request input unit 20 that has received the operation Instruction information for reading a cell including an element is input to the element output unit 22, and the element output unit 22 reads out document data from the data storage unit 32 based on the input instruction information, and reads out the document data from the read document data. Data for reading is generated, and the generated data for reading is reproduced by voice synthesis (step Sb18).

ここで、ステップSb5から、ステップSb12までの処理を、図8に示す分割後の表形式の文書データを例として以下に説明する。まず、判定手段18aは、図8の文書データに基づいて、左上のセルが斜め線と行と列の項目であると判定し、さらに左上のセルが複数の行が統合されたセルであることを判定する。すなわち、当該表形式の文書データは、左上のセルを除いて、上から2行目まで、及び左から1列目までが項目を含むセルであり、3行目以降及び2列目以降のセルは、要素を含むセルであると特定する。そして、項目数算出手段18bは、項目を含むセルをカウントし、その個数が、行が4個、列が10個として出力する。また、要素数算出手段18cは、要素を含むセルの個数をカウントし、その数が20個であるとして算出する。   Here, the processing from step Sb5 to step Sb12 will be described below by taking the tabular document data after division shown in FIG. 8 as an example. First, the determination unit 18a determines that the upper left cell is an item of diagonal lines, rows, and columns based on the document data of FIG. 8, and the upper left cell is a cell in which a plurality of rows are integrated. Determine. That is, the tabular document data is a cell including items from the top to the second row and from the left to the first column, excluding the upper left cell, and the cells from the third row and the second column. Identifies a cell that contains an element. Then, the item number calculating means 18b counts the cells including the items, and outputs the number of cells as four rows and ten columns. The element number calculating means 18c counts the number of cells including the element and calculates that the number is 20.

全体出力部24は、判定手段18aから入力される項目を含むか要素を含むかを特定した情報及び文書データ、及び項目数算出手段18bから入力される項目を含むセルの個数、及び要素数算出手段18cから入力される要素を含むセルの個数に基づいて、「上から2行に、横の項目として地区が5つ記載されています。左から1列に、縦の項目として曜日が4つ記載されています。全体として4行5列、計20のデータがあります。」という読み上げ用データを生成する。このとき、左上のセルの行及び列の項目を利用して、縦及び横の項目を説明する文章データも読み上げ用データに含まれる。そして、全体出力部24は、生成した読み上げ用データを音声合成により再生する。   The overall output unit 24 calculates information and document data specifying whether to include an item or an element input from the determination unit 18a, and the number of cells including an item input from the item number calculation unit 18b and the number of elements. Based on the number of cells that contain the elements input from the means 18c, “There are 5 districts as horizontal items in the 2 rows from the top. 4 days of the week as vertical items in 1 column from the left. "There are a total of 20 data in 4 rows and 5 columns." At this time, the text data explaining the vertical and horizontal items using the row and column items of the upper left cell is also included in the reading data. Then, the overall output unit 24 reproduces the generated reading data by voice synthesis.

項目出力部26は、セルが項目を含むか要素を含むかを特定した情報及び文書データに基づいて、「横に記載されている地区5つは、1、東区、A町、2、東区、B町、3、西区、C町、4、西区、D町、5、西区、E町、です。縦に記載されている曜日4つは、1、月曜日、2、水曜日、3、木曜日、4、金曜日です。」という読み上げ用文章データを生成する。このとき、左上のセルの行及び列の項目を利用して、縦及び横の項目を説明する文章データも読み上げ用データに含まれる。そして、項目出力部26は、生成した読み上げ用データを音声合成により再生する。   The item output unit 26 uses the information specifying whether the cell includes an item or an element and the document data as follows: “The five districts indicated on the side are 1, Higashi-ku, A-machi, 2, East. Ward, B Town, 3, Nishi Ward, C Town, 4, Nishi Ward, D Town, 5, Nishi Ward, E Town, etc. The four days of the week listed are 1, Monday, 2, Wednesday, 3, Thursday. , 4, Friday "is generated. At this time, the text data explaining the vertical and horizontal items using the row and column items of the upper left cell is also included in the reading data. Then, the item output unit 26 reproduces the generated read-out data by voice synthesis.

また、ステップSb13の処理について、図8の文書データを例として以下に説明する。最初に、必要な要素のみを読み上げさせる場合について説明する。予め要求入力部20には、列、行の順に入力されることが予め設定されており、また、要素出力部22は、指定された要素を含むセルの文章データと、当該要素に対応する項目の文書データの列と行を読み出す設定がされているものとする。   Further, the process of step Sb13 will be described below using the document data of FIG. 8 as an example. First, the case where only necessary elements are read out will be described. The request input unit 20 is preset to be input in the order of columns and rows, and the element output unit 22 includes text data of a cell including the specified element and items corresponding to the element. It is assumed that the document data column and row are set to be read.

まず、ユーザが入力デバイスを操作して、「3」「Enter」「2」「Enter」を入力すると要求入力部20は、3列2行目の位置情報を含む個別セル読み上げ指示情報を要素出力部22に入力する。要素出力部22は、個別セル読み上げ指示情報が入力されると当該指示情報に含まれる3列2行目を示す位置情報に基づいて、データ記憶部32から3列2行目のセルに含まれる文書データ「可燃ごみ」を読み出し、3列目の項目のセルに含まれる文書データ「西区」「C町」を読み出し、2行目の項目のセルに含まれる文書データ「水曜日」を読み出し、「西区、C町の水曜日は、可燃ごみ」という読み上げ用データを生成し、生成した読み上げデータを音声合成により再生する。   First, when the user operates the input device and inputs “3”, “Enter”, “2”, and “Enter”, the request input unit 20 outputs the individual cell reading instruction information including the position information of the third column and the second row as an element. Input to the unit 22. When the individual cell reading instruction information is input, the element output unit 22 is included in the cell of the third column and the second row from the data storage unit 32 based on the position information indicating the third column and the second row included in the instruction information. Read the document data “combustible waste”, read the document data “Nishi-ku” and “C town” included in the item cell of the third column, read the document data “Wednesday” included in the item cell of the second row, On Wednesday of Nishi Ward and C town, the data for reading “combustible waste” is generated, and the generated reading data is reproduced by voice synthesis.

なお、要素出力部22が「可燃ごみ」、「西区」、「C町」、「水曜日」という文書データから「西区、C町の水曜日は、可燃ごみ」という読み上げ用データを生成する場合に、これらの文書データに含まれない「〜の」や「〜は」という助詞は、予め項目及びセルの関係ごとに文書データを接続する際に用いられる助詞の情報が内部に記憶されており、要素出力部22が記憶している助詞の情報を読み出し、項目及びセルの関係に基づいて文書データ間に追加して上記の文書データ「西区、C町の水曜日は、可燃ごみ」を生成する。   In addition, when the element output unit 22 generates data for reading “combustible waste on Wednesday in Nishi Ward, C town” from document data “burnable waste”, “Nishi Ward”, “C town”, “Wednesday”, The particle "-no" and "-ha" which are not included in these document data are stored in advance as information on particles used to connect the document data for each item and cell relationship. The information of the particle stored in the output unit 22 is read out and added between the document data based on the relationship between the item and the cell to generate the above-mentioned document data “Nishi-ku, Wednesday in C town combustible waste”.

上記の例とは逆に、予め要求入力部20には、行と列の順に入力されることが予め設定されており、また、要素出力部22は、指定された要素を含むセルの文章データと、当該要素に対応する項目の文書データを行と列の順に読み出す設定がされているものとする。そして、ユーザが入力デバイスを操作して、「3」「Enter」「3」「Enter」を入力すると要求入力部20は、3行3列目の位置情報を含む個別セル読み上げ指示情報を要素出力部22に入力する。要素出力部22は、個別セル読み上げ指示情報が入力されると当該指示情報に含まれる3行3列目を示す位置情報に基づいて、データ記憶部32から3行3列目のセルに含まれる文書データ「瓶・缶・ペットボトル」を読み出し、3行目の項目のセルに含まれる文書データ「木曜日」を読み出し、3列目の項目のセルに含まれる文書データ「西区」「C町」を読み出し、「木曜日、西区、C町は、瓶・缶・ペットボトル」という読み上げ用データを生成し、生成した読み上げデータを音声合成により再生する。   Contrary to the above example, the request input unit 20 is preset to be input in the order of rows and columns, and the element output unit 22 is the text data of the cell including the specified element. It is assumed that the document data of the item corresponding to the element is set to be read in the order of rows and columns. When the user operates the input device and inputs “3”, “Enter”, “3”, and “Enter”, the request input unit 20 outputs the individual cell reading instruction information including the position information of the third row and third column as an element Input to the unit 22. When the individual cell reading instruction information is input, the element output unit 22 is included in the cell of the third row and the third column from the data storage unit 32 based on the position information indicating the third row and the third column included in the instruction information. Read the document data “bottle / can / pet bottle”, read the document data “Thursday” contained in the item cell in the third row, and read the document data “Nishi-ku” and “C town” contained in the item cell in the third column. Is read out, “Thursday, Nishi-ku, C town is bottle / can / pet bottle” is generated, and the generated read-out data is reproduced by speech synthesis.

次に、表全体を読み上げさせる場合について説明する。ユーザが入力デバイスを操作して、全体読み上げを指定する情報が入力されると、要求入力部20は、全体読み上げ指示情報を要素出力部22に入力する。要素出力部22は、データ記憶部32から文書データを読み出し、「東区、A町の月曜日は、可燃ごみ、東区、B町の月曜日は、可燃ごみ、西区、C町の月曜日は不燃ごみ、…」というように最初の行から順に左から右へ読み上げる読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する。   Next, a case where the entire table is read out will be described. When the user operates the input device to input information for designating whole reading, the request input unit 20 inputs whole reading instruction information to the element output unit 22. The element output unit 22 reads out the document data from the data storage unit 32 and reads “combustible garbage on Mondays in East and A towns, combustible garbage on Mondays in East and B towns, and non-burnable garbage on Mondays in Nishi and C towns”. ,..., Read-out data to be read out from left to right in order from the first line is generated, and the generated read-out data is reproduced by speech synthesis.

また、全体読み上げ指示情報に分割されたセルをまとめて読み上げる指示が含まれる場合には、要素出力部22は、統合情報記憶部30を参照し、図7に示す分割前の表形式の文書データの構成に基づいて、「東区、A町、B町ともに月曜日は、可燃ごみ、西区、C町、D町ともに月曜日は不燃ごみ、西区、E町の月曜日は可燃ごみ、東区、A町の水曜日は不燃ごみ、東区、B町の水曜日は、瓶・缶・ペットボトル、西区、C町、D町ともに、水曜日は可燃ごみ、…」というように最初の行から順に左から右へ読み上げる読み上げ用データを生成し、生成した読み上げ用データを音声合成により再生する。   If the entire reading instruction information includes an instruction to read the divided cells together, the element output unit 22 refers to the integrated information storage unit 30 and displays the tabular document data before division shown in FIG. Based on the composition of "While in Higashi Ward, A town, and B town Monday is combustible waste, Monday in both Nishi Ward, C town, and D town, Monday in Nishi Ward, E town, combustible waste, Higashi Ward, A town" From Wednesday to Wednesday, incombustible waste, Higashi Ward, B town Wednesdays, bottles, cans, PET bottles, Nishi Ward, C town, D town, Wednesday combustible waste, etc. Read-out data to be read out is generated, and the generated read-out data is reproduced by speech synthesis.

上記の実施形態の構成により、全体出力部24によって全体的な表形式の構成が読み上げられ、さらに、項目出力部26によって、項目ごとの内容が読み上げられるため、視覚の利用が困難な状況下において、本来視覚で捕らえられることが前提とされている表の全体像や、項目の要約を理解させることができ、視覚障害者にとって表形式の文書データの理解を容易にする効果がある。   With the configuration of the above-described embodiment, the overall output unit 24 reads out the entire tabular configuration, and further, the item output unit 26 reads out the contents of each item, so that it is difficult to use visually. This makes it possible to understand the overview of the table and the summary of items that are supposed to be captured by the eye, and has the effect of facilitating the understanding of tabular document data for visually impaired persons.

なお、本発明の入力手段は、入力部10に対応し、表検出手段は、表検出部12に対応する。また、本発明の判定手段、項目数算出手段、要素数算出手段は、解析部18の判定手段18a、項目数算出手段18b、要素数算出手段18cに対応する。また、本発明の統合判定分割手段は、統合判定・分割部14に対応する。また、本発明の、要求入力手段は、要求入力部20、要素出力手段は、要素出力部22、全体出力手段は、全体出力部24、項目出力手段は、項目出力部26に対応する。   The input unit of the present invention corresponds to the input unit 10, and the table detection unit corresponds to the table detection unit 12. The determination unit, the item number calculation unit, and the element number calculation unit of the present invention correspond to the determination unit 18a, the item number calculation unit 18b, and the element number calculation unit 18c of the analysis unit 18. The integrated determination / division means of the present invention corresponds to the integrated determination / division unit 14. In the present invention, the request input means corresponds to the request input section 20, the element output means corresponds to the element output section 22, the overall output means corresponds to the overall output section 24, and the item output means corresponds to the item output section 26.

上述の文書データ読み上げ装置1は内部に、コンピュータシステムを有している。そして、上述した統合されたセルの分割処理や、表形式の文書データを音声合成により再生する処理は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータが読み出して実行することによって、上記処理が行われる。ここでコンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、このコンピュータプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該プログラムを実行するようにしても良い。   The document data reading apparatus 1 described above has a computer system therein. The integrated cell dividing process and the process of reproducing tabular document data by speech synthesis are stored in a computer-readable recording medium in the form of a program, which is read by the computer. By executing this, the above processing is performed. Here, the computer-readable recording medium means a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, or the like. Alternatively, the computer program may be distributed to the computer via a communication line, and the computer that has received the distribution may execute the program.

本実施形態に係る文書データ読み上げ装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the document data reading apparatus which concerns on this embodiment. 同実施形態に係るHTMLで記述された表形式の文書データを示した図である。It is the figure which showed the document data of the table format described by HTML concerning the embodiment. 同実施形態に係るHTMLで記述された表形式の文書データの統合されたセルの分割処理を示したフローチャートである。It is the flowchart which showed the division | segmentation process of the cell by which the document data of the table format described by HTML concerning the embodiment were integrated. 同実施形態に係るHTMLで記述された表形式の文書データの分割前の状態を示した図である。It is the figure which showed the state before the division | segmentation of the document data of the table format described by HTML concerning the embodiment. 同実施形態に係るHTMLで記述された表形式の文書データの分割後の状態を示した図である。It is the figure which showed the state after the division | segmentation of the document data of the table format described by HTML concerning the embodiment. 同実施形態に係る表形式を含む文書データの読み上げ処理を示したフローチャートである。It is the flowchart which showed the reading-out process of the document data containing the table format based on the embodiment. 同実施形態に係る文書データ読み上げ装置に入力される表形式の文書データ(分割前)を示した図である。It is the figure which showed the document data (before division | segmentation) of the table format input into the document data reading apparatus which concerns on the embodiment. 同実施形態に係る文書データ読み上げ装置に入力される表形式の文書データ(分割後)を示した図である。It is the figure which showed the document data (after division | segmentation) of the table format input into the document data reading apparatus which concerns on the embodiment. 同実施形態に係る列のみからなる表形式の文書データを示した図である。It is the figure which showed the document data of the table format which consists only of the column which concerns on the embodiment. 同実施形態に係る行のみからなる表形式の文書データを示した図である。It is the figure which showed the document data of the table format which consists only of the line which concerns on the embodiment.

符号の説明Explanation of symbols

1 文書データ読み上げ装置
10 入力部
12 表検出部
14 統合判定・分割部
18 解析部
18a 判定手段
18b 項目数算出手段
18c 要素数算出手段
20 要求入力部
22 要素出力部
24 全体出力部
26 項目出力部
30 統合情報記憶部
32 データ記憶部

DESCRIPTION OF SYMBOLS 1 Document data reading apparatus 10 Input part 12 Table | surface detection part 14 Integrated determination / division | segmentation part 18 Analysis part 18a Determination means 18b Item number calculation means 18c Element number calculation means 20 Request input part 22 Element output part 24 Whole output part 26 Item output part 30 integrated information storage unit 32 data storage unit

Claims (5)

入力される文章データを音声合成により読み上げて出力する文章データ読み上げ装置であって、
1以上の行及び1以上の列からなる表内におけるセルの位置と、前記セルに含まれる項目、あるいは、前記セルに含まれる前記項目の要素との対応付けを示す表情報を含む文章データを入力する入力手段と、
前記入力手段が入力する文章データから前記表情報を検出する表検出手段と、
前記表検出手段が検出する表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定する判定手段と、
前記判定手段が項目を含むセルとして判定したセルの個数を算出する項目数算出手段と、
前記判定手段が要素を含むセルとして判定したセルの個数を算出する要素数算出手段と、
前記項目数算出手段が算出したセルの個数を項目の数として音声合成により読み上げて出力し、前記要素数算出手段が算出したセルの個数を要素の数として音声合成により読み上げて出力する全体出力手段と、
前記判定手段が項目を含むセルとして判定した全てのセルに含まれる文章データを音声合成により読み上げて出力する項目出力手段と、
前記判定手段が要素を含むセルとして判定したセルに含まれる文章データを音声合成により読み上げて出力する要素出力手段と、
を含むことを特徴とする文章データ読み上げ装置。
A text data reading device that reads and outputs input text data by speech synthesis,
Sentence data including table information indicating a correspondence between a position of a cell in a table including one or more rows and one or more columns and an item included in the cell or an element of the item included in the cell. Input means for inputting;
Table detection means for detecting the table information from sentence data input by the input means;
Determining means for determining whether each cell of the table information detected by the table detecting means is a cell including the item or a cell including the element;
Item number calculating means for calculating the number of cells determined by the determining means as cells containing items;
Element number calculating means for calculating the number of cells determined by the determining means as cells containing elements;
Whole output means for reading out and outputting the number of cells calculated by the item number calculating means as the number of items by speech synthesis and outputting the number of cells calculated by the element number calculating means as the number of elements by speech synthesis When,
Item output means for reading out and outputting text data contained in all cells determined by the determination means as cells containing items by speech synthesis;
Element output means for reading out and outputting text data included in the cell determined by the determination means as a cell including an element by speech synthesis;
A text data reading device comprising:
前記表検出手段が検出する表情報に、統合されたセルが含まれるか否かを判定し、統合されたセルが含まれると判定した場合、前記統合されたセルを分割し、分割元のセルに含まれる項目あるいは要素の内容を、分割した全てのセルの内容とした表情報を出力する統合判定分割手段を備え、
前記判定手段は、
前記統合判定分割手段が統合されたセルを含まないと判定した場合、前記表検出手段が検出する表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定し、前記統合判定分割手段が統合されたセルを含むと判定した場合、前記統合判定分割手段から出力される表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定することを特徴とする請求項1に記載の文章データ読み上げ装置。
The table information detected by the table detection means determines whether or not an integrated cell is included, and if it is determined that an integrated cell is included, the integrated cell is divided, and the original cell is divided Including an integrated determination division means for outputting table information in which the contents of items or elements included in the contents of all divided cells are output,
The determination means includes
When the integrated determination dividing unit determines that the cell does not include an integrated cell, it is determined whether each cell of the table information detected by the table detection unit is a cell including the item or a cell including the element. When it is determined that the integrated determination dividing unit includes an integrated cell, each cell of the table information output from the integrated determination dividing unit is a cell including the item or a cell including the element. The sentence data reading device according to claim 1, wherein the text data is read out.
ユーザの操作を受けて、前記表形式のセルのうち、前記要素を含むセルの位置を指定する位置情報を入力する要求入力手段を備え、
前記要素出力手段は、
前記要求入力手段が入力する位置情報に対応するセルに含まれる文章データを音声合成により読み上げて出力することを特徴とする請求項1または2に記載の文章データ読み上げ装置。
In response to a user operation, a request input unit is provided for inputting position information for designating a position of a cell including the element among the cells in the table format.
The element output means includes
The text data reading device according to claim 1 or 2, wherein text data included in a cell corresponding to position information input by the request input means is read out by voice synthesis and output.
前記判定手段は、
前記表情報が行及び列に項目がある表であるか、行のみに項目がある表であるか、列のみに項目がある表であるかを判定し、行及び列に項目がある表と判定した場合、前記表情報の各セルが行に対応する前記項目を含むセルであるか、列に対応する前記項目を含むセルか、前記要素を含むセルであるかを判定し、行のみに項目がある表と判定した場合、前記表情報の各セルが行に対応する前記項目を含むセルであるか、前記要素を含むセルであるかを判定し、列のみに項目がある表と判定した場合、前記表情報の各セルが列に対応する前記項目を含むセルであるか、前記要素を含むセルであるかを判定することを特徴とする請求項1から3のいずれか1つに記載の文章データ読み上げ装置。
The determination means includes
It is determined whether the table information is a table having items in rows and columns , a table having items only in rows, or a table having items only in columns , and a table having items in rows and columns. when determining whether the cells of the table information is a cell that contains the entry corresponding to the row, or cell containing the item corresponding to the column, to determine whether the cell containing the element, the row only If it is determined that a table with an entry, or each cell of the table information is a cell that contains the entry corresponding to the line, to determine whether the cell containing the element, determining a table with fields only in the column In this case, it is determined whether each cell of the table information is a cell including the item corresponding to a column or a cell including the element. The text data reading device described.
入力される文章データを音声合成により読み上げて出力する文章データ読み上げ装置のコンピュータを、
1以上の行及び1以上の列からなる表内におけるセルの位置と、前記セルに含まれる項目、あるいは、前記セルに含まれる前記項目の要素との対応付けを示す表情報を含む文章データを入力する入力手段と、
前記入力手段が入力する文章データから前記表情報を検出する表検出手段と、
前記表検出手段が検出する表情報の各セルが前記項目を含むセルであるか、前記要素を含むセルであるかを判定する判定手段と、
前記判定手段が項目を含むセルとして判定したセルの個数を算出する項目数算出手段と、
前記判定手段が要素を含むセルとして判定したセルの個数を算出する要素数算出手段と、
前記項目数算出手段が算出したセルの個数を項目の数として音声合成により読み上げて出力し、前記要素数算出手段が算出したセルの個数を要素の数として音声合成により読み上げて出力する全体出力手段と、
前記判定手段が項目を含むセルとして判定した全てのセルに含まれる文章データを音声合成により読み上げて出力する項目出力手段と、
前記判定手段が要素を含むセルとして判定したセルに含まれる文章データを音声合成により読み上げて出力する要素出力手段と、
として機能させるためのコンピュータプログラム。
A computer of a text data reading device that reads and outputs input text data by speech synthesis,
Sentence data including table information indicating a correspondence between a position of a cell in a table including one or more rows and one or more columns and an item included in the cell or an element of the item included in the cell. Input means for inputting;
Table detection means for detecting the table information from sentence data input by the input means;
Determining means for determining whether each cell of the table information detected by the table detecting means is a cell including the item or a cell including the element;
Item number calculating means for calculating the number of cells determined by the determining means as cells containing items;
Element number calculating means for calculating the number of cells determined by the determining means as cells containing elements;
Whole output means for reading out and outputting the number of cells calculated by the item number calculating means as the number of items by speech synthesis and outputting the number of cells calculated by the element number calculating means as the number of elements by speech synthesis When,
Item output means for reading out and outputting text data contained in all cells determined by the determination means as cells containing items by speech synthesis;
Element output means for reading out and outputting text data included in the cell determined by the determination means as a cell including an element by speech synthesis;
Computer program to function as.
JP2005293397A 2005-10-06 2005-10-06 Document data reading apparatus and computer program therefor Expired - Lifetime JP4503520B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005293397A JP4503520B2 (en) 2005-10-06 2005-10-06 Document data reading apparatus and computer program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005293397A JP4503520B2 (en) 2005-10-06 2005-10-06 Document data reading apparatus and computer program therefor

Publications (2)

Publication Number Publication Date
JP2007102605A JP2007102605A (en) 2007-04-19
JP4503520B2 true JP4503520B2 (en) 2010-07-14

Family

ID=38029470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005293397A Expired - Lifetime JP4503520B2 (en) 2005-10-06 2005-10-06 Document data reading apparatus and computer program therefor

Country Status (1)

Country Link
JP (1) JP4503520B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5947523B2 (en) * 2011-11-10 2016-07-06 日本放送協会 Tabular data output control device and tabular data output control program
JP6417686B2 (en) * 2014-03-18 2018-11-07 富士通株式会社 Audio output sequence control program, audio output sequence control method, and audio output sequence control device
KR102602836B1 (en) * 2015-10-13 2023-11-16 브이알 포토 주식회사 Method and apparatus of speech synthesis for e-book and e-document data structured layout with complex multi layers

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0546607A (en) * 1991-08-08 1993-02-26 Hitachi Ltd Document reading aloud device
JPH08153096A (en) * 1994-11-29 1996-06-11 Canon Inc Document reading device
JP3620972B2 (en) * 1998-09-17 2005-02-16 株式会社リコー Table reading device
JP4263855B2 (en) * 2001-04-12 2009-05-13 日本放送協会 Tactile presentation control device and tactile presentation control method
JP2004361972A (en) * 2004-08-10 2004-12-24 Ricoh Co Ltd Table reader

Also Published As

Publication number Publication date
JP2007102605A (en) 2007-04-19

Similar Documents

Publication Publication Date Title
US11657725B2 (en) E-reader interface system with audio and highlighting synchronization for digital books
CN100418087C (en) Machine translation system and method
US20190196675A1 (en) Platform for educational and interactive ereaders and ebooks
US6572661B1 (en) System and method for automated annotation of files
Rutledge et al. Inter-dimensional hypermedia communicative devices for rhetorical structure
JP4503520B2 (en) Document data reading apparatus and computer program therefor
Williams-Cockfield et al. How public libraries build sustainable communities in the 21st century
KR20090048211A (en) Document conversion and execution method capable of reproducing a sound source, a recording medium for performing the same, and a program for performing the same
JP2002108898A (en) Comment addition system
JPH0696136A (en) Review processor
JP2007257153A (en) Document data reading apparatus and computer program therefor
JPH06324616A (en) Learning device
JP2013058227A (en) Application document information creation device, application document information creation method, and program
JP5441174B2 (en) Related information extraction apparatus, method and program thereof
Vanhoutte A Linkemic Approach to Textual Variation: Theory and Practice of the Electronic-Critical Edition of Stijn Streuvels' De teleurgang van den Waterhoek
JP2000089778A (en) Table reading device
JP4799604B2 (en) Document structure template paper and document information reproduction system
JP4967983B2 (en) Information recording apparatus and program
JP2001155017A (en) Tagged document creation device and recording medium recording the program
JP2000057143A (en) Sentence structure analysis method, sentence structure analysis device, and recording medium storing sentence structure analysis processing program
JP3045123B2 (en) Machine-readable recording medium recording HDL editor and program
JP2005182127A (en) Information processing apparatus and information processing method
JP2666062B2 (en) Book maker
JP2004013850A (en) Text display / speech apparatus and method corresponding to user-specific ideographic characters
JPH11120175A (en) Structured document display system and storage medium recording program functioning computer as structured document display system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100202

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100329

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: 20100413

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100421

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4503520

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140430

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term