JP4187802B2 - Document creation device - Google Patents

Document creation device Download PDF

Info

Publication number
JP4187802B2
JP4187802B2 JP31573896A JP31573896A JP4187802B2 JP 4187802 B2 JP4187802 B2 JP 4187802B2 JP 31573896 A JP31573896 A JP 31573896A JP 31573896 A JP31573896 A JP 31573896A JP 4187802 B2 JP4187802 B2 JP 4187802B2
Authority
JP
Japan
Prior art keywords
search result
search
sentence
template
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP31573896A
Other languages
Japanese (ja)
Other versions
JPH10161996A (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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP31573896A priority Critical patent/JP4187802B2/en
Publication of JPH10161996A publication Critical patent/JPH10161996A/en
Application granted granted Critical
Publication of JP4187802B2 publication Critical patent/JP4187802B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、例えば、ワードプロセッサー等に用いられる文書作成装置に関する
【0002】
【従来の技術】
近年、文書作成の際に、ワードプロセッサー等を利用することが一般に行われている。 しかしながら、かな漢字変換などの文の入力については、効率化が図られているものの、依然として文章の構成など文章自体の内容については、利用者がすべて考える必要があった。
このような問題に対し、最近、ビジネスレター等比較的定型の文書を作成する場合、 文書テンプレートを用いる方法が考えられている。この方法では、予め文書に氏名等の部分を穴明けしたものを用意しておき、利用者に直接テンプレートを選択させるか、もしくは、質問形式やメニュー形式でテンプレートの選択をさせ、穴明け部分についても直接入力させるか質問形式やメニュー形式で補充を行うようにしている。
【0003】
しかしながら、この方法では、文章自体は予め登録されたテンプレートに記録されたもののみとなり、作成される文書の内容のバリエーションが乏しくなる。また、時事情報など時々刻々変化するような内容については、予めテンプレートを用意しておくことは不可能であり、この方法では対応できない。
【0004】
【発明が解決しようとする課題】
このように、文書テンプレートを用いた従来の文書作成方法では、文書のパターンが単調になりがちであり、文章の質を向上させるためには、利用者がテンプレートで作成後再度書き直すという手間が生じるという問題点があった。
また、スピーチの原稿など現在の状況を述べて論旨を補強するような、予め文書テンプレートを用意することが不可能である場合、利用者が別途、関係するファイルやネットワーク等から情報を検索し、文書中に挿入しなければならない。
【0005】
そこで、本発明は、このような問題点に鑑みなされたもので、文書テンプレート中に検索キーを挿入しておき、この検索キーを用いて時々刻々変化するような情報を文書中に取り入れることにより、生成される文書の質の向上及び作成時間の短縮が可能な文書作成方法及び文書作成装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
本発明の文書作成装置は、検索結果の文に対する制約条件を有する検索キーを含む文書テンプレートを記憶する記憶手段と、前記記憶手段に記憶された文書テンプレートからテンプレートを選択する選択手段と、前記選択手段で選択されたテンプレートに含まれる検索キーを用いて所定の範囲内に存在する情報を検索する情報検索手段と、検索結果の文を、前記制約条件を満たす文に変換する変換手段と、前記検索キーを変換された検索結果の文で置き換える検索結果置換手段と、を具備することを特徴とする文書作成装置。
【0008】
このように構成した本発明の文書作成方法または文書作成装置によれば、テンプレートに含まれる検索キーの部分が検索結果によって置き換えられるので、時々刻々変化するような情報や外部からの適切な情報を文書中に取り入れることが可能となる。
【0009】
【発明の実施の形態】
以下、図面を参照して、本発明の実施形態を詳細に説明する。 なお、以下の図面において、同一部分又は対応部分は同符号で示す。
図1は、本発明の第1の実施形態の要部の構成を示すもので、テンプレート記憶部1、テンプレート選択部2、検索結果置換部3、情報検索部4から構成されている。なおこれらは、ワードプロセッサ、パソコン等の情報処理装置のハードウエアの一部を用いて構成されてもよい。
【0010】
テンプレート記憶部1はいくつかの文書テンプレートを予め記憶しておく場所である。テンプレート選択部2は、利用者の指示に従いテンプレート記憶部1に記憶されたテンプレートを選択する。選択方法は、キーワードによる選択方法や階層メニューで選択する方法など従来周知の方法を用いればよい。検索結果置換部3は、テンプレート選択部2で選択された文書テンプレートの内容を調べ、検索指示の行即ち検索キーの行があれば、そこに記載された検索条件を情報検索部4に送り、検索指示の行を情報検索部から送られてきた検索結果で置き換える。
【0011】
情報検索部4は、検索結果置換部3から送られてきた検索条件に基づき、文書作成装置が内蔵されているパソコン等にあるファイルの情報、または文書作成装置が接続されているネットワーク上に存在する情報を検索する。この検索を行うには、外部のデータベースを検索してもよいし、WWW(World Wide Web)上のサーバを検索してもよい。
図2は、テンプレート記憶部1に記憶された文書テンプレートの一例である。なお、この例はフォーマットの一例であり、同一の情報を他の形式で記憶してもよく、又情報を適宜付加してもよい。また図2では、行の先頭をわかりやすくするため便宜上行の先頭には番号をつけてあるが、実際には不要である。この例では、行の先頭が“@REF”で始まる行が検索指示の行即ち検索キーの行でありそれ以降の“FIND( )”の“( )”で囲まれた文字列が検索命令になっていて、検索結果置換部3において、情報検索部4の検索結果と置き換えられる。また、行の先頭が“@REF”以外の場合即ち1、2、4の番号のつけられた行の場合は、置換が不要の行である。
【0012】
次に、この装置における処理の流れを図3に示すフローチャートを参照して説明する。
まず、ステップA1において、テンプレート記憶部1に記憶されている文書テンプレートのうちどの文書テンプレートを使うかを利用者に指示させ、指示されたテンプレートを選択する。この選択方法は、上述のように、例えばキーワードによる選択方法や階層メニューで選択する方法など従来周知の方法を用いればよい。次に、ステップA2において、ステップA1で選択された文書テンプレート上の処理対象の行数を指し示す変数iに1を代入する。そして、ステップ3で、検索結果置換部3において、選択された文書テンプレートのi行目の先頭が“@REF”であるかどうかを調べる。もしそうでなければ、その行の文章を置換する必要がないので、そのままステップA7に飛ぶ。もし“@REF”であれば、ステップ4において、その行から先頭の“@REF”を除いた部分のうち、“FIND( )”の“( )”で囲まれた文字列を情報検索部4への質問文を表わす変数Qに代入する。
【0013】
さらに、ステップA5では、変数Qに代入された質問を情報検索部4に送って検索処理を行い、ステップA6において、検索結果置換部3は、このi行目を、情報検索部4から受け取った検索結果で置き換える。そして、ステップA7でi行目が文書テンプレートの最終行かどうかを判定し、最終行ならば終了する。最終行でなければ、ステップA8で変数iに1を加えてステップA3に戻る。
【0014】
次に、以上説明したような文書作成方法について、例を用いて具体的に説明する。例えば、ステップA1で図2に示すような文書テンプレートを選択したとする。まず、ステップA2で変数iに1が代入され、ステップA3で、1行目の先頭が“@REF”であるかどうかを調べ、そうでないので、ステップA7に飛び1行目が最終行でないので、ステップA8で変数iに1を加え2とする。そしてステップ3に戻り、2行目の先頭が“@REF”でないので、再びステップA7へ飛び、ステップA8で変数iの値を3とし、ステップA3に戻る。
【0015】
ステップA3では、3行目の先頭が“@REF”であるのでステップA4に進み、“FIND( )”の“( )”で囲まれた文字列、即ち“FIND(”と“)”とで挟まれた「KEYWORD=“パソコンの売り上げ状況”and LENGTH<=3lines」が変数Qに代入される。そしてステップA5で情報検索部4においてこの質問Qが、例えば、「パソコンの売り上げ状況に関する情報で3行以下のものを検索せよ。」と解釈され、検索が行われる。 その結果、「95年度の国内出荷台数は550万台、96年度は、700万台が見込まれる。 」という結果が得られたとする。ステップA6において、この結果は検索結果置換部3に送られ、3行目がこの検索結果で置き換えられる。そしてステップA8で変数iが4となりステップA3に戻る。以上のようなステップが繰り返され、最終的に図4のような文章が生成される。
【0016】
以上説明したように、上記実施形態をとれば、テンプレート選択部2において、テンプレート記憶部1に記憶したテンプレートの中から利用者に候補を選ばせ、 利用者が指定したテンプレートを選択し、次に検索結果置換部3で1行ずつ検索キーであるか否かを判断し、そうである場合には、検索キーにしたがって情報検索部4で検索し、その結果を検索キーと置き換えることにより、時々刻々変化するような情報や外部から適切な情報を文書中に取り入れることが可能となり、生成される文書の質の向上、及び作成時間の短縮を図ることが可能となる。
【0017】
上記実施形態は検索結果が一つの場合(例えば検索キー質問Qに対する最初の検索結果が得られたときこれをもって検索結果とする場合)であるが、 検索結果が複数得られる場合に、この検索結果の中から利用者に一つ又は複数の結果を選択させるようにすることができる。このことを可能とした本発明の第2の実施形態の要部の構成を図5に示す。図5に示すものは、図1に示されるものに検索結果選択部5を付加したものである。テンプレート記憶部1、テンプレート選択部2は図1のものと同様でよいが、情報検索部4においては、 複数の検索結果が得られることがあるものとする。複数の検索結果が得られた場合、検索結果置換部3では、受け取った検索結果を検索結果選択部5に送る。検索結果選択部5では送られてきた置換候補である複数の検索結果を利用者に提示し、そのうちの1つ又はいくつかを選択させる。そして検索結果置換部3では、検索指示の行を選択された検索結果で置き換える。
【0018】
この場合の処理の流れを図6に示す。図6のものは、図3のもののステップA5とステップA6との間に、ステップB1,ステップB2を付加したもので、ステップB1において、検索結果置換部3は、ステップA5で得られた検索結果が複数であるか否かの判定を行う。もし検索結果が1つであるならば、ステップA6に飛び、検索結果が複数ある場合は、ステップB2に進んで利用者に検索結果を提示し、どれか1つ又はいくつかを選択させる。そしてステップA7の選択された検索結果により検索指示の行を選択された検索結果で置き換えるステップに進む。
【0019】
具体的には、図2で示した文書テンプレートを選択した場合、ステップA5までは上述の第1の実施形態と同様であるが、ステップA5における検索の結果、「95年度の国内出荷台数は550万台、96年度は、700万台が見込まれる。 」と、「新宿店では、1日の販売台数が25台におよんだ。」という2つの検索結果が得られたとする。ステップB1での複数との判定結果を得てステップB2で、この結果を検索結果選択部5で、例えば図7のように表示して利用者に候補を選ばせる。たとえば、「95年度の…」という検索結果が選ばれたとすると、ステップA6において、検索結果置換部3では、検索指示の行をこの選択された検索結果で置き換える。その後上述の第1の実施形態と同様に処理が行われ、この場合はやはり最終的には図4のような文章が生成される。
【0020】
このように情報検索部での検索結果が複数得られるようにし、この中から利用者に選択させるようにすることにより、時々刻々変化するような情報や外部からの情報からより適切な情報を文書中に取り入れることが可能となり、文書の質をより向上させることがが可能となる。
【0021】
なお、上記各実施形態においては、文書テンプレートの検索キー以外の部分は文が固定しているが、利用者がテンプレート選択部2でテンプレートを選択する際に、質問を行うような手法を併用し、検索キー以外の部分を変えるようにしてもよい。例えば、図8のような文書テンプレートを用いることができる。このテンプレートは「[製品分類]」と、「[製品名]」の部分が変数となっており、「製品分類は何ですか?」という質問を行い、利用者に製品分類を入力させるか、リストから選択させ、次に製品名についても同様に質問を行うことにより、1つの文書テンプレートで、幅広い使用目的を満たすことが、可能となる。この場合、これらの変数に応じて、検索キーも変化させることができる。例えば、図6においては、検索キーの中に「[製品分類]」という変数を含んでおり、「[製品分類]」の選択により、検索キー以外の部分(2行目の文)が変化するとともに、検索キーも変化するように構成されている。
【0022】
また、上記各実施形態においては、検索キーとして、「検索内容」と「結果の長さ」を用いているが、このほかに、検索キーとして、「情報の生成日時の制限」、「情報源の制限」、「文体」、「言語」などを適宜用いることができる。
【0023】
更に、上記各実施形態においては、検索の結果えられた文章自身は変形させずにそのまま用いて(第2の実施形態においても複数の結果から選択はさせても選択された文章自身は変形させずにそのまま用いて)検索キーと置き換えているが、文書テンプレートに検索キーと一緒に、所定の文体への変更、文の加工、所定の長さに要約等検索結果の文を変形させる指示を記録しておき、上記第1又は第2の実施形態のステップA6において、置換対象となる検索結果を実際に置換する前に、このような変形を行うようにすることも可能である。
【0024】
文体の変更を行う場合の本発明の第3の実施形態について説明する。この場合の図3又は図6のステップA6における処理の流れの詳細をを図9に示す。この場合上記第1又は第2の実施形態において、検索結果置換部3に文体変換手段を設けておき、また文書テンプレートにテンプレート全体と同じ文体を指示しておく。例えば、図2に示すようなテンプレートの場合、「です、ます」調の文体とする指示を記録しておくと、検索結果置換部3は、置換対象となる検索結果を実際に置換する前に、テンプレートから「です、ます」調の文体とする指示を読み取り(ステップ91)、次に置換対象となる検索結果の文章を解析しその文体を調べる(ステップ92)。その結果、その文体が「です、ます」調であれば文体が指示された文体と同一と判断し(ステップ93)そのまま置換を行う(ステップ95に飛ぶ)が、置換対象となる検索結果が、「95年度の国内出荷台数は550万台、96年度は700万台が見込まれる。 」のような場合、「です、ます」調ではなく、「である」調と判断される即ち文体が同一でないと判断されるので(ステップ93)、これを文体変換手段により「です、ます」調に変換し(ステップ94)、「95年度の国内出荷台数は550万台、96年度は700万台が見込まれます。 」とした上で置換を行う(ステップ95)。従って、置換後でも全体として、文体の統一を保つことが可能となる。なお、検索結果の文に文体を表わす語がなくステップ92で文体を特定できないときは、特に文体を変換する必要もないから、この場合は、指示された文体と同一としてそのまま置換を行う(ステップ93からステップ95に飛ぶ)こととすればよい。
【0025】
次に文の加工を行う場合、例えば検索結果の引用元を明示するよう加工する場合の本発明の第4の実施形態について説明する。この場合の図3又は図6のステップA5及びA6における処理の流れの詳細を図10に示す。この場合は上記第1又は第2の実施形態において、テンプレートに、引用元を表示する指示を記録しておく。そして検索結果置換部3は、ステップA5において、テンプレートから引用元を表示する指示を読み取り(ステップ101)、変数Qに代入された質問とともに検索結果の引用元に関する情報の要求を情報検索部4に送って(ステップ102)、情報検索部4で検索を行い(ステップ103)、情報置換部3は検索結果とともにその結果の引用元に関する情報を受け取る(ステップ104)。また、検索結果置換部3は、ステップA6において、置換対象となる検索結果を実際に置換する前に、その検索結果の引用元に関する情報を、挿入文になるような形、例えば、「3月10日付けの○○新聞によれば、」のような形として作成し(ステップ105)、この文と検索結果の文とを結合させ(ステップ106)、「3月10日付けの○○新聞によれば、95年度の国内出荷台数は550万台、96年度は、700万台が見込まれる。 」とした上で置換を行う(ステップ107)。このように引用元を挿入すれば、作成した文書の信頼性が高められる。
【0026】
次に、検索結果の要約を行う場合の本発明の第5の実施形態について説明する。この場合の図3又は図6のステップA6における処理の流れの詳細を図11に示す。この場合上記第1又は第2の実施形態において検索結果置換部3に要約手段を設けておき、また文書テンプレートに、要約の指示を記録しておく。そして検索結果置換部3はステップ6において、置換対象となる検索結果を実際に置換する前に、テンプレートから要約が指示されていることを読み取り(ステップ111)、要約手段により置換対象となる検索結果を要約手段を用いて適切な長さに要約する(ステップ112)。この要約手段としては周知のものを用いることができるが、例えば、特開平7−44566号公報に開示されているようなものを用いればよい。そして要約を行った後検索キーと置換する(ステップ113)。なお、このように検索結果を要約する場合は、上記第1又は第2の実施形態におけるように検索キーとして「検索内容」だけでよく「結果の長さ」は用いる必要はない。従って、検索結果の長さを限定した場合より得られる検索結果の範囲が広がるので、より適切な検索結果を選択することができる。
【0027】
なお、上記各実施形態において図1又は図5の各部をハードウエアで構成するものとして説明したが、これらの処理を行う部分をソフトウエアで構成することもできる。またこれらの処理を行うプログラムを記憶媒体に記憶させ、このプログラムをコンピュータによって読み取らせ、コンピュータでこれを実行させる様にしてもよい。
【0028】
【発明の効果】
以上説明したように本発明によれば、時々刻々変化するような情報や外部からの適切な情報を文書中に取り入れることが可能となり、生成される文書の質の向上及び利用者の文書作成時間の大幅な短縮が可能となる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態の要部の構成を示すブロック図。
【図2】本発明の実施形態におけるテンプレート記憶部に記憶された文書テンプレートの一例を示す図。
【図3】本発明の第1の実施形態における処理の流れを示すフローチャート。
【図4】本発明の実施形態において作成された文書の例。
【図5】本発明の第2の実施形態の要部の構成を示すブロック図。
【図6】本発明の第2の実施形態における処理の流れを示すフローチャート。
【図7】本発明の第2の実施形態における検索結果選択部での表示例を示す図。
【図8】本発明の実施形態におけるテンプレート記憶部に記憶された文書テンプレートの他の例を示す図。
【図9】本発明の第3の実施形態における要部の処理の流れを示すフローチャート。
【図10】本発明の第4の実施形態における要部の処理の流れを示すフローチャート。
【図11】本発明の第5の実施形態における要部の処理の流れを示すフローチャート。
【符号の説明】
1…テンプレート記憶部
2…テンプレート選択部
3…検索結果置換部
4…情報検索部
5…検索結果選択部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a document creation device used for a word processor, for example.
[0002]
[Prior art]
In recent years, a word processor or the like is generally used when creating a document. However, although the input of sentences such as kana-kanji conversion has been improved, the user still has to think about the contents of the sentence itself such as the composition of the sentence.
To deal with such problems, recently, a method using a document template has been considered when creating a relatively standard document such as a business letter. In this method, prepare a document with a name and other parts punched in advance, and let the user select a template directly, or let the user select a template in a question format or menu format. You can also input directly or replenish in question format or menu format.
[0003]
However, with this method, the text itself is only recorded in a pre-registered template, and variations in the content of the created document are scarce. In addition, it is impossible to prepare a template in advance for contents that change from moment to moment, such as current affairs information, and this method cannot be used.
[0004]
[Problems to be solved by the invention]
As described above, in the conventional document creation method using the document template, the document pattern tends to be monotonous, and in order to improve the quality of the sentence, the user needs to re-write after creating the template. There was a problem.
In addition, when it is impossible to prepare a document template in advance, such as a speech manuscript, which describes the current situation and reinforces the argument, the user separately retrieves information from related files, networks, etc. Must be inserted into the document.
[0005]
Therefore, the present invention has been made in view of such problems. By inserting a search key into a document template and incorporating information that changes from time to time into the document using the search key. An object of the present invention is to provide a document creation method and a document creation apparatus capable of improving the quality of a generated document and shortening the creation time.
[0007]
[Means for Solving the Problems]
The document creation apparatus according to the present invention includes a storage unit that stores a document template including a search key having a constraint on a sentence as a search result, a selection unit that selects a template from the document template stored in the storage unit, and the selection Information search means for searching for information existing within a predetermined range using a search key included in the template selected by the means, conversion means for converting a sentence of the search result into a sentence that satisfies the constraint conditions, And a search result replacing unit that replaces the search key with the converted search result sentence .
[0008]
According to the document creation method or document creation apparatus of the present invention configured as described above, since the search key part included in the template is replaced by the search result, information that changes from time to time or appropriate information from the outside can be obtained. It can be incorporated into documents.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following drawings, the same or corresponding parts are denoted by the same reference numerals.
FIG. 1 shows the configuration of the main part of the first embodiment of the present invention, which comprises a template storage unit 1, a template selection unit 2, a search result replacement unit 3, and an information search unit 4. Note that these may be configured using a part of hardware of an information processing apparatus such as a word processor or a personal computer.
[0010]
The template storage unit 1 is a place where several document templates are stored in advance. The template selection unit 2 selects a template stored in the template storage unit 1 in accordance with a user instruction. The selection method may be a conventionally known method such as a selection method using keywords or a selection method using a hierarchical menu. The search result replacement unit 3 examines the contents of the document template selected by the template selection unit 2, and if there is a search instruction line, that is, a search key line, sends the search conditions described there to the information search unit 4, Replace the search instruction line with the search result sent from the information search unit.
[0011]
Based on the search conditions sent from the search result replacement unit 3, the information search unit 4 is present on the file information in a personal computer or the like in which the document creation device is built or on the network to which the document creation device is connected. Search the information you want. To perform this search, an external database may be searched, or a server on the WWW (World Wide Web) may be searched.
FIG. 2 is an example of a document template stored in the template storage unit 1. This example is an example of a format, and the same information may be stored in other formats, and information may be added as appropriate. In FIG. 2, numbers are given to the heads of the lines for the sake of convenience in order to make the heads of the lines easier to understand. In this example, the line beginning with “@REF” is the search instruction line, that is, the search key line, and the subsequent character string enclosed in “()” of “FIND ()” is the search command. Thus, the search result replacement unit 3 replaces the search result of the information search unit 4. In addition, when the head of the line is other than “@REF”, that is, when the lines are numbered 1, 2, and 4, the lines need not be replaced.
[0012]
Next, the flow of processing in this apparatus will be described with reference to the flowchart shown in FIG.
First, in step A1, the user is instructed which document template is to be used among the document templates stored in the template storage unit 1, and the instructed template is selected. As this selection method, as described above, a conventionally known method such as a selection method using a keyword or a selection method using a hierarchical menu may be used. Next, in step A2, 1 is substituted into a variable i indicating the number of lines to be processed on the document template selected in step A1. In step 3, the search result replacing unit 3 checks whether or not the head of the i-th line of the selected document template is “@REF”. If not, since it is not necessary to replace the sentence on that line, the process jumps to step A7. If “@REF”, in step 4, the character string enclosed by “()” of “FIND ()” in the portion excluding the leading “@REF” from the line is searched for by the information search unit 4. Is substituted into a variable Q representing a question sentence.
[0013]
Further, in step A5, the question assigned to the variable Q is sent to the information search unit 4 to perform a search process. In step A6, the search result replacement unit 3 receives this i-th row from the information search unit 4. Replace with search results. In step A7, it is determined whether or not the i-th line is the last line of the document template. If it is not the last line, 1 is added to the variable i in step A8, and the process returns to step A3.
[0014]
Next, the document creation method as described above will be specifically described using an example. For example, assume that a document template as shown in FIG. 2 is selected in step A1. First, 1 is assigned to the variable i in step A2, and it is checked in step A3 whether or not the top of the first line is “@REF”. Otherwise, the process jumps to step A7 and the first line is not the last line. In step A8, 1 is added to the variable i to obtain 2. Then, returning to step 3, since the head of the second line is not “@REF”, the process jumps to step A7 again, the value of variable i is set to 3 in step A8, and the process returns to step A3.
[0015]
In step A3, since the head of the third line is “@REF”, the process proceeds to step A4, where the character string enclosed by “()” in “FIND ()”, that is, “FIND (” and “)”. The sandwiched “KEYWORD =“ PC sales situation ”and LENGTH <= 3lines” is substituted into the variable Q. In step A5, the information search unit 4 interprets the question Q as, for example, “Search for information related to the sales status of the personal computer and search for items with three or less lines”. As a result, it is assumed that the number of domestic shipments in 1995 is 5.5 million units, and 7 million units are expected in 1996. In step A6, the result is sent to the search result replacing unit 3, and the third line is replaced with the search result. In step A8, the variable i becomes 4 and the process returns to step A3. The above steps are repeated, and finally a sentence as shown in FIG. 4 is generated.
[0016]
As described above, according to the above embodiment, the template selection unit 2 allows the user to select a candidate from the templates stored in the template storage unit 1, selects the template designated by the user, The search result replacement unit 3 determines whether or not the search key is one line at a time. If so, the information search unit 4 searches according to the search key and replaces the result with the search key. It is possible to incorporate information that changes every moment and appropriate information from the outside into the document, and it is possible to improve the quality of the generated document and shorten the creation time.
[0017]
In the above embodiment, there is one search result (for example, when the first search result for the search key question Q is obtained, this is used as the search result). However, when a plurality of search results are obtained, this search result is obtained. The user can be made to select one or a plurality of results. FIG. 5 shows the configuration of the main part of the second embodiment of the present invention that enables this. 5 is obtained by adding a search result selection unit 5 to that shown in FIG. The template storage unit 1 and the template selection unit 2 may be the same as those in FIG. 1, but the information search unit 4 may obtain a plurality of search results. When a plurality of search results are obtained, the search result replacement unit 3 sends the received search results to the search result selection unit 5. The search result selection unit 5 presents a plurality of search results that are sent as replacement candidates to the user, and selects one or several of them. The search result replacement unit 3 replaces the search instruction line with the selected search result.
[0018]
The processing flow in this case is shown in FIG. 6 is obtained by adding Step B1 and Step B2 between Step A5 and Step A6 of FIG. 3. In Step B1, the search result replacing unit 3 performs the search result obtained in Step A5. It is determined whether or not there is a plurality. If there is only one search result, the process jumps to step A6, and if there are a plurality of search results, the process proceeds to step B2 to present the search result to the user and select one or several of them. Then, the process proceeds to the step of replacing the search instruction line with the selected search result by the selected search result in step A7.
[0019]
Specifically, when the document template shown in FIG. 2 is selected, the process up to step A5 is the same as in the first embodiment described above. However, as a result of the search in step A5, “the number of domestic shipments in 1995 is 550”. Suppose that two search results are obtained: “Thousand units are expected to reach 7 million units in 1996.” and “Shinjuku store sold 25 units a day.” In step B2, the result of determination as plural in step B1 is obtained, and this result is displayed in the search result selection unit 5 as shown in FIG. 7, for example, to allow the user to select a candidate. For example, if the search result “95 of…” is selected, the search result replacement unit 3 replaces the search instruction row with the selected search result in step A6. Thereafter, processing is performed in the same manner as in the first embodiment described above. In this case, a sentence as shown in FIG. 4 is finally generated.
[0020]
In this way, by obtaining multiple search results in the information search unit and letting the user select from these results, more appropriate information can be documented from information that changes from time to time and information from outside. Can be incorporated into the document, and the quality of the document can be further improved.
[0021]
In each of the above embodiments, sentences other than the search key of the document template are fixed. However, when the user selects a template with the template selection unit 2, a method of asking a question is used together. The part other than the search key may be changed. For example, a document template as shown in FIG. 8 can be used. In this template, “[Product classification]” and “[Product name]” are variables, ask the question “What is the product classification?” And ask the user to enter the product classification. By selecting from the list and then asking the product name in the same manner, it is possible to satisfy a wide range of usage purposes with a single document template. In this case, the search key can be changed according to these variables. For example, in FIG. 6, the search key includes a variable “[product category]”, and the portion other than the search key (the sentence on the second line) changes depending on the selection of “[product category]”. At the same time, the search key is also changed.
[0022]
In each of the above embodiments, “search contents” and “result length” are used as search keys. In addition, “information generation date and time restriction” and “information source” are used as search keys. "Restriction", "Style", "Language", etc. can be used as appropriate.
[0023]
Further, in each of the above embodiments, the text obtained as a result of the search is used as it is without being deformed (in the second embodiment, the selected text itself is deformed even if it is selected from a plurality of results. The search key is replaced with the search key, but the document template is instructed to change the text to the specified text style, modify the text, modify the text of the search result, such as a summary, to a specified length. It is also possible to record such a modification before actually replacing the search result to be replaced in step A6 of the first or second embodiment.
[0024]
A third embodiment of the present invention when changing the style will be described. FIG. 9 shows details of the processing flow in step A6 of FIG. 3 or FIG. 6 in this case. In this case, in the first or second embodiment, the search result replacing unit 3 is provided with a style conversion unit, and the same style as the entire template is designated in the document template. For example, in the case of a template as shown in FIG. 2, if an instruction to make a “Is, Masa” style text is recorded, the search result replacement unit 3 will perform a search before replacing the search result to be replaced. Then, an instruction to make a “is, masu” style text is read from the template (step 91), and the text of the search result to be replaced is analyzed to check the style (step 92). As a result, if the style of the text is “I am,” it is determined that the style is the same as the instructed style (step 93), the replacement is performed as is (jumps to step 95), but the search result to be replaced is In the case of “The number of domestic shipments in fiscal 1995 is 5.5 million units, and 7 million units are expected in fiscal 1996.” (Step 93), it is converted to “Dai, Masashi” tone by the style conversion means (Step 94). “The number of domestic shipments in 1995 was 5.5 million units, and that in 1996 was 7 million units. Then, replacement is performed (step 95). Therefore, it is possible to maintain a uniform style even after replacement. If there is no word representing the style in the sentence of the search result and the style cannot be specified in step 92, there is no need to convert the style, so in this case, it is replaced as it is with the designated style (step) 93 to step 95).
[0025]
Next, a description will be given of a fourth embodiment of the present invention in the case of processing a sentence, for example, in a case where processing is performed so as to clearly indicate a citation source of a search result. FIG. 10 shows details of the processing flow in steps A5 and A6 of FIG. 3 or FIG. 6 in this case. In this case, in the first or second embodiment, an instruction to display the citation source is recorded in the template. In step A5, the search result replacing unit 3 reads an instruction to display the citation source from the template (step 101), and sends a request for information regarding the citation source of the search result to the information search unit 4 together with the question assigned to the variable Q. (Step 102), the information search unit 4 performs a search (step 103), and the information replacement unit 3 receives information about the citation source of the result together with the search result (step 104). In step A6, the search result replacing unit 3 converts the information about the citation source of the search result into an insertion sentence, for example, “March” before actually replacing the search result to be replaced. According to the XX newspaper dated 10th, it is created as “” (step 105), and this sentence is combined with the search result sentence (step 106). According to the above, the number of domestic shipments in 1995 is 5.5 million units, and 7 million units are expected in 1996. Inserting a citation source in this way increases the reliability of the created document.
[0026]
Next, a fifth embodiment of the present invention in the case of summarizing search results will be described. FIG. 11 shows details of the process flow in step A6 of FIG. 3 or FIG. 6 in this case. In this case, in the first or second embodiment, a summary means is provided in the search result replacing unit 3, and a summary instruction is recorded in the document template. Then, in step 6, the search result replacement unit 3 reads that the summary is instructed from the template before actually replacing the search result to be replaced (step 111), and the search result to be replaced by the summarizing means. Are summarized to an appropriate length using the summarizing means (step 112). As this summarizing means, a well-known means can be used. For example, a means as disclosed in JP-A-7-44566 may be used. Then, after summarizing, the search key is replaced (step 113). When summarizing the search results in this way, it is only necessary to use “search contents” as a search key as in the first or second embodiment, and it is not necessary to use “result length”. Accordingly, since the range of search results obtained is wider than when the length of the search results is limited, a more appropriate search result can be selected.
[0027]
In each of the above embodiments, each part of FIG. 1 or FIG. 5 has been described as being configured by hardware. However, the part that performs these processes may be configured by software. A program for performing these processes may be stored in a storage medium, read by the computer, and executed by the computer.
[0028]
【The invention's effect】
As described above, according to the present invention, it is possible to incorporate information that changes from time to time and appropriate information from the outside into the document, improving the quality of the generated document, and the user's document creation time. Can be greatly shortened.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a main part of a first embodiment of the present invention.
FIG. 2 is a diagram showing an example of a document template stored in a template storage unit according to the embodiment of the present invention.
FIG. 3 is a flowchart showing a flow of processing in the first embodiment of the present invention.
FIG. 4 shows an example of a document created in the embodiment of the present invention.
FIG. 5 is a block diagram showing a configuration of a main part of a second embodiment of the present invention.
FIG. 6 is a flowchart showing the flow of processing in the second embodiment of the present invention.
FIG. 7 is a diagram showing a display example in a search result selection unit in the second embodiment of the present invention.
FIG. 8 is a diagram showing another example of a document template stored in the template storage unit according to the embodiment of the present invention.
FIG. 9 is a flowchart showing a flow of processing of main parts in the third embodiment of the present invention.
FIG. 10 is a flowchart showing a flow of processing of main parts in the fourth embodiment of the present invention.
FIG. 11 is a flowchart showing a flow of processing of main parts in the fifth embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Template memory | storage part 2 ... Template selection part 3 ... Search result replacement part 4 ... Information search part 5 ... Search result selection part

Claims (8)

検索結果の文に対する制約条件を有する検索キーを含む文書テンプレートを記憶する記憶手段と、
前記記憶手段に記憶された文書テンプレートからテンプレートを選択する選択手段と、
前記選択手段で選択されたテンプレートに含まれる検索キーを用いて所定の範囲内に存在する情報を検索する情報検索手段と、
検索結果の文を、前記制約条件を満たす文に変換する変換手段と、
前記検索キーを変換された検索結果の文で置き換える検索結果置換手段と、
を具備することを特徴とする文書作成装置。
Storage means for storing a document template including a search key having a constraint on a sentence as a search result;
Selecting means for selecting a template from the document templates stored in the storage means;
Information search means for searching for information existing within a predetermined range using a search key included in the template selected by the selection means;
A conversion means for converting a sentence as a search result into a sentence that satisfies the constraint condition;
Search result replacing means for replacing the search key with the converted search result sentence;
A document creating apparatus comprising:
前記変換手段は、前記検索結果の文の文体が前記制約条件を満たしていない場合に変換する、
請求項に記載の文書作成装置。
The converting means converts when the style of the sentence of the search result does not satisfy the constraint condition,
The document creation apparatus according to claim 1 .
前記選択されたテンプレートの内容の一部が選択可能なものであり、
前記情報検索手段は、選択された内容に応じて前記選択されたテンプレートに含まれる検索キーを変化させる手段を備える、
請求項または請求項に記載の文書作成装置。
A portion of the content of the selected template is selectable;
The information search means includes means for changing a search key included in the selected template according to the selected content.
The document creation apparatus according to claim 1 or 2 .
前記情報検索手段は、
検索結果が複数ある場合に1つ若しくは複数の検索結果を選択する検索結果選択手段、
を備える請求項から請求項までのいずれか一項に記載の文書作成装置。
The information search means includes
Search result selection means for selecting one or a plurality of search results when there are a plurality of search results;
Document creation apparatus according to any one of claims 1 to 3 which comprises a.
前記制約条件は検索結果の文の文体の指定を含み、
前記検索結果置換手段は、前記検索結果の文を前記制約条件で指定された文体に変換する、
請求項から請求項までのいずれか一項に記載の文書作成装置。
The constraint condition includes specification of a style of a sentence as a search result,
The search result replacing means converts the sentence of the search result into a sentence style specified by the constraint condition;
Document creation apparatus according to any one of claims 1 to 4.
前記制約条件は検索結果の文の長さの条件を含み、
前記検索結果置換手段は、前記検索結果の文を前記制約条件で指定された長さの条件を満たすように要約する手段を備える、
請求項から請求項までのいずれか一項に記載の文書作成装置。
The constraint condition includes a sentence length condition of a search result,
The search result replacing means includes means for summarizing the sentence of the search result so as to satisfy a condition of a length specified by the constraint condition.
Document creation apparatus according to any one of claims 1 to 5.
前記制約条件は検索結果の文の言語の指定を含み、
前記検索結果置換手段は、前記検索結果の文を前記制約条件で指定された言語に変換する手段を備える、
請求項から請求項までのいずれか一項に記載の文書作成装置。
The constraint includes specifying the language of the search result sentence,
The search result replacing means comprises means for converting the sentence of the search result into a language specified by the constraint condition.
Document creation apparatus according to any one of claims 1 to 6.
前記検索結果置換手段は、
前記検索結果の引用元に関する情報を示す挿入文を生成する手段、
および、前記生成された挿入文と前記検索結果とを結合する手段、
を備える、請求項から請求項までのいずれか一項に記載の文書作成装置。
The search result replacing means includes:
Means for generating an insertion sentence indicating information on a citation source of the search result;
And means for combining the generated insertion sentence and the search result,
Comprising a document creation apparatus according to any one of claims 1 to 7.
JP31573896A 1996-11-27 1996-11-27 Document creation device Expired - Fee Related JP4187802B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31573896A JP4187802B2 (en) 1996-11-27 1996-11-27 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31573896A JP4187802B2 (en) 1996-11-27 1996-11-27 Document creation device

Publications (2)

Publication Number Publication Date
JPH10161996A JPH10161996A (en) 1998-06-19
JP4187802B2 true JP4187802B2 (en) 2008-11-26

Family

ID=18068950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31573896A Expired - Fee Related JP4187802B2 (en) 1996-11-27 1996-11-27 Document creation device

Country Status (1)

Country Link
JP (1) JP4187802B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006268210A (en) * 2005-03-23 2006-10-05 Dainippon Printing Co Ltd Document creation support system, server, program, and recording medium
JP5395820B2 (en) * 2011-01-27 2014-01-22 株式会社ゼンリンデータコム Information search and translation system, information search server, communication terminal, information search and translation method, and information search and translation device
CN112711937B (en) * 2021-01-18 2022-06-24 腾讯科技(深圳)有限公司 Template recommendation method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5941046A (en) * 1982-08-31 1984-03-07 Mitsubishi Electric Corp How to edit documents
JPH0650508B2 (en) * 1984-05-18 1994-06-29 キヤノン株式会社 Character processing method

Also Published As

Publication number Publication date
JPH10161996A (en) 1998-06-19

Similar Documents

Publication Publication Date Title
US5774118A (en) Method and device for displaying help for operations and concepts matching skill level
JP2007287134A (en) Information extraction apparatus and information extraction method
JP2020080025A (en) Question answer data generation device and question answer data generation method
JP2012248161A (en) Interactive retrieval system and program, and interaction scenario creation system and program
WO2004001570A1 (en) Method for describing existing data by a natural language and program for that
CA2275391C (en) File processing method, data processing device, and storage medium
JP2006072744A (en) Document processing apparatus, control method thereof, program, and storage medium
JPWO2008108061A1 (en) Language processing system, language processing method, language processing program, and recording medium
JP4187802B2 (en) Document creation device
WO2018088027A1 (en) Document search device, document search method, and computer program
JP2004302660A (en) Question answering system, question answering method and program
JP3937741B2 (en) Document standardization
CN114328895B (en) News abstract generation method and device and computer equipment
JP7022789B2 (en) Document search device, document search method and computer program
JP3766406B2 (en) Machine translation device
US20030009490A1 (en) Information processing apparatus, information processing method, recording medium, program, and electronic-publishing-data providing system
JP2001034611A (en) Reading information output device and recording medium
JP2006323517A (en) Text classification device and program
JP3734101B2 (en) Hypermedia construction support device
US20040164989A1 (en) Method and apparatus for disclosing information, and medium for recording information disclosure program
JP2001101186A (en) Machine translating device
WO2002075585A1 (en) Machine-translation apparatus
JP5160120B2 (en) Information search apparatus, information search method, and information search program
JP4088176B2 (en) Question answering apparatus and question answering program
JPS58151677A (en) Editing method of translated sentence

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050401

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050408

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050414

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050606

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050607

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051207

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060206

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060316

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20060331

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080808

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

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees