JP2005202552A - Sentence generation device and method - Google Patents

Sentence generation device and method Download PDF

Info

Publication number
JP2005202552A
JP2005202552A JP2004006511A JP2004006511A JP2005202552A JP 2005202552 A JP2005202552 A JP 2005202552A JP 2004006511 A JP2004006511 A JP 2004006511A JP 2004006511 A JP2004006511 A JP 2004006511A JP 2005202552 A JP2005202552 A JP 2005202552A
Authority
JP
Japan
Prior art keywords
sentence
data
ending
basic
storage means
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.)
Pending
Application number
JP2004006511A
Other languages
Japanese (ja)
Inventor
Osamu Kumasaka
治 熊坂
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.)
Pioneer Corp
Original Assignee
Pioneer Electronic 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 Pioneer Electronic Corp filed Critical Pioneer Electronic Corp
Priority to JP2004006511A priority Critical patent/JP2005202552A/en
Publication of JP2005202552A publication Critical patent/JP2005202552A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a sentence generation device and method, capable of easily generating a sentence having expression corresponding to various characters even with the same contents. <P>SOLUTION: This sentence generation device has: a first storage means storing basic sentence data including basic contents of the sentence and a sentence end mark showing a sentence end position of the sentence; a second storage means storing a plurality of pieces of sentence end data showing sentence ends corresponding to the characters different from each other; a reading means selectively reading one piece of sentence end data among the plurality of pieces of sentence end data from the second storage means; and a sentence data production means inserting one piece of sentence end data into the sentence end position shown by the sentence end mark of the basic sentence data stored in the first storage means to produce sentence data. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、文章データを生成する文章生成装置及び方法に関する。   The present invention relates to a sentence generation apparatus and method for generating sentence data.

ユーザの選択操作に対応してディスプレイに文章を表示することによってユーザとの間で対話を行う対話装置は公知である。このような対話装置では、様々な文章データが予め記憶されており、ユーザが選択操作することによって適切な文章データが選択的に読み出され、その読出文章データに応じた文章がディスプレイには表示される。   2. Description of the Related Art An interactive device that performs a dialogue with a user by displaying a sentence on a display corresponding to the user's selection operation is known. In such an interactive device, various text data are stored in advance, and appropriate text data is selectively read out by a user's selection operation, and text corresponding to the read text data is displayed on the display. Is done.

しかしながら、ディスプレイに表示されるいずれの文章も、画一的な表現にされ、また、同一内容であれば、常に同一表現の文章が出力されることになっていた。   However, any text displayed on the display is expressed in a uniform manner, and if the content is the same, the text of the same expression is always output.

本発明が解決しようとする課題には、上記の欠点が一例として挙げられ、同一内容であっても様々なキャラクタに対応した表現の文章を容易に生成することができる文章生成装置及び方法を提供することが本発明の目的である。   The problem to be solved by the present invention includes the above-mentioned drawbacks as an example, and provides a sentence generation device and method capable of easily generating sentences of expressions corresponding to various characters even with the same content It is an object of the present invention.

請求項1に係る発明の文章生成装置は、文章データを生成する装置であって、文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを記憶した第1記憶手段と、互いに異なるキャラクタに対応した語尾を示す複数の語尾データを記憶した第2記憶手段と、前記第2記憶手段から前記複数の語尾データのうちの1の語尾データを選択的に読み出す読出手段と、前記第1記憶手段に記憶された前記基本文データの前記語尾マークが示す語尾位置に前記1の語尾データを挿入することによって前記文章データを作成する文書データ作成手段と、を備えたことを特徴としている。   A sentence generation device according to a first aspect of the present invention is an apparatus for generating sentence data, wherein the first storage means stores basic sentence data including basic contents of a sentence and a ending mark indicating the ending position of the sentence; Second storage means storing a plurality of ending data indicating endings corresponding to different characters, and reading means for selectively reading out one ending data of the plurality of ending data from the second storage means; Document data creating means for creating the sentence data by inserting the first ending data at the ending position indicated by the ending mark of the basic sentence data stored in the first storage means. It is said.

請求項8に係る発明の文章生成方法は、文章データを生成する方法であって、文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを第1記憶手段に記憶する第1記憶ステップと、互いに異なる性格に対応した語尾を示す複数の語尾データを第2記憶手段に記憶する第2記憶ステップと、前記複数の語尾データのうちの1の語尾データを選択的に読み出す読出ステップと、前記第1記憶手段に記憶された前記基本文データの前記語尾マークが示す語尾位置に前記1の語尾データを挿入することによって前記文章データを作成する文書データ作成ステップと、を備えたことを特徴としている。   The sentence generation method of the invention according to claim 8 is a method for generating sentence data, and stores basic sentence data including basic contents of a sentence and a ending mark indicating the ending position of the sentence in the first storage means. A first storage step, a second storage step of storing a plurality of ending data indicating endings corresponding to different personalities in the second storage means, and selectively reading out one ending data of the plurality of ending data A reading step; and a document data creation step for creating the sentence data by inserting the ending data of the first sentence at the ending position indicated by the ending mark of the basic sentence data stored in the first storage means. It is characterized by that.

請求項9に係る発明のプログラムは、文章データを生成する文章生成方法を実行するコンピュータ読取可能なプログラムであって、文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを第1記憶手段に記憶する第1記憶ステップと、互いに異なる性格に対応した語尾を示す複数の語尾データを第2記憶手段に記憶する第2記憶ステップと、前記複数の語尾データのうちの1の語尾データを選択的に読み出す読出ステップと、前記第1記憶手段に記憶された前記基本文データの前記語尾マークが示す語尾位置に前記1の語尾データを挿入することによって前記文章データを作成する文書データ作成ステップと、を備えたことを特徴としている。   A program according to claim 9 is a computer readable program for executing a sentence generation method for generating sentence data, and includes basic sentence data including a basic content of a sentence and a ending mark indicating the ending position of the sentence. In the first storage means, a second storage step in which a plurality of ending data indicating endings corresponding to different personalities are stored in the second storage means, and one of the plurality of ending data A step of selectively reading the ending data of the first sentence, and creating the sentence data by inserting the ending data of the first sentence at the ending position indicated by the ending mark of the basic sentence data stored in the first storage means. And a document data creation step.

以下、本発明の実施例を図面を参照しつつ詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は本発明の文章生成装置を適用した対話装置を示している。この対話装置は、操作部1、表示部2、音声発生部3、コントローラ4、RAM5、ROM6及びスピーカ7を備えている。操作部1、表示部2、音声発生部3、RAM5及びROM6の各々は、コントローラ4に接続されている。   FIG. 1 shows an interactive apparatus to which a sentence generating apparatus of the present invention is applied. The interactive apparatus includes an operation unit 1, a display unit 2, a sound generation unit 3, a controller 4, a RAM 5, a ROM 6, and a speaker 7. Each of the operation unit 1, the display unit 2, the sound generation unit 3, the RAM 5, and the ROM 6 is connected to the controller 4.

操作部1はキーボード或いは一連のスイッチ群からなり、ユーザが個人情報等の情報を入力したり、動作を指令する部分である。表示部2はコントローラ4の指令に応じてユーザに対して語りかけの内容や指示を表示する。音声発生部3はコントローラ4の指令に応じてユーザに対する語りかけの内容を合成音声信号として発生する。音声発生部3の出力音声信号はスピーカ7に供給される。   The operation unit 1 includes a keyboard or a series of switches, and is a part where a user inputs information such as personal information or commands an operation. The display unit 2 displays talk contents and instructions to the user in accordance with an instruction from the controller 4. The voice generation unit 3 generates the content of talking to the user as a synthesized voice signal in response to a command from the controller 4. The output audio signal of the audio generator 3 is supplied to the speaker 7.

RAM5には、ユーザの個人情報が図示しない初期設定動作によって記憶される。個人情報には少なくともユーザのキャラクタ及びフォーマル指数が含まれる。キャラクタはユーザに対する対話装置、すなわち話し手の、性格、嗜好、年代、性別等の人的キャラクタである。本実施例では成人女性、成人男性、女子、男子及び老人の各キャラクタに分けられている。しかしながら、これに限らず、優しい人、短気な人等の性格或いは職業で分けても良い。更に、単に人間に限らず、他の動物や植物でも良い。フォーマル指数は後述のフォーマル度(格式度)と共に、対話装置のユーザへの語りかけの格式を決定する数値であり、例えば、1〜9の範囲で設定される。フォーマル指数及びフォーマル度各々の数値が例えば、高くなるほど語りかけの格式は堅くなり、低くなるほどくだけた形式となる。   The RAM 5 stores user personal information by an initial setting operation (not shown). The personal information includes at least the user's character and formal index. The character is an interactive device for the user, that is, a human character such as a speaker's personality, taste, age, gender and the like. In this embodiment, the characters are divided into adult female, adult male, female, male, and elderly characters. However, the present invention is not limited to this, and it may be classified according to personality or occupation such as a gentle person or a tempered person. Furthermore, it is not limited to human beings, and other animals and plants may be used. The formal index is a numerical value that determines a formal style to be spoken to the user of the interactive apparatus together with a formal degree (formal degree) described later, and is set in the range of 1 to 9, for example. For example, the higher the numerical value of each of the formal index and the formal degree, the harder the spoken form, and the lower the value, the more formal the index.

また、RAM5には、フォーマル度1〜9各々の使用回数を記憶する使用回数記憶領域も有している。フォーマル度はフォーマル指数に従ってランダムに設定されるので、フォーマル度の設定毎に対応するフォーマル度の使用回数を1だけ増加させる。   The RAM 5 also has a usage count storage area for storing the usage counts of the formal degrees 1 to 9. Since the formal degree is set at random according to the formal index, the number of uses of the formal degree corresponding to each setting of the formal degree is increased by one.

ROM6には、コントローラ4の動作プログラム、基本文データ群、及び語尾データテーブルが記憶されている。基本文データはユーザとの対話に用いる基本文章を示している。基本文データとしては肯定文、疑問文、否定文等の文体を有している。また、後述するが、基本文データには語尾の位置及び文体の種類を示す語尾マークが付加されている。   The ROM 6 stores an operation program for the controller 4, a basic sentence data group, and a ending data table. The basic sentence data indicates basic sentences used for dialogue with the user. The basic sentence data has a style such as a positive sentence, a question sentence, and a negative sentence. Further, as will be described later, a ending mark indicating the position of the ending and the type of style is added to the basic sentence data.

語尾データテーブルは、図2に示すように、肯定文の語尾を示す語尾データをキャラクタの種別である成人女性、成人男性、女子、男子及び老人各々についてフォーマル度毎に示している。勿論、肯定文だけでなく、疑問文、否定文等の他の文体についても同様に語尾データテーブルは形成されている。すなわち、後述する語尾マークの種類毎に語尾データテーブルは備えられている。   As shown in FIG. 2, the ending data table shows ending data indicating the ending of an affirmative sentence for each formal degree for each of the adult female, adult male, female, male, and elderly who are character types. Of course, not only affirmative sentences but also ending data tables are formed for other sentence styles such as question sentences and negative sentences. That is, a ending data table is provided for each type of ending mark described later.

コントローラ4はマイクロコンピュータからなり、対話装置全体を制御する。ユーザが操作部1に対して予め定められた操作、例えば、対話開始の操作、或いは選択装置を行うと、操作部1からその操作内容を示す信号がコントローラ4に供給される。   The controller 4 is composed of a microcomputer and controls the entire interactive device. When the user performs a predetermined operation on the operation unit 1, for example, an operation for starting a dialogue or a selection device, a signal indicating the operation content is supplied from the operation unit 1 to the controller 4.

コントローラ4は、ユーザに対する文章を生成する際には、図3に示すように、操作部1におけるユーザによる操作によって選択された項目に対応する基本文データをROM6から読み出し(ステップS1)、読み出した基本文データ中の語尾マークを検出する(ステップS2)。基本文データは例えば、テキストファイルからなり、その語尾を変化させることができる基本文データには語尾マークが付加されている。例えば、基本文データが肯定文を示す場合には#が語尾マークとして付加され、基本文データが疑問文を示す場合には?が語尾マークとして付加される。語尾マークの位置が後述のステップS8で語尾データが付加される位置となる。   When the controller 4 generates a sentence for the user, as shown in FIG. 3, the controller 4 reads out basic sentence data corresponding to the item selected by the user's operation in the operation unit 1 from the ROM 6 (step S1). A ending mark is detected in the basic sentence data (step S2). The basic sentence data is composed of a text file, for example, and ending marks are added to the basic sentence data whose endings can be changed. For example, when the basic sentence data indicates an affirmative sentence, # is added as an ending mark, and when the basic sentence data indicates a question sentence? Is added as a ending mark. The position of the ending mark is the position where the ending data is added in step S8 described later.

コントローラ4は、初期設定されたフォーマル指数をRAM5からXとして読み出す(ステップS3)。フォーマル指数は1〜9のうちのいずれか1つの値に初期設定され、RAM5に記憶されている。フォーマル指数Xをランダム関数f(X,RND)に適用してY=f(X,RND)を算出する(ステップS4)。ランダム関数f(X,RND)を用いて算出されたYがフォーマル度とされる。ランダム関数f(X,RND)はフォーマル指数Xに応じて1≦Y≦9の範囲の整数値Yを発生する。このランダム関数を用いることによりフォーマル指数X=1〜9に対するYが取り得る各値の出現確率は図4に示すように設定することができる。この図4の出現確率はX=4とした場合において過去に使用された回数が高いフォーマル度ほど高い確率として設定される。また、使用回数とは関係なく一般に使用されている語尾に応じた出現確率でも良い。更に、出現確率は常に一定にしても良いし、時間経過に従って変化させても良い。   The controller 4 reads the initially set formal index as X from the RAM 5 (step S3). The formal index is initialized to any one value from 1 to 9 and stored in the RAM 5. The formal index X is applied to the random function f (X, RND) to calculate Y = f (X, RND) (step S4). Y calculated using the random function f (X, RND) is the formal degree. The random function f (X, RND) generates an integer value Y in the range of 1 ≦ Y ≦ 9 according to the formal index X. By using this random function, the appearance probability of each value that Y can take for the formal index X = 1 to 9 can be set as shown in FIG. The appearance probabilities in FIG. 4 are set as higher probabilities as the formal degree is higher in the past when X = 4. Further, it may be an appearance probability according to a commonly used ending regardless of the number of times of use. Further, the appearance probability may always be constant, or may change with time.

コントローラ4は、更に、初期設定されたキャラクタをRAM5から読み取る(ステップS5)。また、フォーマル度Yに対応してRAM5の使用回数記憶領域の使用回数を1だけ増加させる(ステップS6)。各フォーマル度の使用回数を用いれば、設定された出現確率になるようにY=f(X,RND)の算出に反映させることができる。   The controller 4 further reads the initially set character from the RAM 5 (step S5). Further, the number of uses in the use count storage area of the RAM 5 is increased by 1 corresponding to the formal degree Y (step S6). If the number of uses of each formal degree is used, it can be reflected in the calculation of Y = f (X, RND) so as to have a set appearance probability.

コントローラ4は、検出した基本文データ中の語尾マーク、算出したフォーマル度Y及び読み取ったキャラクタに対応した語尾データをROM6の語尾データテーブルから読み出す(ステップS7)。具体的には、先ず、ステップS2で検出した語尾マークに対応した語尾データテーブルをROM6から選択し、選択した語尾データテーブルのうちのステップS4で定めたフォーマル度Y及びステップS5で読み取ったキャラクタに対応した語尾データをその選択した語尾データテーブルから読み出す。語尾データを読み出すと、基本文データ中の語尾マークの部分をその語尾データで置き換えることにより出力文章データを作成する(ステップS8)。   The controller 4 reads the ending mark in the detected basic sentence data, the calculated formal degree Y, and the ending data corresponding to the read character from the ending data table of the ROM 6 (step S7). Specifically, first, the ending data table corresponding to the ending mark detected in step S2 is selected from the ROM 6, and the formal degree Y determined in step S4 and the character read in step S5 in the selected ending data table are selected. The corresponding ending data is read from the selected ending data table. When the ending data is read, output sentence data is created by replacing the ending mark portion in the basic sentence data with the ending data (step S8).

コントローラ4は、出力文章データを作成すると、その出力文章データを表示部2に供給して出力文章データが示す文章を表示させる(ステップS9)。   When the controller 4 creates the output sentence data, the controller 4 supplies the output sentence data to the display unit 2 to display the sentence indicated by the output sentence data (step S9).

ステップS1で読み出された基本文データが「みんなで公園に行く#。」を示すとする。#は肯定文を示す語尾マークである。初期設定されたキャラクタが成人女性であり、ステップS4でフォーマル度Yが1に設定された場合には「よ」がROM6の語尾データテーブルから読み出され、「みんなで公園に行くよ。」という出力文章データが作成される。この結果、表示部2には「みんなで公園に行くよ。」と表示される。   It is assumed that the basic sentence data read in step S1 indicates “go to the park together #”. # Is a ending mark indicating an affirmative sentence. If the initial character is an adult female and the formal degree Y is set to 1 in step S4, “yo” is read from the ending data table of the ROM 6 and “all go to the park”. Output text data is created. As a result, the display unit 2 displays “Let's go to the park together.”

図5は肯定文の場合の原文、基本文データ及び文章データが示す文章の例をキャラクタ及びフォーマル度との関係で示している。   FIG. 5 shows an example of a sentence indicated by the original sentence, basic sentence data, and sentence data in the case of an affirmative sentence in relation to the character and the formal degree.

ステップS1で読み出された基本文データが「朝は何を食べる?。」を示すとする。?は疑問文を示す語尾マークである。初期設定されたキャラクタが老人であり、ステップS4でフォーマル度Yが5に設定された場合には「んじゃい」がROM6の語尾データテーブルから読み出され、「朝は何を食べるんじゃい。」という出力文章データが作成される。この結果、表示部2には「朝は何を食べるんじゃい。」と表示される。   It is assumed that the basic sentence data read in step S1 indicates “what do you eat in the morning?”. ? Is a ending mark indicating a question sentence. If the initially set character is an elderly person and the formal level Y is set to 5 in step S4, “Nanji” is read from the ending data table of the ROM 6, and “What do you eat in the morning?” Output text data is created. As a result, the display unit 2 displays "What do you eat in the morning?"

図6は疑問文の場合の原文、基本文データ及び文章データが示す文章の例をキャラクタ及びフォーマル度との関係で示している。   FIG. 6 shows an example of a sentence indicated by the original sentence, basic sentence data, and sentence data in the case of a question sentence in relation to the character and the formal degree.

上記した実施例においては、フォーマル度Yが初期設定のフォーマル指数Xに基づいて変化されるので、微妙に変化したキャラクタに対応した語尾の表現の文章を生成することができる。   In the embodiment described above, since the formal degree Y is changed based on the initial formal index X, it is possible to generate a sentence with a ending expression corresponding to a slightly changed character.

なお、上記した実施例においては、表示部2に出力文章データに応じて文章が表示されるが、コントローラ4は出力文章データを音声発生部3に供給しても良い。出力文章データが音声発生部3に供給された場合には、音声発生部3は出力文章データに対応して合成音声信号を生成し、合成音声信号に応じてスピーカ7が駆動される。スピーカ7からは出力文章データに対応した音声が出力される。   In the embodiment described above, the text is displayed on the display unit 2 according to the output text data. However, the controller 4 may supply the output text data to the voice generation unit 3. When the output sentence data is supplied to the voice generation unit 3, the voice generation unit 3 generates a synthesized voice signal corresponding to the output sentence data, and the speaker 7 is driven according to the synthesized voice signal. A sound corresponding to the output text data is output from the speaker 7.

基本文データ内の語尾マークは、肯定文の場合には、文章終了(文末)の句点を「。。」のように2つ並べることによって形成しても良い。疑問文の場合には、文章終了に疑問符を「??」のように2つ並べることによって形成しても良い。図7は、語尾マークとして「。。」を用いて図5の肯定文及び「??」を用いて図6の疑問文の場合の原文、基本文データ、語尾データが付加された出力文章データが示す文章の例をキャラクタ及びフォーマル度との関係で示している。このように通常の文章中にあり得ない同一記号の連続を語尾マークとして用いると、語尾マークに使用する記号についての制限が減少される。   In the case of an affirmative sentence, the ending mark in the basic sentence data may be formed by arranging two punctuation marks at the end of the sentence (end of sentence) like “..”. In the case of a question sentence, it may be formed by arranging two question marks at the end of the sentence, such as “??”. FIG. 7 shows output sentence data to which the original sentence, basic sentence data, and ending data are added in the case of the affirmative sentence in FIG. 5 using “..” as the ending mark and the question sentence in FIG. 6 using “??”. The example of the sentence shown by is shown in relation to the character and the formal degree. In this way, if a sequence of the same symbols that cannot exist in a normal sentence is used as the ending mark, the restriction on the symbol used for the ending mark is reduced.

また、上記した実施例においては、ステップS7でフォーマル度Yとキャラクタとから決定される語尾データは単一であるが、フォーマル度Yとキャラクタとから決定される語尾データを複数用意しても良い。これは基本文データの文章内容によっては同一の語尾では対応できない場合があるので、複数の語尾データを用意しておいて選択できるようにするのである。例えば、肯定文の場合には、語尾マークとして文章終了の句点を通常「。。」とし、同一の語尾では対応できない文章の肯定文ならば、語尾マークを「。。。」として、「。。」と「。。。」とでは同一のフォーマル度Yとキャラクタとであっても異なる語尾データが選択されるのである。   In the embodiment described above, the ending data determined from the formal degree Y and the character in step S7 is single, but a plurality of ending data determined from the formal degree Y and the character may be prepared. . This may not be possible with the same ending depending on the sentence content of the basic sentence data, so a plurality of ending data are prepared and can be selected. For example, in the case of an affirmative sentence, the ending point of the sentence is usually “..” as an ending mark, and if the sentence is an affirmative sentence that cannot be handled by the same ending, the ending mark is “. "And" ... ", different ending data are selected even for the same formal degree Y and character.

更に、上記した実施例においては、基本文データ中の語尾マークの位置がそのまま語尾データを挿入する位置になっているが、基本文データ中の語尾マークは文章の語尾の位置を示すだけでも良い。すなわち、語尾マークが文章の語尾の位置を示すならば、基本文データ中の先頭に配置されても良いのである。   Furthermore, in the embodiment described above, the position of the ending mark in the basic sentence data is the position to insert the ending data as it is, but the ending mark in the basic sentence data may only indicate the position of the ending of the sentence. . That is, if the ending mark indicates the position of the ending of the sentence, it may be placed at the beginning of the basic sentence data.

以上のように、本発明によれば、文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを記憶した第1記憶手段と、互いに異なるキャラクタに対応した語尾を示す複数の語尾データを記憶した第2記憶手段と、第2記憶手段から複数の語尾データのうちの1の語尾データを選択的に読み出す読出手段と、第1記憶手段に記憶された基本文データの語尾マークが示す語尾位置に1の語尾データを挿入することによって文章データを作成する文書データ作成手段と、を備えたので、同一内容であっても様々なキャラクタに対応した語尾の表現の文章を容易に生成することができる。   As described above, according to the present invention, the first storage means that stores the basic sentence data including the basic content of the sentence and the ending mark indicating the ending position of the sentence, and the plurality of endings corresponding to different characters. Second storage means for storing the ending data, reading means for selectively reading one ending data of the plurality of ending data from the second storage means, and ending of the basic sentence data stored in the first storage means Document data creating means for creating sentence data by inserting one ending data at the ending position indicated by the mark, so that sentences of ending expressions corresponding to various characters can be easily obtained even with the same contents Can be generated.

更に、本発明の文章生成装置は目覚まし時計、ユーザとの対話型のコミュニケーション装置、アラーム機能付きの携帯電話機やPDA、ゲームソフト等に適用することができる。   Furthermore, the sentence generation device of the present invention can be applied to an alarm clock, a communication device for interactive communication with a user, a mobile phone with an alarm function, a PDA, game software, and the like.

本発明の実施例を示すブロック図である。It is a block diagram which shows the Example of this invention. 肯定文用の語尾データテーブルを示す図である。It is a figure which shows the ending data table for positive sentences. 図1の装置中のコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the controller in the apparatus of FIG. 過去の使用回数と出現確率との関係を示す図である。It is a figure which shows the relationship between the past use frequency and appearance probability. 肯定文の場合の原文、基本文データ及び文章データが示す文章の例をキャラクタ及びフォーマル度との関係で示す図であるIt is a figure which shows the example of the sentence which the original sentence in the case of a positive sentence, basic sentence data, and sentence data show in relation to a character and a formal degree. 疑問文の場合の原文、基本文データ及び文章データが示す文章の例をキャラクタ及びフォーマル度との関係で示す図であるIt is a figure which shows the example of the sentence which the original sentence in the case of a question sentence, basic sentence data, and sentence data show in relation to a character and a formal degree. 他の語尾マークを用いて図5の肯定文及び図6の疑問文の文章の例を示す図である。It is a figure which shows the example of the sentence of the affirmative sentence of FIG. 5, and the question sentence of FIG. 6 using another ending mark.

符号の説明Explanation of symbols

1 操作部
2 表示部
3 音声発生部
4 コントローラ
7 スピーカ
1 Operation unit 2 Display unit 3 Sound generation unit 4 Controller 7 Speaker

Claims (9)

文章データを生成する文章生成装置であって、
文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを記憶した第1記憶手段と、
互いに異なるキャラクタに対応した語尾を示す複数の語尾データを記憶した第2記憶手段と、
前記第2記憶手段から前記複数の語尾データのうちの1の語尾データを選択的に読み出す読出手段と、
前記第1記憶手段に記憶された前記基本文データの前記語尾マークが示す語尾位置に前記1の語尾データを挿入することによって前記文章データを作成する文書データ作成手段と、を備えたことを特徴とする文章生成装置。
A sentence generation device for generating sentence data,
First storage means for storing basic sentence data including basic contents of a sentence and an ending mark indicating the ending position of the sentence;
Second storage means for storing a plurality of ending data indicating endings corresponding to different characters;
Reading means for selectively reading one ending data of the plurality of ending data from the second storage means;
Document data creating means for creating the sentence data by inserting the first ending data at the ending position indicated by the ending mark of the basic sentence data stored in the first storage means. A sentence generator.
前記語尾マークは、前記基本文データが示す文章の文体の種類を示し、
前記読出手段は、前記複数の語尾データのうちの前記語尾マークによって示される文体の種類に対応した前記1の語尾データを選択的に読み出すことを特徴とする請求項1記載の文章生成装置。
The ending mark indicates the type of sentence style indicated by the basic sentence data,
2. The sentence generating apparatus according to claim 1, wherein the reading unit selectively reads the one ending data corresponding to the type of sentence style indicated by the ending mark of the plurality of ending data.
互いに異なる格式の程度を示す複数の格式度のうちのいずれか1の格式度を選択する選択手段と、
前記読出手段は、前記複数の語尾データのうちの前記1の格式度に対応した前記1の語尾データを選択的に読み出すことを特徴とする請求項1記載の文章生成装置。
Selecting means for selecting any one of a plurality of formalities indicating different degrees of formalities;
2. The sentence generation apparatus according to claim 1, wherein the reading unit selectively reads the one ending data corresponding to the one degree of formalism among the plurality of ending data.
前記読出手段は、前記複数の語尾データのうちの前記1の格式度と初期設定されたキャラクタとに対応した前記1の語尾データを選択的に読み出すことを特徴とする請求項3記載の文章生成装置。   4. The sentence generation according to claim 3, wherein the reading means selectively reads the one ending data corresponding to the one formality and the initially set character among the plurality of ending data. apparatus. 前記語尾マークは、前記基本文データが示す文章の語尾位置に配置されていることを特徴とする請求項1記載の文章生成装置。   The sentence generating apparatus according to claim 1, wherein the ending mark is arranged at a ending position of a sentence indicated by the basic sentence data. 前記語尾マークは、前記基本文データが示す文章の文体の種類毎の文末記号を連続的に並べて形成したことを特徴とする請求項1記載の文章生成装置。   2. The sentence generation apparatus according to claim 1, wherein the ending mark is formed by continuously arranging sentence end symbols for each type of sentence style indicated by the basic sentence data. 前記選択手段は、初期設定の格式指数を所定のランダム関数に適用して前記1の格式度を算出することを特徴とする請求項1記載の文章生成装置。   2. The sentence generation apparatus according to claim 1, wherein the selection unit calculates the degree of case 1 by applying an initial case form index to a predetermined random function. 文章データを生成する文章生成方法であって、
文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを第1記憶手段に記憶する第1記憶ステップと、
互いに異なる性格に対応した語尾を示す複数の語尾データを第2記憶手段に記憶する第2記憶ステップと、
前記第2記憶手段から前記複数の語尾データのうちの1の語尾データを選択的に読み出す読出ステップと、
前記第1記憶手段に記憶された前記基本文データの前記語尾マークが示す語尾位置に前記1の語尾データを挿入することによって前記文章データを作成する文書データ作成ステップと、を備えたことを特徴とする文章生成方法。
A sentence generation method for generating sentence data,
A first storage step of storing, in a first storage means, basic sentence data including a basic content of the sentence and an ending mark indicating the ending position of the sentence;
A second storage step of storing in the second storage means a plurality of ending data indicating endings corresponding to different personalities;
A reading step of selectively reading one ending data of the plurality of ending data from the second storage means;
A document data creation step of creating the sentence data by inserting the first ending data at the ending position indicated by the ending mark of the basic sentence data stored in the first storage means. A sentence generation method.
文章データを生成する文章生成方法を実行するコンピュータ読取可能なプログラムであって、
文章の基本内容とその文章の語尾位置を示す語尾マークとを含む基本文データを第1記憶手段に記憶する第1記憶ステップと、
互いに異なる性格に対応した語尾を示す複数の語尾データを第2記憶手段に記憶する第2記憶ステップと、
前記第2記憶手段から前記複数の語尾データのうちの1の語尾データを選択的に読み出す読出ステップと、
前記第1記憶手段に記憶された前記基本文データの前記語尾マークが示す語尾位置に前記1の語尾データを挿入することによって前記文章データを作成する文書データ作成ステップと、を備えたことを特徴とするプログラム。
A computer-readable program for executing a sentence generation method for generating sentence data,
A first storage step of storing, in a first storage means, basic sentence data including a basic content of the sentence and an ending mark indicating the ending position of the sentence;
A second storage step of storing in the second storage means a plurality of ending data indicating endings corresponding to different personalities;
A reading step of selectively reading one ending data of the plurality of ending data from the second storage means;
A document data creation step of creating the sentence data by inserting the first ending data at the ending position indicated by the ending mark of the basic sentence data stored in the first storage means. Program.
JP2004006511A 2004-01-14 2004-01-14 Sentence generation device and method Pending JP2005202552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004006511A JP2005202552A (en) 2004-01-14 2004-01-14 Sentence generation device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004006511A JP2005202552A (en) 2004-01-14 2004-01-14 Sentence generation device and method

Publications (1)

Publication Number Publication Date
JP2005202552A true JP2005202552A (en) 2005-07-28

Family

ID=34820448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004006511A Pending JP2005202552A (en) 2004-01-14 2004-01-14 Sentence generation device and method

Country Status (1)

Country Link
JP (1) JP2005202552A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014035541A (en) * 2012-08-10 2014-02-24 Casio Comput Co Ltd Content reproduction control device, content reproduction control method, and program
JP2014167517A (en) * 2013-02-28 2014-09-11 Nippon Telegraph & Telephone East Corp Conversation providing system, game providing system, conversation providing method, game providing method, and program
CN111640423A (en) * 2020-05-29 2020-09-08 北京声智科技有限公司 Word boundary estimation method and device and electronic equipment
WO2022249362A1 (en) * 2021-05-26 2022-12-01 株式会社KPMG Ignition Tokyo Speech synthesis to convert text into synthesized speech

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014035541A (en) * 2012-08-10 2014-02-24 Casio Comput Co Ltd Content reproduction control device, content reproduction control method, and program
JP2014167517A (en) * 2013-02-28 2014-09-11 Nippon Telegraph & Telephone East Corp Conversation providing system, game providing system, conversation providing method, game providing method, and program
CN111640423A (en) * 2020-05-29 2020-09-08 北京声智科技有限公司 Word boundary estimation method and device and electronic equipment
CN111640423B (en) * 2020-05-29 2023-10-13 北京声智科技有限公司 Word boundary estimation method and device and electronic equipment
WO2022249362A1 (en) * 2021-05-26 2022-12-01 株式会社KPMG Ignition Tokyo Speech synthesis to convert text into synthesized speech

Similar Documents

Publication Publication Date Title
Miodrag Comics and language: Reimagining critical discourse on the form
Attridge Poetic rhythm: an introduction
US5813861A (en) Talking phonics interactive learning device
CN108182830A (en) Robot controller, student robot, teacher robot, robot control method, study support system and storage medium
JP2008279165A (en) Toy system and computer program
CN108121790A (en) Chinese character by words querying method, device, server, equipment and storage medium
WO2014073613A1 (en) Conversation-sentence generation device, conversation-sentence generation method, and conversation-sentence generation program
JP2006068489A (en) Interactive pet robot
CN106471569B (en) Speech synthesis apparatus, speech synthesis method, and storage medium therefor
JP2005202552A (en) Sentence generation device and method
JP2002169591A (en) Simulated conversation system and information storage medium
Emike The pragma-crafting theory: A proposed theoretical framework for pragmatic analysis
CN117520490A (en) Man-machine conversation method, system and related device
KR102432132B1 (en) Server and method for providing brain development application, keyboard
JP2005190352A (en) Addressing device
Howard Influence poetry and found poetry: The reflection of creative writing pedagogy in the verse novel for young readers
JP2005128711A (en) Emotional information estimation method, character animation creation method, program using the methods, storage medium, emotional information estimation apparatus, and character animation creation apparatus
KR101031405B1 (en) Study method and system using TTS and ASR
Menn et al. Conspiracy and sabotage in the acquisition of phonology: dense data undermine existing theories, provide scaffolding for a new one
JP3578961B2 (en) Speech synthesis method and apparatus
JP2017044763A (en) Communication aid device, and method of using the same
JP3603008B2 (en) Speech synthesis processor
CN111695777A (en) Teaching method, teaching device, electronic device and storage medium
JP3126428U (en) Toy for learning
Lee Sound and Structure in the Gospel of Matthew

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080819

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081224