JP6505568B2 - Text processing device, control method for text processing device, control program, and recording medium - Google Patents
Text processing device, control method for text processing device, control program, and recording medium Download PDFInfo
- Publication number
- JP6505568B2 JP6505568B2 JP2015192099A JP2015192099A JP6505568B2 JP 6505568 B2 JP6505568 B2 JP 6505568B2 JP 2015192099 A JP2015192099 A JP 2015192099A JP 2015192099 A JP2015192099 A JP 2015192099A JP 6505568 B2 JP6505568 B2 JP 6505568B2
- Authority
- JP
- Japan
- Prior art keywords
- date
- text
- time
- text data
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Description
本発明は、日付を相対的に表現した相対日付を含むテキストデータを処理するテキスト処理装置などに関する。 The present invention relates to a text processing apparatus or the like that processes text data including a relative date representing a date relatively.
ユーザの入力によって生成されたテキストデータに記載された、「明日」、「翌朝」などの日付を相対的に表現した相対日付を、日付を絶対的に表現した絶対日付に変換する技術が従来技術として知られている。特許文献1には、相対日付が示す日付と基準日との差分を特定し、当該相対日付を絶対日付に変換する技術が開示されている。
The prior art is a technology for converting a relative date that relatively represents a date such as "Tomorrow" or "Next morning" described in text data generated by user input into an absolute date that is absolutely represented by a date. Known as
ここで、日付が変わった直後などの、ユーザにとって日付が曖昧な時間帯にテキストデータが生成された場合、ユーザは前日の日付を基準日として相対日付を入力している可能性がある。しかしながら、このような場合、従来技術ではユーザが意図した日の翌日を示す絶対日付に変換されてしまうとともに、相対日付がテキストデータから消えてしまう。よって、ユーザが意図した日付と異なる絶対日付に変換されたとしても、ユーザが気づかないおそれがある。 Here, if text data is generated in a time zone in which the date is ambiguous for the user, such as immediately after the date has changed, the user may have entered a relative date using the date of the previous day as a reference date. However, in such a case, in the prior art, the date is converted into an absolute date indicating the day after the day intended by the user, and the relative date disappears from the text data. Thus, even if the date is converted to an absolute date different from the date intended by the user, the user may not notice it.
本発明は、前記の問題点に鑑みてなされたものであり、その目的は、意図した日付と異なる絶対日付がテキストデータに記載されたとしても、ユーザが容易に気づくことができるテキスト処理装置などを提供することである。 The present invention has been made in view of the above problems, and an object thereof is a text processing apparatus etc. which can be easily noticed by the user even if an absolute date different from the intended date is described in the text data. To provide.
上記の課題を解決するために、本発明の一態様に係るテキスト処理装置は、日付を相対的に表現した相対日付を含むテキストデータを処理するテキスト処理装置であって、上記テキストデータまたは上記テキストデータの生成に使用するデータを取得した時刻である取得時刻が、上記テキストデータを入力するユーザにとって日付が曖昧な時間帯に含まれるか否かを判定する判定部と、曖昧な時間帯に含まれると判定された場合、上記相対日付が示す日付を絶対的に表現した絶対日付を特定し、該絶対日付を追加した出力用テキストデータを生成する一方、含まれないと判定された場合、入力された上記テキストデータを出力用テキストデータとするテキスト変換部と、上記出力用テキストデータの内容を出力する出力部と、を備える。 In order to solve the above problems, a text processing device according to an aspect of the present invention is a text processing device that processes text data including a relative date representing a date relatively, the text data or the text A determination unit that determines whether an acquisition time, which is a time when data used to generate data is acquired, is included in a time zone in which the date is ambiguous for a user who inputs the text data, and is included in the ambiguous time zone If it is determined, the absolute date representing the date indicated by the relative date is specified, and the output text data to which the absolute date is added is generated, while if it is determined that it is not included, the input A text conversion unit that uses the above text data as output text data, and an output unit that outputs the contents of the output text data.
また、上記の課題を解決するために、本発明の一態様に係るテキスト処理装置の制御方法は、日付を相対的に表現した相対日付を含むテキストデータを処理するテキスト処理装置の制御方法であって、上記テキストデータまたは上記テキストデータの生成に使用するデータを取得した時刻である取得時刻が、上記テキストデータを入力するユーザにとって日付が曖昧な時間帯に含まれるか否かを判定する判定ステップと、曖昧な時間帯に含まれると判定した場合、上記相対日付が示す日付を絶対的に表現した絶対日付を特定し、該絶対日付を追加した出力用テキストデータを生成する一方、含まれないと判定した場合、入力された上記テキストデータを出力用テキストデータとするテキスト変換ステップと、上記出力用テキストデータを出力する出力ステップと、を含む。 Further, in order to solve the above problem, a control method of a text processing device according to an aspect of the present invention is a control method of a text processing device that processes text data including a relative date representing a date relatively. Determining whether the acquisition time, which is the time at which the text data or the data used to generate the text data is acquired, is included in a time zone in which the date is ambiguous for the user who inputs the text data If it is determined that the date is included in an ambiguous time zone, an absolute date that absolutely represents the date indicated by the relative date is specified, and text data for output to which the absolute date is added is generated, but is not included. When it is determined that the input text data is output text data, and the output text data is output Including an output step that, a.
本発明の一態様によれば、意図した日付と異なる絶対日付がテキストデータに記載されたとしても、ユーザが容易に気づくことができるという効果を奏する。 According to one aspect of the present invention, even if an absolute date different from the intended date is described in the text data, the user can easily notice.
〔参考技術〕
まず、本発明の参考となる技術(以下、参考技術)について、図1〜図5に基づいて説明する。
[Reference technology]
First, a technique (hereinafter referred to as a reference technique) as a reference of the present invention will be described based on FIGS. 1 to 5.
まず、本参考技術に係る携帯端末1が実行する日付変換処理の概要について、図2を参照して説明する。図2は携帯端末1が実行する日付変換処理の流れを示す遷移図である。本参考技術では、予定を音声で入力し、後で音声出力することでユーザに予定を認識させる音声メモに本発明を適用した例を説明する。
First, an outline of date conversion processing performed by the
図2に示すように、携帯端末1は、ユーザが入力した音声に、日付を相対的に表現した相対日付(図2の例では、「明日」)が含まれている場合、当該相対日付の直後に、日付を絶対的に表現した絶対日付(図2の例では、6/24(水)や6/25(木))を追加した音声を出力する。例えば、図2の(a)に示すように、ユーザが「明日、部長に報告する」という音声を入力すると、携帯端末1は、図2の(c)に示すように、所定の時刻(図2の(c)の例では午前6時30分)に絶対日付を追加した音声を出力する。なお、図2では、所定の時刻に自動的に音声を出力する例を説明したが、ユーザの入力操作に応じて音声を出力してもよい。
As shown in FIG. 2, when the voice input by the user includes a relative date (“Tomorrow” in the example of FIG. 2) relative to the date, the
また、携帯端末1は、音声が入力された時刻が、ユーザにとって日付が曖昧な時間帯に含まれるか否かに応じて、異なる絶対日付を追加する。ユーザにとって日付が曖昧な時間帯とは、具体的には、日付が変わってから所定の時刻となるまでの時間帯であり、換言すれば、ユーザが前日から起きている状態を継続していることにより、日付が変わっていないと認識している可能性がある時間帯である。なお、本参考技術では当該時間帯を午前0時〜午前5時であるとして説明するが、当該時間帯の終了時刻は、午前5時に限定されるものではない。
In addition, the
具体的には、図2の(a)に示すように、音声を入力した日時が6月24日の午前1時4分である、すなわち音声を入力した時刻が上記の時間帯に含まれる場合、音声を入力したユーザは、今の日付が6月23日であると認識して、音声を入力した可能性が高い。この場合、携帯端末1は、図2の(b)に示すように、音声に含まれる相対日付である「明日」に、実際の日付を基準とした「明日」である「6/25」ではなく、1日前の「6/24」という絶対日付を追加した音声を出力する。なお、図2の例では絶対日付だけでなく、曜日も追加して出力しているが、曜日の追加は必須ではない。
Specifically, as shown in (a) of FIG. 2, when the date and time when the voice is input is 1:04 am on June 24, that is, the time when the voice is input is included in the above time zone The user who has input the voice is likely to recognize that the current date is June 23, and have input the voice. In this case, as shown in (b) of FIG. 2, the
一方、図2の(d)に示すように、音声を入力した日時が6月24日の午前10時17分である、すなわち音声を入力した時刻が上記の時間帯に含まれない場合、音声を入力したユーザは、今の日付が6月24日であると認識して、音声を入力した可能性が高い。この場合、携帯端末1は、図2の(e)に示すように、音声に含まれる相対日付である「明日」に、実際の日付を基準とした「明日」である「6/25」という絶対日付を追加した音声を出力する。
On the other hand, as shown in (d) of FIG. 2, when the date when the voice is input is 10:17 on June 24, that is, when the time when the voice is input is not included in the above time zone, the voice is The user who has input is likely to recognize that the present date is June 24th and input a voice. In this case, as shown in (e) of FIG. 2, the
次に、図1を参照して、携帯端末1の要部構成について説明する。図1は、携帯端末1の要部構成の一例を示すブロック図である。
Next, with reference to FIG. 1, the main configuration of the
携帯端末1は、図1に示すように、マイク11、制御部12、記憶部13、およびスピーカ14を備えている。なお、携帯端末1としては、具体的にはスマートフォンを想定しているが、携帯端末1はスマートフォンに限定されない。例えば、フィーチャーフォンやタブレット端末であってもよい。また、図1では、携帯端末1が備える部材のうち、本発明に関連の薄い部材(例えば、画面を表示する表示部、ユーザ操作を受け付ける操作部、通話機能を実行する通話部など)については記載を省略している。
The
マイク11は、音声を取得し、音声データに変換して後述する音声認識部21に出力する。スピーカ14は、後述する音声出力制御部25から取得した音声データを音声に変換して外部に出力する。
The
制御部12は、携帯端末1の機能を統括して制御する。制御部12は、音声認識部21、相対日付判定部22、時刻判定部23、テキスト合成部24、および音声出力制御部25を含む。
The
音声認識部21は、音声データをテキストデータに変換する。具体的には、音声認識部21は、マイク11から取得した音声データに対して音声認識を実行し、テキストデータに変換する。そして、当該テキストデータを識別するテキストIDを生成し、テキストデータとテキストIDとを相対日付判定部22に出力する。また、音声認識部21は、音声データをテキストデータに変換したとき、現在時刻および本日の日付を特定し、これらをテキストデータおよびテキストIDに対応付けて、記憶部13に記憶されている、後述するテキスト関連情報31に格納する。
The
なお、音声認識部21は、携帯端末1の外部装置に備えられている構成であってもよい。この場合、携帯端末1は、取得した音声データを、通信部(図示せず)を介して当該外部装置に送信する。外部装置は、受信した音声データに対して音声認識を実行し、生成したテキストデータを携帯端末1に送信する。
The
ここで、図3を参照して、テキスト関連情報31の詳細について説明する。図3は、テキスト関連情報31のデータ構造および具体例を示す図である。なお、テキスト関連情報31は、図3に示すデータ構造および具体例に限定されるものではない。テキスト関連情報31は、テキストデータを識別する識別情報、テキストデータ、テキストデータを取得した時刻、およびテキストデータを取得した日付を対応付けて記憶するものである。「テキストID」のカラムには、テキストデータを識別する情報であるテキストIDが格納される。なお、図3の例では、テキストIDを英数字からなる文字列としているが、テキストIDはこの例に限定されない。「テキストデータ」のカラムには、音声認識部21が生成したテキストデータが格納される。「取得日付」のカラムには、音声認識部21が特定した、音声データをテキストデータに変換した日付、換言すれば、テキストデータを取得した日付(以下、取得日付)が格納される。「取得時刻」のカラムには、音声認識部21が特定した、音声データをテキストデータに変換した時刻、換言すれば、テキストデータを取得した時刻(以下、取得時刻)が格納される。
Here, the details of the text
なお、取得時刻は、音声データをテキストデータに変換した時刻に限定されない。例えば、音声データを取得した時刻であってもよいし、取得した音声データを記憶部13に記憶する構成の場合、音声データを記憶した時刻であってもよい。
Note that the acquisition time is not limited to the time when the audio data is converted into text data. For example, it may be the time when voice data is acquired, or in the case of a configuration in which the acquired voice data is stored in
相対日付判定部22は、テキストデータ内の相対日付の有無を特定し、また、相対日付がある場合は、当該相対日付が示す、基準日からの日付の移動量を特定する。この移動量について具体的に説明すると、例えば、「明日」という相対日付は、基準日の翌日を意味する。つまり、「明日」という相対日付が示す移動量は「+1」である。同様に、「明後日」という相対日付が示す移動量は「+2」である。
The relative
相対日付判定部22は、音声認識部21からテキストデータを取得すると、記憶部13に記憶されている、後述する相対日付データベース32(以下、相対日付DB32)に含まれている相対日付を示す単語が、テキストデータ内にあるか否かを判定する。
When the relative
ここで、図4を参照して、相対日付DB32の詳細について説明する。図4は、相対日付DB32のデータ構造および具体例を示す図である。図4に示すように、相対日付DB32は、相対日付を示す単語と、当該単語が示す日数の移動量とが対応付けられて記憶されたデータベースである。なお、本参考技術では、相対日付DB32には、現在または未来の日付を示す単語が格納されている。そのため、上記移動量は基準日からの加算日数(以下、加算日数)と表現することができる。「単語」のカラムには、相対日付を示す単語が格納されている。また、「加算日数」のカラムには、上述した加算日数、すなわち、基準日からの日付の移動量を示す数値が格納されている。
Here, the details of the
相対日付判定部22は、相対日付を示す単語が、テキストデータ内にあると判定した場合、相対日付DB32において当該単語と対応付けられた加算日数を特定する。例えば、テキストデータ内に「明日」がある場合、加算日数として「+1」を特定する。そして、特定した加算日数とテキストIDとをテキスト合成部24に出力するとともに、テキストIDを時刻判定部23に出力する。一方、テキストデータ内に無いと判定した場合、相対日付判定部22は、テキストIDをテキスト合成部24に出力する。
When it is determined that the word indicating the relative date is in the text data, the relative
時刻判定部23は、テキストデータを取得した時刻(取得時刻)が、ユーザにとって日付が曖昧な時間帯(以下、日付曖昧時間帯)に含まれるか否かを判定する。具体的には、時刻判定部23は、相対日付判定部22からのテキストIDを受け取ると、テキスト関連情報31を参照して、取得したテキストIDに対応付けられた取得時刻を読み出すとともに、記憶部13から日付境界時刻33(日付変更時刻)を読み出す。日付境界時刻33は、ユーザにとって日付が変わる時刻であり、予め設定された時刻である。本参考技術では、日付境界時刻33として午前5時が格納されているが、この例に限定されるものではない。また、記憶部13は日付境界時刻33に代えて、日付曖昧時間帯(本参考技術の場合、午前0時から午前5時)を記憶してもよい。
The
時刻判定部23は、読み出した取得時刻が、実際に日付が変わる時刻から、読み出した日付境界時刻33までの時間帯に含まれるか否か(すなわち、本参考技術の場合、午前0時≦取得時刻≦午前5時を満たすか否か)を判定する。そして、時刻判定部23は、判定結果をテキスト合成部24(具体的には、後述する絶対日付決定部241)に出力する。
The
テキスト合成部24は、音声認識部21が生成したテキストデータに、絶対日付を追加する。また、テキスト合成部24は絶対日付決定部241を含んでいる。
The
絶対日付決定部241は、テキストデータに追加する絶対日付を決定する。絶対日付決定部241は、時刻判定部23から判定結果を取得すると、テキスト関連情報31から、相対日付判定部22から取得したテキストIDと対応付けられた取得日付を読み出す。そして、読み出した取得日付、相対日付判定部22から取得した加算日数、および時刻判定部23から取得した判定結果を用いて、絶対日付を決定する。
The absolute
具体的には、絶対日付決定部241は、判定結果が、取得時刻が日付曖昧時間帯に含まれることを示すものであった場合、「絶対日付=取得日付+加算日数−1」を演算することによって、絶対日付を特定する。一方、判定結果が、取得時刻が日付曖昧時間帯に含まれないことを示すものであった場合、「絶対日付=取得日付+加算日数」を演算することによって、絶対日付を特定する。
Specifically, when the determination result indicates that the acquisition time is included in the date ambiguous time zone, the absolute
テキスト合成部24は、絶対日付決定部241が決定した絶対日付を、テキストデータに追加する。具体的には、テキスト合成部24は、相対日付判定部22から加算日数とテキストIDとを取得したとき、テキスト関連情報31を参照して、当該テキストIDと対応付けられたテキストデータを読み出す。そして、絶対日付決定部241が絶対日付を特定すると、読み出したテキストデータの相対日付に続くように、当該絶対日付を追加する。例えば、テキストデータが「明日、部長に報告する」であった場合、「明日6/24、部長に報告する」となるように、絶対日付を追加する。なお、テキスト合成部24は絶対日付の後に曜日を追加してもよい。テキスト合成部24は、絶対日付を追加したテキストデータを、出力用データ34として記憶部13に記憶する。また、テキスト合成部24は、絶対日付を追加したテキストデータを用いて、確認用データ(出力用テキストデータ)を生成する。確認用データとは、追加した絶対日付が、ユーザが意図した日付であるか否かをユーザに確認させるためのデータである。具体的には、テキスト合成部24は、「(絶対日付を追加したテキストデータ)を登録しました」というテキストデータを生成する。なお、「(絶対日付を追加したテキストデータ)」には、例えば、「明日6/24、部長に報告する」が入る。そして、テキスト合成部24は、生成した確認用データを音声出力制御部25に出力する。
The
また、テキスト合成部24は、相対日付判定部22からテキストIDのみを取得した場合(すなわち、相対日付判定部22が、テキストデータ内に相対日付が無いと判定した場合)、テキスト関連情報31を参照して、当該テキストIDと対応付けられたテキストデータを読み出す。そして、当該テキストデータを用いて確認用データを生成し、音声出力制御部25に出力する。
When the
音声出力制御部25は、スピーカ14を制御して音声を出力させる。具体的には、音声出力制御部25は、テキスト合成部24から確認用テキストデータを受け取ると、当該確認用データを音声データ(以下、確認用音声データ)に変換する。そして、スピーカ14から確認用音声データに基づく音声を出力させる。また、音声出力制御部25は、所定の時間になったとき、記憶部13から出力用データ34を読み出し、音声データに変換してスピーカ14から出力する。なお、音声出力制御部25は、ユーザが操作部(図示せず)を操作することによって入力された、音声メモの出力指示を取得した場合に、記憶部13から出力用データ34を読み出し、音声データに変換してスピーカ14から出力してもよい。
The voice
記憶部13は、携帯端末1が使用する各種データを記憶する。図1に示すように、記憶部13は少なくとも、テキスト関連情報31、相対日付DB32、日付境界時刻33、および出力用データ34を記憶している。なお、これらの詳細については既に説明しているため、ここでの説明を省略する。
The
次に、図5を参照して、携帯端末1が実行する日付変換処理の流れについて説明する。図5は、日付変換処理の流れの一例を示すフローチャートである。
Next, with reference to FIG. 5, the flow of the date conversion process performed by the
まず、音声認識部21は、音声データの取得を待機する状態となっている(ステップS1、以下「ステップ」を省略)。音声データを取得すると(S1でYES)、音声認識部21は、音声認識を行い、テキストデータを生成する(S2)。音声認識部21は、当該テキストデータをテキストIDとともに相対日付判定部22に出力する。また、音声認識部21は、生成したテキストデータを、テキストID、取得日付、取得時刻と対応付けて記憶する(S3)。具体的には、これらの情報を対応付けてテキスト関連情報31に格納する。
First, the
続いて、相対日付判定部22は、音声認識部21から取得したテキストデータに相対日付が含まれるか否かを判定する(S4)。具体的には、相対日付DB32に格納されている単語が、テキストデータ内にあるか否かを判定する。相対日付が含まれていると判定した場合(S4でYES)、相対日付判定部22は、相対日付DB32を参照して、相対日付に対応付けられた加算日数を特定する(S5)。そして、相対日付判定部22は、特定した加算日数とテキストIDとをテキスト合成部24に出力するとともに、テキストIDを時刻判定部23に出力する。
Subsequently, the relative
続いて、時刻判定部23は、テキストIDを取得すると、テキスト関連情報31から、当該テキストIDに対応付けられた取得時刻を読み出す。さらに、時刻判定部23は日付境界時刻33を読み出す。そして、時刻判定部23は、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たすか否かを判定する(S6)。そして、時刻判定部23は、判定結果を絶対日付決定部241に出力する。
Subsequently, when acquiring the text ID, the
続いて、絶対日付決定部241は、判定結果を取得すると、相対日付判定部22から取得したテキストIDと対応付けられた取得日付を、テキスト関連情報31から読み出す。そして、取得した時刻判定部23の判定結果が、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たすものである場合(S6でYES)、読み出した取得日付、および相対日付判定部22から取得した加算日数を用いて、絶対日付を、取得日付+加算日数−1を満たす日付に決定する(S7)。一方、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たすものでない場合(S6でNO)、絶対日付を、取得日付+加算日数を満たす日付に決定する(S8)。
Subsequently, when the absolute
続いて、テキスト合成部24は、相対日付判定部22からテキストIDを取得したときに読み出しておいたテキストデータに、相対日付に続くように絶対日付決定部241が決定した絶対日付を追加する(S9)。そして、テキスト合成部24は、絶対日付を追加したテキストデータを出力用データ34として記憶部13に記憶する。
Subsequently, the
続いて、テキスト合成部24は、絶対日付を追加したテキストデータから、確認用データを生成する。そして、確認用データを音声出力制御部25に出力する。音声出力制御部25は、確認用データを用いて、確認用音声データを生成する(S10)。そして、音声出力制御部25は、確認用音声データをスピーカ14から出力させる(S12、出力ステップ)。
Subsequently, the
なお、相対日付判定部22が、相対日付が含まれていないと判定した場合(S4でNO)、相対日付判定部22は、テキストIDのみをテキスト合成部24に出力する。テキスト合成部24は、テキストIDを取得すると、テキスト関連情報31から、当該テキストIDに対応付けられたテキストデータを読み出し、確認用データを生成して音声出力制御部25に出力する。音声出力制御部25は、確認用データを用いて、確認用音声データを生成する(S11)。そして、音声出力制御部25は、確認用音声データをスピーカ14から出力させる(S12)。
When the relative
〔実施形態1〕
本発明の一実施形態について、図6〜図8に基づいて説明すれば、以下のとおりである。なお、以降の実施形態では、説明の便宜上、上記参考技術にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。
One embodiment of the present invention will be described below with reference to FIGS. In the following embodiments, for convenience of explanation, the same reference numerals are appended to members having the same functions as the members described in the above reference technology, and the description thereof is omitted.
まず、本実施形態に係る携帯端末1a(テキスト処理装置)が実行する日付変換処理の概要について、図7を参照して説明する。図7は携帯端末1aが実行する日付変換処理の流れを示す遷移図である。携帯端末1aは、図7の(a)に示すように、音声を入力した日時が6月24日の午前1時4分である、すなわち音声を入力した時刻が日付曖昧時間帯に含まれる場合、参考技術で説明した携帯端末1と異なり、図7の(b)に示すように、実際の日付を基準とした「明日」である「6/25」という絶対日付を追加した音声を出力する。
First, an outline of date conversion processing executed by the
一方、携帯端末1aは、図7の(c)に示すように、音声を入力した日時が6月24日の午前10時17分である、すなわち音声を入力した時刻が日付曖昧時間帯に含まれない場合、参考技術で説明した携帯端末1と異なり、図7の(d)に示すように、絶対日付を追加せず、入力された音声をそのまま出力する。
On the other hand, in the
つまり、本実施形態に係る携帯端末1aは、音声を入力した時刻が日付曖昧時間帯に含まれる場合、相対日付が示す絶対日付を追加した音声を出力するのに対し、日付曖昧時間帯に含まれない場合、絶対日付が追加されていない音声を出力する。よって、ユーザは日付曖昧時間帯に入力した音声について、絶対日付を確認することができるので、ユーザの意図とどおりの絶対日付が追加されているか否かを確認することができる。また、意図と異なる場合は、入力した音声メモを修正することができる。
That is, when the time when the voice is input is included in the date ambiguous time zone, the
次に、図6を参照して、携帯端末1aの要部構成について説明する。図6は、携帯端末1aの要部構成の一例を示すブロック図である。なお、本実施形態および後述する実施形態2および3では、参考技術にて説明した部材と部材名が同じ、かつ部材番号が異なる部材については、参考技術にて説明した部材と異なる機能についてのみ説明し、参考技術にて説明した部材と同様の機能については説明を省略する。携帯端末1aは、参考技術にて説明した携帯端末1と異なり、制御部12に代えて制御部12aを備えている。
Next, with reference to FIG. 6, the main configuration of the
制御部12aは、参考技術にて説明した制御部12と異なり、音声認識部21a、相対日付判定部22a、時刻判定部23a(判定部)、およびテキスト合成部24a(テキスト変換部)を含む。
Unlike the
音声認識部21aは、参考技術で説明した音声認識部21と異なり、テキストID、テキストデータ、取得日付、および取得時刻を、時刻判定部23aに出力する。
Unlike the
時刻判定部23aは、参考技術で説明した時刻判定部23と異なり、音声認識部21aから取得したテキストID、テキストデータ、取得日付、および取得時刻を対応付けて、テキスト関連情報31に記憶する。また、時刻判定部23aは、取得時刻が日付曖昧時間帯に含まれると判定した場合、テキストIDおよびテキストデータを相対日付判定部22aに出力する。一方、取得時刻が日付曖昧時間帯に含まれないと判定した場合、テキストIDをテキスト合成部24aに出力する。
Unlike the
相対日付判定部22aは、参考技術にて説明した相対日付判定部22と異なり、相対日付を示す単語が、テキストデータ内にあると判定した場合、加算日数を特定し、特定した加算日数とテキストIDとを対応付けて後述する絶対日付決定部241aに出力する。
Unlike the relative
テキスト合成部24aは、絶対日付決定部241aを含む。絶対日付決定部241aは、参考技術にて説明した絶対日付決定部241と異なり、相対日付判定部22aからテキストIDと加算日数とを取得すると、テキスト関連情報31から、当該テキストIDに対応付けられた取得日付を読み出し、「絶対日付=取得日付+加算日数」を演算することによって、絶対日付を決定する。
The
テキスト合成部24aは、絶対日付決定部241aが絶対日付を決定した場合(すなわち、取得時刻が日付曖昧時間帯に含まれ、かつ、テキストデータに相対日付が含まれる場合)、テキスト関連情報31から、テキストIDを用いて読み出したテキストデータの相対日付に続くように、当該絶対日付を追加し、絶対日付を追加したテキストデータを出力用データ34とし、絶対日付を追加したテキストデータを用いて確認用データを生成する。一方、絶対日付決定部241aが絶対日付を決定しなかった場合(すなわち、取得時刻が日付曖昧時間帯に含まれない、または、テキストデータに相対日付が含まれない場合)、読み出したテキストデータを出力用データ34とし、また、読み出したテキストデータを用いて確認用データを生成する。
When the absolute
次に、図8を参照して、携帯端末1aが実行する日付変換処理の流れについて説明する。図8は、日付変換処理の流れの一例を示すフローチャートである。なお、ステップS21、S22、およびS31に係る処理は、参考技術にて説明した図5のステップS1、S2、およびS12と同様の処理であるため、ここでの説明を省略する。
Next, with reference to FIG. 8, the flow of the date conversion process performed by the
時刻判定部23aは、音声認識部21aが生成したテキストデータを、テキストID、取得日付、取得時刻と対応付けて記憶する(S23)。具体的には、これらの情報を対応付けてテキスト関連情報31に格納する。続いて、時刻判定部23aは、日付境界時刻33を読み出し、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たすか否かを判定する(S24、判定ステップ)。取得時刻が午前0時≦取得時刻≦日付境界時刻を満たす場合(S24でYES)、時刻判定部23aは、テキストIDおよびテキストデータを相対日付判定部22aに出力する。
The
続いて、相対日付判定部22aは、時刻判定部23aから取得したテキストデータに相対日付が含まれるか否かを判定する(S25)。相対日付が含まれていると判定した場合(S25でYES)、相対日付判定部22aは、相対日付DB32を参照して、相対日付に対応付けられた加算日数を特定する(S26)。そして、相対日付判定部22aは、特定した加算日数とテキストIDとを絶対日付決定部241aに出力する。
Subsequently, the relative
続いて、絶対日付決定部241aは、テキスト関連情報31から、相対日付判定部22から取得したテキストIDと対応付けられた取得日付を読み出す。そして、読み出した取得日付、相対日付判定部22から取得した加算日数に応じた絶対日付を決定する(S27)。具体的には、絶対日付決定部241aは、絶対日付を、取得日付+加算日数を満たす日付に決定する。
Subsequently, the absolute
続いて、テキスト合成部24aは、相対日付判定部22aから取得したテキストIDを用いて、テキスト関連情報31から読み出したテキストデータに、相対日付に続くように絶対日付決定部241aが決定した絶対日付を追加する(S28、テキスト変換ステップ)。そして、テキスト合成部24aは、絶対日付を追加したテキストデータを出力用データ34として記憶部13に記憶する。
Subsequently, using the text ID acquired from the relative
続いて、テキスト合成部24aは、絶対日付を追加したテキストデータから、確認用データを生成する。そして、確認用データを音声出力制御部25(出力部)に出力する。音声出力制御部25は、確認用データを用いて、確認用音声データを生成する(S29)。
Subsequently, the
なお、時刻判定部23aが、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たさないと判定した場合(S24でNO)、および、相対日付判定部22aが、相対日付が含まれていないと判定した場合(S25でNO)、時刻判定部23aおよび相対日付判定部22は、テキストIDのみをテキスト合成部24aに出力する。テキスト合成部24aは、テキストIDを取得すると、テキスト関連情報31から、当該テキストIDに対応付けられたテキストデータを読み出し、確認用データを生成して音声出力制御部25に出力する。音声出力制御部25は、確認用データを用いて、確認用音声データを生成する(S30)。
When the
〔実施形態1の変形例〕
上述した実施形態1では、絶対日付決定部241が、取得日付+加算日数を満たす日付を絶対日付として決定する構成を説明したが、この構成に限定されるものではない。例えば、絶対日付決定部241は、取得日付+加算日数−1を満たす日付を絶対日付として決定してもよい。つまり、絶対日付決定部241は、相対日付が示す日付の一日前の日付を、絶対日付として決定してもよい。
Modification of
In the first embodiment described above, the configuration in which the absolute
また、上述した実施形態1に係る携帯端末1aは、時刻判定部23aが、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たさないと判定した場合、絶対日付を決定しないものとして説明したが、この構成に限定されるものではない。例えば、携帯端末1aは、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たすか否かに関わらず、絶対日付を決定し、取得時刻が午前0時≦取得時刻≦日付境界時刻を満たす場合のみ、確認用データに絶対日付を追加し、音声出力する構成であってもよい。ここで、決定した絶対日付と、入力されたテキストデータとを対応付けて記憶すれば、例えば、カレンダーを表示するアプリケーションにおいて、入力されたテキストデータが示す予定を、対応付けられた絶対日付の予定として表示することができる。
In the
〔実施形態2〕
本発明の他の実施形態について、図9〜図11に基づいて説明すれば、以下のとおりである。
Second Embodiment
It will be as follows if other embodiment of this invention is described based on FIGS. 9-11.
まず、図9を参照して、本実施形態に係る携帯端末1bの要部構成について説明する。図9は、携帯端末1bの要部構成の一例を示すブロック図である。携帯端末1bは、参考技術にて説明した携帯端末1と異なり、制御部12および記憶部13に代えて、制御部12bおよび記憶部13bをそれぞれ備えている。また、携帯端末1bは、新たに表示部15を備えている。
First, with reference to FIG. 9, the main configuration of the
表示部15は、後述する表示制御部27から入力される画面を表示する。表示部15としては、液晶ディスプレイ(Liquid Crystal Display;LCD)が挙げられるが、表示機能を有するものであればLCDに限定されない。
The
制御部12bは、参考技術に手説明した制御部12と異なり、新たに日付境界時刻算出部26(決定部)および表示制御部27を含む。
The
表示制御部27は、表示部15に表示する画面を生成し、表示部15に表示させる。また、表示制御部27は、表示部15の画面の表示と非表示とを切り換える。例えば、表示制御部27は、携帯端末1bの操作部(図示せず)に対して、所定時間ユーザの操作が無かった場合、表示部15に表示していた画面を非表示とする(換言すれば、表示部15を消灯する)。また、表示制御部27は、ユーザが操作部に対して所定の操作を入力した(例えば、画面の表示と非表示とを切り換えるボタンを押下した)場合、当該操作に応じた信号を取得し、表示部15に画面を表示したり、表示していた画面を非表示としたりしてもよい。表示制御部27は、表示部15の画面を非表示としたとき、その旨を日付境界時刻算出部26に通知する。
The
日付境界時刻算出部26は、ユーザが就寝した時刻を推定し、当該時刻に基づいて日付境界時刻を算出する。具体的には、日付境界時刻算出部26は、表示制御部27からの通知を受けると、通知を受けた時刻を、表示部15を消灯した時刻(以下、消灯時刻)として一時的に保持する。そして、日付境界時刻算出部26は、表示制御部27から通知を受けるたびに消灯時刻を更新する。また、日付境界時刻算出部26は、ユーザが起床するために設定した、携帯端末1bにおいてアラームを鳴動させる時刻(以下、アラーム時刻)を予め取得しておき、当該アラーム時刻となったとき、保持している消灯時刻を、その日の日付を示す日付情報と対応付けて、就寝時刻履歴35(履歴)に格納する。これはつまり、ユーザが起床する時刻の直前の消灯時刻をユーザが就寝した時刻と推定し、当該時刻を就寝時刻として記憶するということである。
The date boundary
ここで、図10を参照して、就寝時刻履歴35の詳細について説明する。図10は、就寝時刻履歴35のデータ構造および具体例を示す図である。なお、就寝時刻履歴35は、図10に示すデータ構造および具体例に限定されるものではない。就寝時刻履歴35は、上述した日付情報と消灯時刻とを対応付けて記憶するものである。「日付情報」のカラムには、図10に示すように、日付を特定するための年月日および曜日が格納される。なお、当該カラムに記憶される情報は、日付が特定可能なものであればよい。例えば、曜日が省略されていてもよい。「就寝時刻」のカラムには、図10に示すように、時刻の情報が格納される。この情報は上述したように、日付境界時刻算出部26が保持していた消灯時刻である。なお以降、就寝時刻履歴35に格納されている時刻を「就寝時刻」と称する。
Here, the
日付境界時刻算出部26は、就寝時刻履歴35に消灯時刻を格納すると、所定の期間(例えば、本日から6日前まで、すなわち直近の1週間)の就寝時刻を読み出し、就寝時刻の平均(以下、平均就寝時刻)を算出する。そして、日付境界時刻算出部26は、算出した平均就寝時刻を、日付境界時刻33として記憶部13bに記憶する。
When the turn-off time is stored in the
なお、上述した例では、直近の1週間の就寝時刻を用いて平均就寝時刻、すなわち日付境界時刻33を算出したが、この例に限定されるものではない。例えば直近の1か月の就寝時刻を用いてもよい。また、最新の就寝時刻に対応付けられた日付情報が示す曜日を含む日付情報に対応付けられた就寝時刻を用いてもよい。これにより、曜日を考慮した日付境界時刻の設定が可能となる。例えば、金曜日は就寝時刻が遅いので、日付境界時刻33を遅い時刻とする、といった設定が可能となる。
In the example described above, although the average bedtime, that is, the
記憶部13bは、参考技術にて説明した記憶部13と異なり、新たに就寝時刻履歴35を記憶している。なお、就寝時刻履歴35の詳細については既に説明しているため、ここでの説明を省略する。
Unlike the
次に、図11を参照して、携帯端末1b(日付境界時刻算出部26)が実行する日付境界時刻算出処理の流れについて説明する。図11は日付境界時刻算出処理の流れの一例を示すフローチャートである。なお、携帯端末1bが実行する日付変換処理の流れは、実施形態1にて、図6を参照して説明した日付変換処理と同様であるため、ここでの説明を省略する。
Next, the flow of the date boundary time calculation process performed by the
まず、日付境界時刻算出部26は、表示制御部27からの表示部15の消灯の通知を待機する(S41)。表示制御部27から、表示部15の消灯を通知された場合(S41でYES)、日付境界時刻算出部26は、保持している消灯時刻を更新する(S42)。続いて、日付境界時刻算出部26は、アラーム時刻となるまで待機する(S43)。アラーム時刻となっていない場合(S43でNO)、日付境界時刻算出処理はステップS41に戻る。すなわち、日付境界時刻算出部26は、アラーム時刻となるまで、表示制御部27からの通知を受けた場合に消灯時刻を更新する処理を繰り返す。
First, the date boundary
一方、アラーム時刻となった場合(S43でYES)、日付境界時刻算出部26は保持している消灯時刻を就寝時刻履歴35に格納する(S44)。続いて、日付境界時刻算出部26は、就寝時刻履歴35に格納されている就寝時刻(消灯時刻)を用いて、平均就寝時刻を算出する(S45)。最後に、日付境界時刻算出部26は、算出して平均就寝時刻を日付境界時刻33として記憶部13bに記憶する(S46)。そして、日付境界時刻算出処理はステップS41に戻る。
On the other hand, when the alarm time has come (YES in S43), the date boundary
以上のように、本実施形態に係る携帯端末1bは、ユーザの就寝時刻を推定し、推定した就寝時刻に基づいて日付境界時刻33を決定する。これにより、ユーザの就寝時刻に応じて、日付曖昧時間帯を変更することができる。
As described above, the
〔実施形態2の変形例〕
本実施形態では、アラーム時刻の直前の消灯時刻をユーザの就寝時刻とし、就寝時刻履歴35に格納する例を説明したが、この例に限定されるものではない。例えば、日付境界時刻算出部26は、表示部15の消灯の通知を受けてから所定時間、新たな消灯の通知を受けなかった場合、保持している消灯時刻を就寝時刻履歴35に格納してもよい。
Modification of
In the present embodiment, an example is described in which the turn-off time immediately before the alarm time is taken as the user's bedtime and the
また、日付境界時刻算出部26は、就寝時刻ではなく起床時刻を推定してもよい。具体的には、日付境界時刻算出部26は、ユーザがアラーム時刻を設定するたびに当該アラーム時刻を取得し、取得したアラーム時刻を日付境界時刻33として記憶部13bに記憶してもよい。また、日付境界時刻算出部26は、アラーム時刻を越えてから最初に取得した、表示制御部27から表示部15が点灯したことを示す通知(すなわち、表示部15に画面が表示されたことを示す通知)について、当該通知を受けた時刻を起床時刻として起床時刻履歴(図示せず)に格納してもよい。そして、日付境界時刻算出部26は、起床時刻履歴に格納された時刻を用いて、起床時刻の平均を算出し、算出した時刻を日付境界時刻33として記憶部13bに記憶してもよい。なお、起床時刻履歴の詳細は、時刻を格納するカラムのタイトルが「起床時刻」に変わるほかは、図10に示した就寝時刻履歴35と同様であるため、ここでの説明を省略する。さらに、日付境界時刻算出部26が推定する時刻は、ユーザが所定の行動をとった時刻であり、かつ、携帯端末1bにて当該行動をとったことを特定可能な時刻(例えば、当該行動に応じて、携帯端末1bが所定の状態となった時刻)であればよく、就寝時刻、起床時刻に限定されない。
In addition, the date boundary
なお、携帯端末1bは、参考技術にて説明した携帯端末1に、表示部15、日付境界時刻算出部26、表示制御部27を追加したものとして説明したが、実施形態1に係る携帯端末1aにこれらの部材を追加したものであってもよい。つまり、実施形態1の構成に本実施形態の構成を適用したものであってもよい。
Although the
〔実施形態3〕
本発明のさらに別の実施形態について、図12および図13に基づいて説明すれば、以下のとおりである。
Third Embodiment
Another embodiment of the present invention will be described below with reference to FIGS. 12 and 13.
実施形態2では、ユーザの就寝時刻や起床時刻を推定し、推定したこれらの時刻から日付境界時刻33を算出する例を説明したが、日付境界時刻33は、上述した例のように変更される構成に限定されるものではない。例えば、ユーザが望みの日付境界時刻33を設定する構成であってもよい。
In the second embodiment, an example is described in which the user's bedtime and wake-up time are estimated and the
図12は、本実施形態に係る携帯端末1cの要部構成を示すブロック図である。携帯端末1cは、参考技術にて説明した携帯端末1と異なり、制御部12に代えて制御部12cを備えている。また、新たに表示部15および操作部16(入力部)を備えている。なお、表示部15については実施形態3にて既に説明しているため、ここでの説明を省略する。
FIG. 12 is a block diagram showing the main configuration of a
操作部16は、ユーザの入力操作を取得し、当該入力操作を示す情報を制御部12c(具体的には、後述する日付境界時刻設定部29)に出力する。なお、本実施形態では、操作部16はタッチパネルであり、表示部15と一体となっているものとして説明する。ただし、操作部16はタッチパネルに限定されるものではなく、物理ボタンや、その他の入力デバイスであってもよい。
The
ここで、図13を参照して、本実施形態におけるユーザの入力操作の詳細を説明する。図13は、携帯端末1cに対するユーザの入力操作に応じた画面遷移図である。表示部15は、操作部16に対するユーザの入力操作に応じて、図13の(a)に示す画面を表示する。当該画面は、音声メモのアプリケーションにおける設定画面であり、図13の(a)に示すように、日付境界時刻を設定するユーザインターフェース(以下、UI)を表示するためのソフトウェアキー61が表示されている。ユーザがソフトウェアキー61にタッチ操作を行うと、表示部15に表示された画面が図13の(b)に示す画面に切り替わる。図13の(b)に示すように、当該画面には、日付境界時刻を設定するためのUI62が表示されている。ユーザがUI62に対するタッチ操作によって時刻を入力した後、設定キー63を押下することで、操作部16は、入力された時刻の情報(以下、入力時刻)を日付境界時刻設定部29に出力する。
Here, the details of the user's input operation in the present embodiment will be described with reference to FIG. FIG. 13 is a screen transition diagram according to the user's input operation on the
制御部12cは、参考技術にて説明した制御部12と異なり、新たに表示制御部28および日付境界時刻設定部29を含む。
The
日付境界時刻設定部29は、ユーザ操作に応じて日付境界時刻33を設定する。具体的には、日付境界時刻設定部29は、操作部16から、UI62を表示するための入力操作を示す情報を取得すると、表示制御部28にUI62を表示するよう指示する。また、日付境界時刻設定部29は、操作部16から入力時刻を取得すると、当該時刻を日付境界時刻33として記憶部13に記憶する。
The date boundary
以上のように、本実施形態に係る携帯端末1cは、日付境界時刻33をユーザが設定可能な構成である。これにより、ユーザは自身の望みどおりに日付境界時刻33を変更することができる。なお、携帯端末1cは、参考技術にて説明した携帯端末1に、表示部15、操作部16、表示制御部28、日付境界時刻設定部29を追加したものとして説明したが、実施形態1に係る携帯端末1aにこれらの部材を追加したものであってもよい。つまり、実施形態1の構成に本実施形態の構成を適用したものであってもよい。
As described above, the
なお、本実施形態では、操作部16に対するユーザの操作に応じて、日付境界時刻33を設定する構成を説明したが、ユーザの入力によって日付境界時刻33を設定する構成であれば、本実施形態の構成に限定されない。例えば、マイク11に対する音声入力で日付境界時刻33を設定する構成であってもよい。
In the present embodiment, the
〔実施形態1〜3に共通の変形例〕
上述した各実施形態では、ユーザが入力した音声データをテキストデータに変換し、相対日付を絶対日付に変換する例を説明した。しかしながら、本発明は音声データを入力する構成に限定されない。例えば、ユーザが操作部を操作することで入力したテキストデータに含まれる相対日付を、絶対日付に変換する構成であってもよい。
[Modification common to
In each embodiment mentioned above, the example which converts the voice data which the user inputted into text data, and converts relative date into an absolute date was explained. However, the present invention is not limited to the configuration for inputting voice data. For example, the relative date included in the text data input by the user operating the operation unit may be converted into an absolute date.
また、上述した各実施形態では、予定、すなわち未来の行動を入力する音声メモのアプリケーションに本発明を適用した例を説明した。すなわち、相対日付DB32には、現在または未来の日付を示す単語が格納されている例を説明した。しかしながら、本発明はこの例に限定されない。例えば、相対日付DB32には過去の日付を示す単語(例えば、「昨日」、「一昨日」、「n日前」など)が格納されていてもよい。相対日付DB32をこのような構成とすることで、音声やユーザ操作などで過去の行動を入力するアプリケーション(例えば、日記として利用できるアプリケーション)に、本発明を適用することができる。
Further, in each of the above-described embodiments, an example has been described in which the present invention is applied to an application of a voice memo for inputting a schedule, that is, a future action. That is, the
また、相対日付判定部22、22aは、テキストデータに含まれる相対日付が「今日」である場合、加算日数とテキストIDとを時刻判定部23、23aに出力せず、相対日付が「今日」である旨を絶対日付決定部241、241aに通知してもよい。絶対日付決定部241、241aは、当該通知を受けると、相対日付判定部22、22aから取得したテキストIDと対応付けられた取得日付を、テキスト関連情報31から読み出す。そして、絶対日付を読み出した取得日付に決定する。これは、上述した各実施形態では、予定(すなわち、未来の行動)を入力する音声メモのアプリケーションに本発明を適用しているため、「今日」という相対日付が含まれる場合、取得時刻に関わらず「今日」は本日の日付を示すと特定できるためである。
Further, when the relative date included in the text data is "today", the relative
また、上述した各実施形態では、本発明を携帯端末に適用した例を説明したが、本発明は、携帯端末以外にも適用可能である。例えば、音声の入出力機能、またはテキストデータの入出力機能を備えた、冷蔵庫、電子レンジ、掃除機などの家電、パーソナルコンピュータなどの情報処理装置、および自動車などに適用可能である。また、音声の入出力機能、またはテキストデータの入出力機能を備えた装置と、本発明を適用した装置(すなわち、相対日付を含むテキストデータを処理する装置)とが別体であってもよい。この場合、これら2つの装置は通信可能に接続された構成である。 Moreover, although the example which applied this invention to the portable terminal was demonstrated in each embodiment mentioned above, this invention is applicable other than a portable terminal. For example, the present invention can be applied to a refrigerator, a microwave oven, a household appliance such as a vacuum cleaner, an information processing apparatus such as a personal computer, an automobile, or the like provided with an audio input / output function or text data input / output function. In addition, the device having the voice input / output function or the text data input / output function may be separate from the device to which the present invention is applied (that is, a device for processing text data including relative date). . In this case, these two devices are communicably connected.
〔ソフトウェアによる実現例〕
携帯端末1a〜1cの制御ブロック(特に制御部12a〜12c)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェアによって実現してもよい。
[Example of software implementation]
The control blocks (especially, the
後者の場合、携帯端末1a〜1cは、各機能を実現するソフトウェアであるプログラムの命令を実行するCPU、上記プログラムおよび各種データがコンピュータ(またはCPU)で読み取り可能に記録されたROM(Read Only Memory)または記憶装置(これらを「記録媒体」と称する)、上記プログラムを展開するRAM(Random Access Memory)などを備えている。そして、コンピュータ(またはCPU)が上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記記録媒体としては、「一時的でない有形の媒体」、例えば、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。
In the latter case, the
〔まとめ〕
本発明の態様1に係るテキスト処理装置(携帯端末1a)は、日付を相対的に表現した相対日付を含むテキストデータを処理するテキスト処理装置であって、上記テキストデータまたは上記テキストデータの生成に使用するデータを取得した時刻である取得時刻が、上記テキストデータを入力するユーザにとって日付が曖昧な時間帯に含まれるか否かを判定する判定部(時刻判定部23a)と、曖昧な時間帯に含まれると判定された場合、上記相対日付が示す日付を絶対的に表現した絶対日付を特定し、該絶対日付を追加した出力用テキストデータを生成する一方、含まれないと判定された場合、入力された上記テキストデータを出力用テキストデータとするテキスト変換部(テキスト合成部24a)と、上記出力用テキストデータの内容を出力する出力部(音声出力制御部25)と、を備える。
[Summary]
A text processing apparatus (portable terminal 1a) according to
上記の構成によれば、ユーザにとって日付が曖昧な時間帯に含まれると判定された場合、絶対日付を追加した出力用テキストデータを生成し、当該データの内容を出力するので、ユーザに、相対日付と絶対日付の両方を示すことができる。これにより、ユーザに自身の意図通りの絶対日付が追加されているか確認させ、意図と異なる絶対日付が追加されている場合は修正を促すことができる。よって、意図した日付と異なる絶対日付がテキストデータに記載されたとしても、ユーザが容易に気づくことができる。 According to the above configuration, when it is determined that the date is included in an ambiguous time zone for the user, the output text data to which the absolute date is added is generated, and the content of the data is output. It can indicate both date and absolute date. This allows the user to confirm whether or not the absolute date according to his / her intention is added, and to prompt a correction if an absolute date different from the intention is added. Therefore, even if an absolute date different from the intended date is described in the text data, the user can easily notice.
なお、「テキストデータの生成に使用するデータ」の具体例としては、例えば、音声データが挙げられる。この場合、当該音声データが音声認識されることにより、テキストデータが生成される。 In addition, as a specific example of "data used for generation of text data", for example, voice data can be mentioned. In this case, the speech data is voice-recognized to generate text data.
本発明の態様2に係るテキスト処理装置は、上記態様1において、上記時間帯は、午前0時から、予め設定された日付変更時刻までの時間帯であってもよい。
In the text processing device according to
上記の構成によれば、ユーザにとって日付が曖昧な時間帯は、午前0時から日付変更時刻までの時間帯であり、当該日付変更時刻はユーザにとって予め設定されているので、判定時に日付が曖昧な時間帯を算出する必要がなくなる。 According to the above configuration, the time zone in which the date is ambiguous for the user is the time zone from 0:00 am to the date change time, and since the date change time is preset for the user, the date is ambiguous at the time of determination There is no need to calculate a time zone.
本発明の態様3に係るテキスト処理装置は、上記態様2において、上記ユーザの入力を受け付ける入力部(操作部16)をさらに備え、上記日付変更時刻は、上記入力部に対する上記ユーザの入力によって設定されてもよい。
The text processing apparatus according to
上記の構成によれば、ユーザの入力によって日付変更時刻が設定されるので、ユーザは自身が望む時刻を日付変更時刻とすることができる。 According to the above configuration, since the date change time is set by the user's input, the user can set the desired time as the date change time.
本発明の態様4に係るテキスト処理装置は、上記態様2において、ユーザが所定の行動をとった時刻の履歴に基づいて、上記日付変更時刻を決定する決定部(日付境界時刻算出部26)をさらに備えてもよい。
In the text processing device according to
上記の構成によれば、ユーザが所定の行動をとった時刻の履歴に基づいて日付変更時刻を決定する。これにより、ユーザの行動に合わせて、ユーザにとって日付が曖昧な時間帯を変更することができる。なお、「所定の行動をとった時刻」とは、例えば起床時刻や就寝時刻などが挙げられる。 According to the above configuration, the date change time is determined based on the history of the time when the user took a predetermined action. Thus, it is possible to change the time zone in which the date is ambiguous for the user according to the user's action. In addition, with "time which took predetermined action", for example, wake-up time, bedtime time, etc. are mentioned.
本発明の態様5に係るテキスト処理装置は、上記態様1から4のいずれかにおいて、上記テキスト変換部は、曖昧な時間帯に含まれると判定された場合、上記相対日付が示す日付の一日前の日付を上記絶対日付として特定してもよい。
In the text processing device according to aspect 5 of the present invention, in any of the
曖昧な時間帯にテキストデータを取得した場合、当該テキストデータに含まれる相対日付について、ユーザは現在の日付の前日を基準とした相対日付を意図している可能性が高い。そこで上記の構成によれば、曖昧な時間帯に含まれると判定された場合、相対日付が示す日付の一日前の日付を絶対日付として特定する。これにより、ユーザの意図通りの絶対日付をテキストデータに追加することができるので、ユーザはテキストデータを修正する手間を省くことができる。 When text data is acquired in an ambiguous time zone, the user is likely to intend a relative date based on the previous day of the current date for the relative date included in the text data. Therefore, according to the above configuration, when it is determined that the date is included in an ambiguous time zone, the date one day before the date indicated by the relative date is specified as the absolute date. As a result, since the absolute date as intended by the user can be added to the text data, the user can save the trouble of correcting the text data.
本発明の態様6に係るテキスト処理装置の制御方法は、日付を相対的に表現した相対日付を含むテキストデータを処理するテキスト処理装置の制御方法であって、上記テキストデータまたは上記テキストデータの生成に使用するデータを取得した時刻である取得時刻が、上記テキストデータを入力するユーザにとって日付が曖昧な時間帯に含まれるか否かを判定する判定ステップ(S24)と、曖昧な時間帯に含まれると判定した場合、上記相対日付が示す日付を絶対的に表現した絶対日付を特定し、該絶対日付を追加した出力用テキストデータを生成する一方、含まれないと判定した場合、入力された上記テキストデータを出力用テキストデータとするテキスト変換ステップ(S28)と、上記出力用テキストデータを出力する出力ステップ(S12)と、を含む。上記の構成によれば、態様1に係るテキスト処理装置と同様の作用効果を奏する。
A control method of a text processing device according to a sixth aspect of the present invention is a control method of a text processing device that processes text data including a relative date representing a date relatively, the generation of the text data or the text data Determination step (S24) of determining whether or not the acquisition time, which is the time of acquisition of the data to be used, is included in the time zone in which the date is ambiguous for the user who inputs the text data; If it is determined that the absolute date representing the date indicated by the relative date is specified, and the output text data to which the absolute date is added is generated, while it is determined that it is not included, the input is made. A text conversion step (S28) for converting the text data into text data for output, and an output step for outputting the text data for output And (S12), including. According to the above configuration, the same effects as those of the text processing device according to
本発明の各態様に係るテキスト処理装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記テキスト処理装置が備える各部(ソフトウェア要素)として動作させることにより上記テキスト処理装置をコンピュータにて実現させるテキスト処理装置の制御プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。 The text processing apparatus according to each aspect of the present invention may be realized by a computer. In this case, the computer is operated as each unit (software element) included in the text processing apparatus, and the text processing apparatus is transmitted to the computer A control program of a text processing device to be realized and a computer readable recording medium recording the same also fall within the scope of the present invention.
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Is also included in the technical scope of the present invention. Furthermore, new technical features can be formed by combining the technical means disclosed in each embodiment.
1a 携帯端末(テキスト処理装置)、16 操作部(入力部)、23a 時刻判定部(判定部)、24a テキスト合成部(テキスト変換部)、25 音声出力制御部(出力部)、26 日付境界時刻算出部(決定部)、S12 出力ステップ、S24 判定ステップ、S28 テキスト変換ステップ
Claims (8)
上記テキストデータまたは上記テキストデータの生成に使用するデータを取得した時刻である取得時刻が、上記テキストデータを入力するユーザにとって日付が曖昧な時間帯に含まれるか否かを判定する判定部と、
曖昧な時間帯に含まれると判定された場合、上記相対日付が示す日付を絶対的に表現した絶対日付を特定し、該絶対日付を追加した出力用テキストデータを生成する一方、含まれないと判定された場合、入力された上記テキストデータを出力用テキストデータとするテキスト変換部と、
上記出力用テキストデータの内容を出力する出力部と、を備えることを特徴とするテキスト処理装置。 What is claimed is: 1. A text processing apparatus for processing text data including relative dates representing dates relative to each other, comprising:
A determination unit that determines whether an acquisition time, which is a time at which the text data or data used to generate the text data is acquired, is included in a time zone in which the date is ambiguous for the user who inputs the text data;
If it is determined to be included in an ambiguous time zone, an absolute date representing the date absolutely indicated by the relative date is specified, and output text data to which the absolute date is added is generated, but not included. A text conversion unit that uses the input text data as output text data if it is determined;
A text processing apparatus, comprising: an output unit that outputs the contents of the text data for output.
上記日付変更時刻は、上記入力部に対する上記ユーザの入力によって設定されることを特徴とする請求項2に記載のテキスト処理装置。 It further comprises an input unit for receiving the user's input,
The text processing apparatus according to claim 2, wherein the date change time is set by the user's input to the input unit.
上記テキストデータまたは上記テキストデータの生成に使用するデータを取得した時刻である取得時刻が、上記テキストデータを入力するユーザにとって日付が曖昧な時間帯に含まれるか否かを判定する判定ステップと、
曖昧な時間帯に含まれると判定した場合、上記相対日付が示す日付を絶対的に表現した絶対日付を特定し、該絶対日付を追加した出力用テキストデータを生成する一方、含まれないと判定した場合、入力された上記テキストデータを出力用テキストデータとするテキスト変換ステップと、
上記出力用テキストデータを出力する出力ステップと、を含むことを特徴とするテキスト処理装置の制御方法。 A control method of a text processing apparatus for processing text data including relative dates representing dates relative to each other, comprising:
A determination step of determining whether the acquisition time, which is the time of acquisition of the text data or the data used for generating the text data, is included in a time zone in which the date is ambiguous for the user who inputs the text data;
When it is determined that the date is included in an ambiguous time zone, an absolute date that absolutely represents the date indicated by the relative date is specified, and output text data to which the absolute date is added is generated, but it is determined that it is not included. A text conversion step of converting the input text data into text data for output,
And a step of outputting the text data for output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015192099A JP6505568B2 (en) | 2015-09-29 | 2015-09-29 | Text processing device, control method for text processing device, control program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015192099A JP6505568B2 (en) | 2015-09-29 | 2015-09-29 | Text processing device, control method for text processing device, control program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017068500A JP2017068500A (en) | 2017-04-06 |
JP6505568B2 true JP6505568B2 (en) | 2019-04-24 |
Family
ID=58494781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015192099A Active JP6505568B2 (en) | 2015-09-29 | 2015-09-29 | Text processing device, control method for text processing device, control program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6505568B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110382782B (en) | 2017-03-30 | 2022-10-21 | 住友建机株式会社 | Excavator |
WO2024076139A1 (en) * | 2022-10-06 | 2024-04-11 | 삼성전자 주식회사 | Electronic device and method for processing user utterance in electronic device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003050795A (en) * | 2001-08-06 | 2003-02-21 | Hitachi Ltd | System for displaying time information |
JP2005346416A (en) * | 2004-06-03 | 2005-12-15 | Matsushita Electric Ind Co Ltd | Date information conversion device, method for converting date information, date information conversion program, and integrated circuit for date information conversion device |
-
2015
- 2015-09-29 JP JP2015192099A patent/JP6505568B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017068500A (en) | 2017-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4493603B2 (en) | Schedule management portable terminal and method thereof | |
CN107491280B (en) | Information updating method and device | |
KR100678126B1 (en) | Method of managing duplication schedule in mobile communication terminal | |
US7962858B2 (en) | Mobile communication terminal with a schedule management method | |
US20130086023A1 (en) | Content processing execution device, content processing execution method, and programme | |
KR102257792B1 (en) | Off-screen display method and device | |
US20100130184A1 (en) | Hand-held device for adapting a noticing time based on weather forecast and method thereof | |
CN105446591A (en) | Message reminding method and system and intelligent terminal | |
JP6505568B2 (en) | Text processing device, control method for text processing device, control program, and recording medium | |
CN105357653A (en) | Reminding method and terminal | |
US20080126991A1 (en) | Mobile terminal and method for alerting a user of schedule information | |
TW201520708A (en) | System and method for managing alarm clock | |
JP5080298B2 (en) | Condition estimation device and condition estimation program | |
CN103152475A (en) | Method of turning off alarm clock in mobile terminal and mobile terminal | |
JP2010109582A (en) | Communication terminal and position information acquisition adjusting program | |
JP2006292762A (en) | Time alarming method, and mobile communication terminal using it | |
KR101140212B1 (en) | Method of displaying a phrase on a wall paper of a mobile communication terminal using a mini planar function and the mobile communication terminal thereof | |
JP5110522B2 (en) | Portable terminal device and program | |
JP3898211B2 (en) | Character message output device | |
JP2009181476A (en) | Situation estimation device and situation estimation program | |
JP2011163860A (en) | Terminal with alarm and schedule function, alarm time changing method thereof, and program thereof | |
JP2009181477A (en) | Situation estimating device and situation prediction program | |
JP2017106872A (en) | Apparatus and program | |
KR100655971B1 (en) | Mobile communication terminal and method for synchronizing reservation data | |
KR101100306B1 (en) | Mobile phone scrolled schedule and it's operating method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180323 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190222 |
|
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: 20190312 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190327 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6505568 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |