JP4885569B2 - Style sheet generating apparatus and style sheet generating program - Google Patents

Style sheet generating apparatus and style sheet generating program Download PDF

Info

Publication number
JP4885569B2
JP4885569B2 JP2006057502A JP2006057502A JP4885569B2 JP 4885569 B2 JP4885569 B2 JP 4885569B2 JP 2006057502 A JP2006057502 A JP 2006057502A JP 2006057502 A JP2006057502 A JP 2006057502A JP 4885569 B2 JP4885569 B2 JP 4885569B2
Authority
JP
Japan
Prior art keywords
template
style sheet
content
learning
probability table
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
JP2006057502A
Other languages
Japanese (ja)
Other versions
JP2007233912A (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.)
Japan Broadcasting Corp
NHK Engineering System Inc
Original Assignee
NHK Engineering Services Inc
Japan Broadcasting 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 NHK Engineering Services Inc, Japan Broadcasting Corp filed Critical NHK Engineering Services Inc
Priority to JP2006057502A priority Critical patent/JP4885569B2/en
Publication of JP2007233912A publication Critical patent/JP2007233912A/en
Application granted granted Critical
Publication of JP4885569B2 publication Critical patent/JP4885569B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

本発明は、スタイルシート生成装置及びスタイルシート生成プログラムに係り、特に、容易に適切なスタイルシートを生成するためのスタイルシート生成装置及びスタイルシート生成プログラムに関する。   The present invention relates to a style sheet generation apparatus and a style sheet generation program, and more particularly to a style sheet generation apparatus and a style sheet generation program for easily generating an appropriate style sheet.

従来、ウェブページ等におけるスタイルシート記述手法では、例えばCSS(Cascading Style Sheets)のようにテンプレートをタグ名や属性だけで一意に選択する手法や、XSLT(eXtended Stylesheet Language Transformations)のように二者択一や複数分岐、繰り返し処理等、テンプレートの選択にアルゴリズムを記述できるようにした手法等が知られている。   Conventional style sheet description methods for web pages and the like are, for example, two methods such as CSS (Cascading Style Sheets) such as a method for uniquely selecting a template only by tag name and attributes, and XSLT (eXtended Style Language Transformations). There are known methods that allow an algorithm to be described for template selection, such as one or more branches, repetitive processing, and the like.

また、一般的には、スタイルシートを設計するためには上述したようなスタイルシートの記述手法や文法についての知識が必要である。そこで、従来ではスタイルシートを記述するための文法に関する知識がなくても容易にスタイルシート設計できるように、部品化したフォーム部品の候補をGUI(Graphical User Interface)に適合する形式で文書設計者に提示する手法がある(例えば、特許文献1参照。)。
特開2003−303183号公報
In general, in order to design a style sheet, knowledge of the style sheet description method and grammar as described above is required. Therefore, in order to make it possible to easily design a style sheet without knowledge of the grammar for describing the style sheet in the past, the candidate for the form part that has been made into a part is in a format that conforms to the GUI (Graphical User Interface) to the document designer. There is a technique to present (see, for example, Patent Document 1).
JP 2003-303183 A

しかしながら、従来のCSSは、タグ名や属性値によってテンプレートを一意に選択するため、複雑な条件分岐やランダム選択等を記述することができなかった。また、XSLTではアルゴリズムでif文等の条件分岐、for文等の繰り返し処理等、複雑なテンプレート選択が可能である反面、アルゴリズムを人手で構築しなければならず、高度な技術が必要となる。そのため、スタイルシートの制作は非常に困難であった。   However, since the conventional CSS uniquely selects a template based on a tag name and an attribute value, complicated conditional branching and random selection cannot be described. In addition, in XSLT, complicated template selection such as conditional branching of if sentence and the like and iterative processing of for sentence and the like can be performed by an algorithm, but the algorithm has to be constructed manually, and advanced techniques are required. Therefore, the production of style sheets has been very difficult.

また、特許文献1では、予め用意されるフォーム部品からユーザが詳細な選択をする必要があるため、手間と時間がかかる作業となっていた。   Moreover, in patent document 1, since the user needs to make a detailed selection from form parts prepared in advance, the work is time-consuming and time-consuming.

本発明は、上述した問題点に鑑みなされたものであり、容易に適切なスタイルシートを生成するためのスタイルシート生成装置及びスタイルシート生成プログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a style sheet generation device and a style sheet generation program for easily generating an appropriate style sheet.

上記課題を解決するために、本件発明は、以下の特徴を有する課題を解決するための手段を採用している。   In order to solve the above problems, the present invention employs means for solving the problems having the following characteristics.

請求項1に記載された発明は、コンテンツの演出が記述されたスタイルシートを生成するスタイルシート生成装置において、予め蓄積された学習用のコンテンツの内容が記述された内容記述データと、前記内容記述データに対応して完成された正解データを含むスタイルシートとを用いて、前記内容記述データの各エレメントに含まれるパラメータに対応する前記正解データの部分を前記スタイルシートから抽出し、抽出された正解データを用いて少なくとも1つのテンプレートを生成する学習手段と、前記学習手段により得られるテンプレート毎に識別情報を付与し、更に前記識別情報毎に前記パラメータに対応して設定された呼び出し条件による呼び出し回数をカウントし、カウントした結果に基づいて、前記テンプレート毎の呼び出し確率を含む確率テーブルを生成する確率テーブル生成手段と、前記テンプレートと、前記確率テーブルとを蓄積する蓄積手段と、入力される未学習のコンテンツの内容が記述された内容記述データの各エレメントに含まれる少なくとも1つのパラメータを有するテンプレートの呼び出し条件を用いて、前記蓄積手段により得られる前記確率テーブルから、前記呼び出し条件に対応する1又は複数のテンプレートの識別情報を抽出し、抽出した識別情報に対応するテンプレート毎の呼び出し確率を用いて、前記蓄積手段に蓄積されたテンプレートから所定のテンプレートを選択し、選択したテンプレートを用いて前記内容記述データから前記スタイルシートを生成するスタイルシート生成手段とを有することを特徴とする。 According to a first aspect of the present invention, there is provided a style sheet generating apparatus for generating a style sheet in which a content effect is described, and content description data in which the content of learning content stored in advance is described, and the content description And using a style sheet including correct answer data completed corresponding to the data, a portion of the correct answer data corresponding to a parameter included in each element of the content description data is extracted from the style sheet, and the extracted correct answer A learning means for generating at least one template using data, and identification information is assigned to each template obtained by the learning means, and the number of calls by a calling condition set corresponding to the parameter for each identification information And call for each template based on the counted result. Includes a probability table generating means for generating a probability table containing the rate, and the template, and storing means for storing said probability table, each element of the content description data of the content of the unlearned is described input The identification information of one or a plurality of templates corresponding to the calling condition is extracted from the probability table obtained by the storage unit using the calling condition of the template having at least one parameter, and corresponds to the extracted identification information Style sheet generation means for selecting a predetermined template from the templates stored in the storage means using the call probability for each template to be generated, and generating the style sheet from the content description data using the selected template. It is characterized by that.

請求項1記載の発明によれば、容易に適切なスタイルシートを生成することができる。また、確率テーブルを用いることで、演出表現にばらつきを持たせることができる。また、テンプレートの出現頻度が確率によって制御されることにより演出を自然に行うことができる。更に、テンプレートの出現頻度を高精度に設定することができる。 According to the first aspect of the present invention, an appropriate style sheet can be easily generated. In addition, by using the probability table, it is possible to give variation to the effect expression. Further, the appearance can be naturally performed by controlling the appearance frequency of the template by the probability. Furthermore, the appearance frequency of the template can be set with high accuracy.

請求項に記載された発明は、前記確率テーブル生成手段は、前記テンプレートの呼び出し条件として、前記内容記述データに含まれる各エレメント毎のタグ名、属性値、テキスト値、表層的な呼び出し条件情報、及びコンテンツの詳細情報の各パラメータのうち、少なくとも1つを有することを特徴とする。 According to a second aspect of the present invention, the probability table generating means includes a tag name, an attribute value, a text value, and superficial calling condition information for each element included in the content description data as the calling condition of the template. , and among the parameters of the detailed information of the content, and having at least one.

請求項記載の発明によれば、それぞれの呼び出し条件に基づいて、詳細な確率テーブルを生成することができる。 According to the second aspect of the present invention, a detailed probability table can be generated based on each calling condition.

請求項に記載された発明は、前記確率テーブル生成手段は、前記呼び出し条件に対応させて少なくとも1つのテンプレートを生成することを特徴とする。 The invention described in claim 3 is characterized in that the probability table generating means generates at least one template corresponding to the calling condition.

請求項記載の発明によれば、呼び出し条件に対応させて少なくとも1つのテンプレートを生成しておくことにより、表現にばらつきを持たせることができる。また、テンプレートの出現頻度が確率によって制御されることにより演出を自然に行うことができる。 According to the third aspect of the present invention, the expression can be varied by generating at least one template corresponding to the calling condition. Further, the appearance can be naturally performed by controlling the appearance frequency of the template by the probability.

請求項に記載された発明は、前記学習手段は、前記テンプレートの生成時に前記内容記述データのエレメントに含まれるテキスト部分を所定の変数で置換することを特徴とする。 The invention described in claim 4 is characterized in that the learning means replaces a text portion included in an element of the content description data with a predetermined variable when the template is generated.

請求項記載の発明によれば、汎用的なテンプレートを生成することができる。 According to the invention described in claim 4 , a general-purpose template can be generated.

請求項に記載された発明は、前記スタイルシート生成手段は、前記抽出した識別情報に対応するテンプレート毎の呼び出し確率を用いて、前記蓄積手段に蓄積されたテンプレートから所定のテンプレートを選択する際、前記呼び出し確率に基づいて乱数を発生させ、前記乱数により前記蓄積手段に蓄積されたテンプレートから所定のテンプレートを選択することを特徴とする。 According to a fifth aspect of the present invention, when the style sheet generation unit selects a predetermined template from the templates stored in the storage unit using the call probability for each template corresponding to the extracted identification information. A random number is generated based on the call probability, and a predetermined template is selected from the templates stored in the storage means by the random number .

請求項記載の発明によれば、表現にばらつきを持たせることができる。また、テンプレートの出現頻度が確率によって制御されることにより演出を自然に行うことができる。 According to the invention described in claim 5 , the expression can be varied. Further, the appearance can be naturally performed by controlling the appearance frequency of the template by the probability.

請求項に記載された発明は、使用者からの指示を入力する入力手段と、前記学習用のコンテンツの内容記述データを表示する領域、前記正解データを含むスタイルシートを表示する領域、及び前記入力手段により入力された指示内容に基づいてテンプレートを生成するための編集領域のうち、少なくとも1つの領域を有する使用者操作画面を表示する表示手段とを有することを特徴とする。 The invention described in claim 6, region displaying means for inputting an instruction from the user, an area for displaying the content description data of the contents for the learning, a style sheet that contains the correct answer data, and the It has a display means for displaying a user operation screen having at least one area among edit areas for generating a template based on the instruction content input by the input means.

請求項記載の発明によれば、使用者により容易且つ迅速に適切なテンプレートを生成することができる。 According to the sixth aspect of the present invention, an appropriate template can be generated easily and quickly by the user.

請求項に記載された発明は、コンピュータを、請求項1乃至6の何れか1項に記載のスタイルシート生成装置が有する各手段として機能させるためのスタイルシート生成プログラムである。 The invention described in claim 7 is a style sheet generation program for causing a computer to function as each unit included in the style sheet generation apparatus according to any one of claims 1 to 6 .

請求項記載の発明によれば、容易に適切なスタイルシートを生成することができる。また、確率テーブルを用いることで、演出表現にばらつきを持たせることができる。また、テンプレートの出現頻度が確率によって制御されることにより演出を自然に行うことができる。また、テンプレートの出現頻度を高精度に設定することができる。更に、実行プログラムをコンピュータにインストールすることにより、容易にスタイルシートを生成することができる。 According to the seventh aspect of the present invention, an appropriate style sheet can be easily generated. In addition, by using the probability table, it is possible to give variation to the effect expression. Further, the appearance can be naturally performed by controlling the appearance frequency of the template by the probability. Further, the appearance frequency of the template can be set with high accuracy. Furthermore, a style sheet can be easily generated by installing an execution program in a computer.

本発明によれば、容易に適切なスタイルシートを生成することができる。   According to the present invention, an appropriate style sheet can be easily generated.

<本発明の概要>
本発明は、スタイルシートの記述にアルゴリズムを記述させるのではなく、コンテンツの内容部分が記述された内容記述データ(台本データ)と理想的な変換結果(正解データ)とを照らし合わせ、学習させることによってスタイルシートを構築する。つまり、学習によってテンプレートの集合と、どのような台本データのときに、どのテンプレートが選択されたかを示す確率テーブルを生成する。また、スタイルシートの生成の際には、入力された未学習の内容記述データに基づいて確率テーブルを参照し、どのテンプレートを選択するかを確率的に決定する。これにより、より容易に適切なスタイルシートを生成することが可能となる。
<Outline of the present invention>
Rather than letting the algorithm be described in the description of the style sheet, the present invention compares and learns the content description data (script data) in which the content part of the content is described and the ideal conversion result (correct answer data). Build a style sheet with That is, a set of templates and a probability table indicating which template is selected at the time of the script data are generated by learning. Further, when generating a style sheet, a probability table is referred to based on the input unlearned content description data, and a template to be selected is determined probabilistically. This makes it possible to generate an appropriate style sheet more easily.

以下に、上述したような特徴を有する本発明におけるスタイルシート生成装置及びスタイルシート生成プログラムを好適に実施した形態について、図面等を用いて詳細に説明する。   Hereinafter, embodiments in which a style sheet generation apparatus and a style sheet generation program according to the present invention having the above-described features are preferably implemented will be described in detail with reference to the drawings.

ここで、以下の実施形態では、TV4Uにおける演出スタイルシート(APE)の確率論的テンプレートの生成とその使用方法について説明する。TV4Uとは、ワープロ型のユーザインタフェースを用いて番組の台本を記述し、その台本に任意の番組制作エンジンを適用して番組を制作することができる自動番組制作ツールである。   Here, the following embodiment demonstrates the production | generation of the stochastic template of the presentation style sheet (APE) in TV4U, and its usage. The TV 4U is an automatic program production tool capable of describing a script of a program using a word processor type user interface and producing a program by applying an arbitrary program production engine to the script.

また、本実施形態では、コンテンツの一例としてTVML(TV program Marking Language)を用いた番組を例に説明するが、本発明におけるコンテンツの種類は、これに限定されることはなく、例えば、音楽や映画、画像、音声等の多種多様なコンテンツに対応することができる。   In this embodiment, a program using TVML (TV program Marking Language) is described as an example of content. However, the type of content in the present invention is not limited to this, for example, music or A wide variety of contents such as movies, images and sounds can be handled.

ここで、TVMLとは、テレビ番組を制作するためのオブジェクトベース記述言語であり、テレビ番組の映像と音声等を、素材と台本とに分けて記述でき、番組台本を記述すればパソコン等で動作するソフトウェア等がこれを読取り、即座にテレビ番組として視聴(提示)することができるものである。なお、本発明は、TVMLに限定されるものではなくTVML以外の表現形式を用いてもよい。   Here, TVML is an object-based description language for producing TV programs. Video and audio of TV programs can be described by dividing them into materials and scripts. Software or the like can read it and immediately view (present) it as a television program. The present invention is not limited to TVML, and an expression format other than TVML may be used.

<スタイルシート生成装置:装置構成>
図1は、本発明におけるスタイルシート生成装置の装置構成の一例を示す図である。図1に示すスタイルシート生成装置10は、入力装置11と、出力装置12と、ドライブ装置13と、補助記憶装置14と、メモリ装置15と、各種制御を行うCPU(Central Processing Unit)16と、ネットワーク接続装置17とを有するよう構成されており、これらはシステムバスBで相互に接続されている。
<Style sheet generation device: device configuration>
FIG. 1 is a diagram illustrating an example of a device configuration of a style sheet generating device according to the present invention. 1 includes an input device 11, an output device 12, a drive device 13, an auxiliary storage device 14, a memory device 15, a CPU (Central Processing Unit) 16 that performs various controls, And a network connection device 17, which are connected to each other via a system bus B.

入力装置11は、使用者が操作するキーボード及びマウス等のポインティングデバイスを有しており、使用者からのプログラムの実行等、各種操作信号を入力する。また、出力装置12は、本発明における処理を行う装置本体を操作するために必要な各種ウィンドウやデータ等を表示するディスプレイや音声を出力するスピーカ等を有し、CPU16が有する制御プログラムによりプログラムの実行経過や結果等を表示、出力することができる。   The input device 11 has a pointing device such as a keyboard and a mouse operated by a user, and inputs various operation signals such as execution of a program from the user. Further, the output device 12 has a display for displaying various windows and data necessary for operating the device main body for performing processing in the present invention, a speaker for outputting sound, and the like, and the program of the program is controlled by the control program of the CPU 16. Execution progress and results can be displayed and output.

ここで、本発明において、装置本体にインストールされる実行プログラム(スタイルシート生成プログラム)は、例えばCD−ROM等の記録媒体18等により提供される。プログラムを記録した記録媒体18は、ドライブ装置13にセット可能であり、記録媒体18に含まれる実行プログラムは、記録媒体18からドライブ装置13を介して補助記憶装置14にインストールされる。   In the present invention, an execution program (style sheet generation program) installed in the apparatus main body is provided by a recording medium 18 such as a CD-ROM. The recording medium 18 on which the program is recorded can be set in the drive device 13, and the execution program included in the recording medium 18 is installed in the auxiliary storage device 14 from the recording medium 18 via the drive device 13.

補助記憶装置14は、ハードディスク等のストレージ手段であり、本発明における実行プログラムや、スタイルシート生成装置10に設けられた制御プログラム等を蓄積し必要に応じて入出力を行うことができる。   The auxiliary storage device 14 is a storage means such as a hard disk, and can store an execution program in the present invention, a control program provided in the style sheet generation device 10 and the like, and can perform input / output as necessary.

CPU16は、OS(Operating System)等の制御プログラム、メモリ装置15により読み出され格納されている実行プログラムに基づいて、各種演算や各ハードウェア構成部とのデータの入出力等、装置全体の処理を制御して各処理を実現することができる。また、CPU16は、プログラムの実行中に必要な各種情報を補助記憶装置14から取得することができ、また処理結果等を補助記憶装置14に格納させることもできる。   The CPU 16 performs processing of the entire apparatus such as various operations and input / output of data with each hardware component based on a control program such as an OS (Operating System) and an execution program read and stored by the memory device 15. Each process can be realized by controlling the above. Further, the CPU 16 can acquire various kinds of information necessary during the execution of the program from the auxiliary storage device 14, and can store processing results and the like in the auxiliary storage device 14.

ネットワーク接続装置17は、インターネットやLAN(Local Area Network)等に代表される通信ネットワーク等と接続することにより、実行プログラムを通信ネットワークに接続されている他の端末等から取得したり、プログラムを実行することで得られた結果又は本発明における実行プログラム自体を他の端末等に提供することができる。   The network connection device 17 obtains an execution program from another terminal connected to the communication network or executes the program by connecting to a communication network such as the Internet or a LAN (Local Area Network). Thus, the result obtained by doing this or the execution program itself in the present invention can be provided to another terminal or the like.

<スタイルシート生成装置:機能構成>
次に、スタイルシート生成装置10の機能構成例について説明する。図2は、本発明におけるスタイルシート生成装置の機能構成の一例を示す図である。図2に示すスタイルシート生成装置10は、入力手段21と、出力手段22と、蓄積手段23と、学習手段24と、確率テーブル生成手段25と、スタイルシート生成手段26と、送受信手段27と、制御手段28とを有するよう構成されている。
<Style sheet generator: functional configuration>
Next, a functional configuration example of the style sheet generating apparatus 10 will be described. FIG. 2 is a diagram illustrating an example of a functional configuration of the style sheet generating apparatus according to the present invention. 2 includes an input unit 21, an output unit 22, a storage unit 23, a learning unit 24, a probability table generation unit 25, a style sheet generation unit 26, a transmission / reception unit 27, And a control means 28.

入力手段21は、使用者等からの学習実行指示や、確率テーブルの生成指示、テンプレート選択や変換等の各種処理の入力を受け付ける。また、出力手段22は、入力手段21により入力された指示内容や、指示内容に基づいて生成された確率テーブル、テンプレート等の内容を表示する。   The input unit 21 receives input of various processes such as a learning execution instruction, a probability table generation instruction, template selection, and conversion from a user or the like. Further, the output means 22 displays the contents of the instruction input by the input means 21 and the contents such as a probability table and a template generated based on the instruction contents.

蓄積手段23は、本実施形態において必要となる各種情報を蓄積する。具体的には、蓄積手段23には、例えば学習用台本データ31や正解データ32、テンプレート33、確率テーブル34、未学習台本データ35、演出スタイルシート36等が蓄積される。   The accumulating unit 23 accumulates various information necessary for the present embodiment. Specifically, for example, learning script data 31, correct answer data 32, template 33, probability table 34, unlearned script data 35, presentation style sheet 36, and the like are stored in the storage means 23.

学習手段24は、蓄積手段23に蓄積されている内容記述データとしての学習用台本データ31と、理想的な変換結果のスタイルシートとしての正解データ(TVMLスクリプト)32を入力して学習を行い、テンプレートを生成する。なお、学習手段24におけるテンプレートの生成手法の詳細については後述する。また、学習手段24は、学習したテンプレートを蓄積手段23に蓄積させる。   The learning unit 24 inputs learning script data 31 as content description data stored in the storage unit 23 and correct answer data (TVML script) 32 as an ideal conversion result style sheet to perform learning. Generate a template. Details of the template generation method in the learning unit 24 will be described later. The learning unit 24 stores the learned template in the storage unit 23.

また、確率テーブル生成手段25は、学習手段24にて学習されたテンプレート群に識別情報を付与する。このとき、重複する内容のテンプレートは削除する。また、識別情報が付与されたテンプレートが所定の呼び出し条件に基づいて、何回呼び出されたかをカウントし、カウントした結果に基づいて確率テーブル34を生成する。なお、確率テーブル生成手段25におけるテーブル生成手法の詳細については後述する。また、確率テーブル生成手段25は、識別情報が付与されたテンプレート33と、生成された確率テーブル34を蓄積手段23に蓄積する。   In addition, the probability table generating unit 25 gives identification information to the template group learned by the learning unit 24. At this time, the duplicated template is deleted. In addition, the number of times the template to which the identification information is added is called based on a predetermined calling condition is counted, and the probability table 34 is generated based on the counted result. Details of the table generation method in the probability table generation means 25 will be described later. In addition, the probability table generating unit 25 stores the template 33 to which the identification information is added and the generated probability table 34 in the storage unit 23.

スタイルシート生成手段26は、上述した学習手段24により得られたテンプレート33及び、確率テーブル生成手段25により生成された確率テーブル34に基づいて、入力される未学習の内容記述データとしての未学習台本データ35から設定されるテンプレートの呼び出し条件に対応するテンプレートを選択し、選択したテンプレートを用いて未学習台本データ35をスタイルシートの形式に変換する。なお、スタイルシート生成手段26におけるテンプレートの選択及び変換の詳細については後述する。また、スタイルシート生成手段26は、上述の選択及び変換により生成された演出スタイルシート36を蓄積手段23に蓄積する。   The style sheet generation unit 26 is based on the template 33 obtained by the learning unit 24 and the probability table 34 generated by the probability table generation unit 25, and is an unlearned script as input unlearned content description data. A template corresponding to the template calling condition set from the data 35 is selected, and the unlearned script data 35 is converted into a style sheet format using the selected template. Details of template selection and conversion in the style sheet generation means 26 will be described later. The style sheet generating unit 26 stores the effect style sheet 36 generated by the selection and conversion described above in the storage unit 23.

また、送受信手段27は、テンプレートの生成に必要なデータを、通信ネットワーク等を介して接続される外部装置から取得することができる。また、送受信手段27は、生成した演出スタイルシート36を通信ネットワークにより他の端末等に送信することができる。   Further, the transmission / reception means 27 can acquire data necessary for generating a template from an external device connected via a communication network or the like. Further, the transmission / reception means 27 can transmit the produced effect style sheet 36 to another terminal or the like via a communication network.

制御手段28は、使用者等の入力手段21による指示内容等によりスタイルシート生成装置10の各構成部全体の制御を行う。具体的には、制御手段28は、学習手段24によりテンプレートの学習処理を行わせたり、確率テーブル生成手段25により確率テーブルを生成させたり、スタイルシート生成手段26によりテンプレートの選択、変換を行わせたり、送受信手段27により各種データの送受信を行わせる等の処理を制御する。   The control means 28 controls the entire components of the style sheet generating apparatus 10 according to the contents of instructions from the input means 21 such as a user. Specifically, the control unit 28 causes the learning unit 24 to perform template learning processing, the probability table generation unit 25 to generate a probability table, and the style sheet generation unit 26 to select and convert a template. Or the transmission / reception means 27 controls the transmission / reception of various data.

<学習手段24>
ここで、上述した学習手段24について説明する。学習手段24では、学習用の内容記述データ(学習用台本データ31)と理想的な変換結果(正解データ32)の対を用いて学習させることでテンプレートを生成する。具体的には、内容記述データに対して正解データのどの部分が対応するかを内容記述データのエレメント(行)毎に正解を入力する。また、内容記述データの各エレメントには、タグ名、属性値、テキスト値等がパラメータとして存在するため、その組み合わせに対してどのようなテンプレートが対応するかという情報を学習によって蓄積する。
<Learning means 24>
Here, the learning means 24 described above will be described. The learning unit 24 generates a template by learning using a pair of learning content description data (learning script data 31) and an ideal conversion result (correct answer data 32). Specifically, the correct answer is input for each element (row) of the content description data, which part of the correct data corresponds to the content description data. Since each element of the content description data includes a tag name, an attribute value, a text value, and the like as parameters, information about what template corresponds to the combination is accumulated by learning.

なお、学習手法においては、スタイルシート生成装置10の出力手段22に学習データを蓄積させるための操作画面を表示し、使用者等が入力手段21を用いて所定の操作を行うことにより、容易且つ迅速に適切なテンプレートを生成することができる。   In the learning method, an operation screen for accumulating learning data is displayed on the output unit 22 of the style sheet generating apparatus 10, and a user or the like performs a predetermined operation using the input unit 21. A suitable template can be generated quickly.

ここで、上述した本発明におけるテンプレート学習用の画面例について図を用いて説明する。図3は、学習データを蓄積するための操作画面の一例を示す図である。図3に示す操作画面40は、メニュー表示領域41と、正解データ表示領域42と、内容記述データ表示領域43と、編集領域44とを有するよう構成されている。   Here, an example of a template learning screen according to the present invention described above will be described with reference to the drawings. FIG. 3 is a diagram illustrating an example of an operation screen for accumulating learning data. The operation screen 40 shown in FIG. 3 includes a menu display area 41, a correct data display area 42, a content description data display area 43, and an editing area 44.

メニュー表示領域41は、ファイル形式の学習用台本データ31や正解データ32等を入力させたり、画面表示の終了等の処理を行う。正解データ表示領域42は、予め制作された正解データであるTVMLスクリプトを表示する。つまり、制作者等が予め編集等を行い、完成しているTVMLスクリプトが正解データとして表示される。なお、正解データ表示領域42は、編集領域44において編集中の文章等を太字やカラー等により強調表示(例えば、図3における強調表示領域45)にすることができる。これにより、現在の編集箇所を明確に使用者等に把握させることができる。   The menu display area 41 inputs file format learning script data 31, correct answer data 32, and the like, and performs processing such as termination of screen display. The correct answer data display area 42 displays a TVML script which is correct answer data produced in advance. That is, the producer or the like edits in advance, and the completed TVML script is displayed as correct data. In the correct data display area 42, the sentence being edited in the editing area 44 can be highlighted (for example, the highlighted area 45 in FIG. 3) in bold or color. Thereby, a user etc. can be made to grasp | ascertain the present edit location clearly.

また、内容記述データ表示領域43は、学習用台本データ31に含まれる情報、例えばTVMLスクリプトに登場するCG(Computer Graphic)キャラクタ等による動作(action)や台詞(text)等から、イベントタイプ(character等)の各コマンド(talk等)に対する各パラメータのタグ名(input)と、台詞を言うCGキャラクタ等の属性値(name)と、テキスト値(value)とが、予め設定された記述内容を基準とした抽出条件に基づいて抽出され表示される。   In addition, the content description data display area 43 includes an event type (character) based on information included in the learning script data 31, for example, an action or a text by a CG (Computer Graphic) character appearing in the TVML script. Etc.) for each command (talk, etc.), the tag name (input) of each parameter, the attribute value (name) of a CG character or the like, and the text value (value), based on the preset description contents Are extracted and displayed based on the extraction conditions.

また、内容記述データ表示領域43は、編集領域44において編集中の文章に対応する部分を強調表示(例えば、図3における強調表示領域46)することができる。これにより、現在の編集箇所に対応するテキスト値を明確に使用者等に把握させることができる。   In addition, the content description data display area 43 can highlight a portion corresponding to the sentence being edited in the editing area 44 (for example, the highlighted display area 46 in FIG. 3). This makes it possible for the user or the like to clearly understand the text value corresponding to the current editing location.

また、編集領域44は、正解データ表示領域42に表示される正解のTVMLスクリプトから編集する記述内容(エレメント)を選択し(Pickup)、選択したエレメントが台詞や動作等の変数を有するものであれば、変数値であることを示す値(VALUE)に変換する。また、変換後の文章は、正解データ表示領域42に表示される正解のTVMLスクリプトの対応する位置に置換(リプレス)される。これにより、あらゆる種類の台本データに対応可能な汎用的なテンプレートを生成することができる。   The editing area 44 selects the description contents (elements) to be edited from the correct TVML script displayed in the correct data display area 42 (Pickup), and the selected element has variables such as lines and actions. For example, it is converted into a value (VALUE) indicating a variable value. The converted text is replaced (repressed) with the corresponding position of the correct TVML script displayed in the correct data display area 42. This makes it possible to generate a general-purpose template that can handle any type of script data.

なお、編集領域44は、上述した各処理を迅速に行うため、各種ボタン群(記述内容を選択(Pick up)ボタン47、VALUE変換(This is Value)ボタン48、置換(Register)ボタン49等)を設けておいてもよい。   The edit area 44 has various button groups (such as a description description selection (Pick up) button 47, a VALUE conversion (This is Value) button 48, a replacement (Register) button 49, etc.) in order to quickly perform the above-described processes. May be provided.

このように、使用者等は上述した画面を用いることで、容易且つ迅速に適切なテンプレートを生成することができる。なお、図3に示す各領域の画面レイアウトについては、本発明においてはこれに限定されるものではなく、例えばそれぞれの領域を複数の画面を用いて表示させてもよい。   As described above, the user or the like can easily and quickly generate an appropriate template by using the screen described above. Note that the screen layout of each area shown in FIG. 3 is not limited to this in the present invention. For example, each area may be displayed using a plurality of screens.

また、上述の学習手段24におけるテンプレートの学習は、予めコマンドに対する編集内容を設定しておき、その変換規則に基づいて変換させてもよい。   Moreover, the learning of the template in the learning means 24 described above may be performed based on the conversion rule by setting the editing contents for the command in advance.

<確率テーブル生成手段25>
次に、確率テーブル生成手段25における確率テーブル生成手法について説明する。確率テーブル生成手段25は、学習手段24により学習され、蓄積手段23に蓄積されたテンプレート群に識別情報としてのIDを付与する。また、確率テーブル生成手段25は、IDを付与する際に重複する内容のテンプレートを削除する。次に、確率テーブル生成手段25は、正解データによる呼び出し条件毎にどのテンプレートが呼ばれたか、その回数をテンプレートID毎にカウントする。
<Probability table generation means 25>
Next, a probability table generation method in the probability table generation means 25 will be described. The probability table generation unit 25 gives an ID as identification information to the template group learned by the learning unit 24 and accumulated in the accumulation unit 23. In addition, the probability table generation unit 25 deletes a template having overlapping contents when assigning an ID. Next, the probability table generating means 25 counts which template is called for each calling condition based on correct answer data, and the number of times for each template ID.

なお、テンプレートを呼び出す際の条件(パラメータ)としては、内容記述データの各エレメントのタグ名、属性値、テキスト値の他、その時点でのテンプレート呼び出しの(1〜N回)前にどのテンプレートが呼ばれたか(そのテンプレートID)等の表層的なパラメータや、その時点でどのカメラが選択されているか(撮影に用いられるカメラ名称)、直前に喋ったキャラクタの名前(キャラクタ名称)等のような番組の内容的な詳細情報もパラメータとすることができる。   In addition, as a condition (parameter) for calling a template, in addition to the tag name, attribute value, and text value of each element of the content description data, which template is before the template call at that time (1 to N times) Surface parameters such as whether it was called (its template ID), which camera was selected at that time (camera name used for shooting), the name of the character (character name) hit immediately before, etc. Detailed information about the contents of the program can also be used as a parameter.

したがって、確率テーブル生成手段25は、上述した処理により、IDの振られたテンプレート群と、様々な条件においてどのテンプレートが何回呼ばれたかを表す確率テーブルを生成することができる。   Therefore, the probability table generation means 25 can generate a template group with IDs assigned and a probability table representing how many times the template has been called under various conditions by the above-described processing.

<スタイルシート生成手段26>
次に、スタイルシート生成手段26におけるテンプレートの選択・変換の内容について説明する。スタイルシート生成手段26は、上述した学習手段24により得られたテンプレート33、及び確率テーブル生成手段25により得られた確率テーブル34を用いて、未学習の内容記述データである台本データ35を入力として、スタイルシートに変換する。
<Style sheet generation means 26>
Next, the contents of template selection / conversion in the style sheet generating means 26 will be described. The style sheet generation unit 26 uses the template 33 obtained by the learning unit 24 and the probability table 34 obtained by the probability table generation unit 25 as input to the script data 35 that is unlearned content description data. , Convert to stylesheet.

具体的には、スタイルシート生成手段26は、入力された内容記述データの条件を確率テーブル34と照合し、パラメータが全て一致する条件があれば、その条件の下で、どのテンプレートがどれぐらいの確率で選択されているかを得ることができる。そのため、その確率に基づいて乱数を発生させ、その乱数によりテンプレートを選択し、選択したテンプレートに基づいてスタイルシートの生成処理を行う。   Specifically, the style sheet generation means 26 compares the condition of the input content description data with the probability table 34, and if there is a condition in which all the parameters match, which template and how many under that condition. It can be obtained whether it is selected with probability. Therefore, a random number is generated based on the probability, a template is selected based on the random number, and style sheet generation processing is performed based on the selected template.

なお、スタイルシート生成手段26は、一番高い確率のテンプレートを選択するのではなく、乱数によってテンプレートを選択する。これは、テレビ番組等の演出では同じ条件のとき、同じ表現をするよりは、表現にばらつきを持たせ、しかもその頻度が確率によって制御されるほうがより自然な演出となるからである。   Note that the style sheet generation means 26 does not select the template with the highest probability, but selects a template with a random number. This is because in the production of a television program or the like, when the same conditions are used, it is more natural to produce a variation in the representation and to control the frequency according to the probability than to perform the same representation.

なお、確率の高いテンプレートに他のテンプレートと比較して選択され易くするようにカウントされた値に応じて優先順位を設定してもよい。   Note that the priority order may be set according to the counted value so that the template having a high probability is easily selected as compared with the other templates.

ここで、上述した手法を用いた場合、パラメータが全て一致する条件が学習データの中にあればよいが、全てのパラメータが一致する条件が学習したデータの中には存在しない場合もある。特に、学習データが少なかったり、パラメータの種類が多かったりすると上述のようなことが頻繁に起こりうる。   Here, when the above-described method is used, it is only necessary that the conditions in which all the parameters match are in the learning data, but there are cases in which the conditions in which all the parameters match do not exist in the learned data. In particular, when there is little learning data or there are many kinds of parameters, the above-mentioned thing can occur frequently.

そこで、そのような場合に、条件に一致するテンプレートがなくても、その条件に似た、次善のテンプレートを選択させるために以下のような手段を用いる。   Therefore, in such a case, even if there is no template that matches the condition, the following means are used to select the next best template that is similar to the condition.

例えば、条件にt個のパラメータを取るとき、パラメータをそれぞれPt,…,P1,P0とする。このとき、添え字の数字が大きいほど重要度が高いように並べる。(重要度:Pt>…>P1>P0)。次に、t桁の2進数Sを用意し、その最大値を入力しておく(全ての桁を1にする)。ここで、条件探索の際、最初は従来通り全てのパラメータが一致するという条件で検索する。検索の結果、対応するテンプレートがなかった場合は、上述のt桁の2進数Sを−1減少(デクリメント)し、Sのn桁毎の数値により呼び出し条件となるパラメータを設定する。   For example, when t parameters are taken as conditions, the parameters are Pt,..., P1, P0, respectively. At this time, the larger the subscript number, the higher the importance. (Importance: Pt>...> P1> P0). Next, a t-digit binary number S is prepared and the maximum value is input (all digits are set to 1). Here, in the condition search, first, the search is performed under the condition that all parameters match as usual. As a result of the search, if there is no corresponding template, the t-digit binary number S is decremented by -1 (decrement), and a parameter as a calling condition is set by a numerical value for every n digits of S.

つまり、また、2進数Sのn(1<n<t)桁目が1のときは、その桁に対応するパラメータPnを条件に含めて検索し、n桁目が0のときはPnを条件に含めずに検索する。以上のような処理をパラメータとテンプレートの条件とが一致するまで繰り返すことにより、最初の呼び出し条件に完全に一致する条件がなくても似た条件でテンプレートを選択することができる。   That is, when the nth (1 <n <t) digit of the binary number S is 1, the parameter Pn corresponding to that digit is included in the search, and when the nth digit is 0, Pn is the condition. Search without including. By repeating the above processing until the parameters and the conditions of the template match, it is possible to select a template under similar conditions even if there is no condition that completely matches the first calling condition.

<実施例>
次に、TVMLを用いた本発明における処理内容について、フローチャート等を用いて説明する。
<Example>
Next, processing contents in the present invention using TVML will be described using a flowchart and the like.

<学習処理手順及び確率テーブル生成手順>
図4は、本発明における学習処理手順及び確率テーブル生成手順の一例を示すフローチャートである。
<Learning processing procedure and probability table generation procedure>
FIG. 4 is a flowchart showing an example of a learning process procedure and a probability table generation procedure in the present invention.

まず、学習用台本データ、及び正解データとして正解TVMLスクリプトを入力する(S01)。ここで、図5は、学習用台本データの一例を示す図である。また、図6は、正解TVMLスクリプトの一例を示す図である。ここで、図5及び図6の左端には説明の便宜上行番号を付与している。   First, a correct TVML script is input as learning script data and correct data (S01). Here, FIG. 5 is a diagram illustrating an example of the script data for learning. FIG. 6 is a diagram illustrating an example of a correct TVML script. Here, row numbers are given to the left end of FIGS. 5 and 6 for convenience of explanation.

次に、入力した学習用台本データに対応するテンプレートを生成する。具体的には、図5に示す学習用台本データの各エレメント(行)が図6に示す正解TVMLスクリプトのどの部分に該当するかを入力する。ここで、図7は、学習されたテンプレートの一例を示す図である。なお、図7にも便宜上左端に行番号を付与している。   Next, a template corresponding to the input script data for learning is generated. Specifically, it is input which part of the correct TVML script shown in FIG. 6 corresponds to each element (row) of the script data for learning shown in FIG. Here, FIG. 7 is a diagram illustrating an example of the learned template. In FIG. 7, a row number is given to the left end for convenience.

ここで、例えば、図5の(09)行目の「<action name=”A”>カメラ目線</action>」というエレメントは、図6における(11)行目の「character:look(name=A,what=camera,wait=no)」に相当する。   Here, for example, the element “<action name =“ A ”> camera line </ action>” in the (09) line in FIG. 5 is “character: look (name = name = number)” in the (11) line in FIG. A, what = camera, wait = no) ”.

そのため、その行を学習用のデータとして入力する場合、図7における(20)〜(22)行目に示すように「<template input=”action” name=”A” value=”カメラ目線”> character:look(name=A,what=camera,wait=no) </template>」となる。   Therefore, when the line is input as learning data, as shown in lines (20) to (22) in FIG. 7, “<template input =“ action ”name =“ A ”value =“ camera line of sight ””> character: look (name = A, what = camera, wait = no) </ template> ”.

また、図5の(11)行目の「<text name=”A”>こんにちは、アイです!</text>」というエレメントは、図6における(13)行目の「character:talk(name=A,text=”こんにちは、アイです!”,pitch=”1”)」に相当する。   In addition, FIG. 5 of the (11) th row "<text name =" A "> Hello, love </ text>!" Is the element that, in FIG. 6 (13) th row of the "character: talk (name = A, text = "Hello, love!", corresponds to the pitch = "1") ".

そのため、その行を学習用のデータとして入力する場合、テキスト値である台詞部分「こんにちは、アイです!」は、テンプレートの置換が可能であるため、そのことを学習データ上で明示する。   Therefore, if you enter the line as data for learning, speech part is a text value "Hello, love!" Is, because it is possible substitution of templates, it demonstrates on the learning data that.

具体的には、図7の(26)〜(28)行目に示すように、「<template input=”text” name=”A”> character:talk(name=A,text=”<VALUE/>”,pitch=”1”) </template>」となる。ここで、“<VALUE/>”は、上述したように台本データのエレメントのテキスト値で置換可能な部分であることを示している。   Specifically, as shown in the (26) to (28) lines of FIG. 7, “<template input =“ text ”name =“ A ”> character: talk (name = A, text =” <VALUE / > ", Pitch =" 1 ") </ template>". Here, “<VALUE />” indicates a portion that can be replaced with the text value of the element of the script data as described above.

以上のような処理を繰り返し、図7に示すような学習データを蓄積し、蓄積が終わるとテンプレート群に識別情報としてのIDが付与される(S03)。このとき、重複するテンプレートは削除される。これにより、IDが付与されたテンプレートが生成される。   The above processing is repeated to accumulate learning data as shown in FIG. 7, and when the accumulation is completed, an ID as identification information is given to the template group (S03). At this time, the duplicate template is deleted. Thereby, a template with an ID is generated.

ここで、図8は、IDが付与されたテンプレートの一例を示す図である。なお、図8にも便宜上左端に行番号を付与している。図8に示すように、(02)、(06)、(10)等には「<TEMPLETE id=“ ”>」としてテンプレート毎にIDを有するタグが付与されている。なお、テンプレートに付与されるタグの記述内容についてはこれに限定されるものではない。   Here, FIG. 8 is a diagram illustrating an example of a template to which an ID is assigned. In FIG. 8, a row number is given to the left end for convenience. As shown in FIG. 8, (02), (06), (10), etc. are assigned tags having IDs for each template as “<TEMPLETE id =“ ”>”. Note that the description content of the tag attached to the template is not limited to this.

次に、IDが付与されたテンプレートから予め設定された各条件に対応する確率テーブルを生成する(S05)。具体的には、例えば、呼び出し条件(パラメータ)の組み合わせ等を条件にして学習する際、何番のテンプレートが何回呼ばれたかをカウントし、カウント結果に基づいて確率テーブルを生成することができる。ここで、図9は、確率テーブルの一例を示す図である。なお、図9にも便宜上左端に行番号を付与している。   Next, a probability table corresponding to each preset condition is generated from the template assigned the ID (S05). Specifically, for example, when learning is performed under a combination of calling conditions (parameters), it is possible to count how many templates are called and generate a probability table based on the count result. . Here, FIG. 9 is a diagram illustrating an example of the probability table. In FIG. 9, a line number is given to the left end for convenience.

図9に示す確率テーブルでは、パラメータとして台本データのタグ名(input)、属性値(name)、テキスト値(value)、一つ前に何番のテンプレートが呼ばれたか(before)という4つのパラメータを使用している。   In the probability table shown in FIG. 9, there are four parameters: a script data tag name (input), an attribute value (name), a text value (value), and the last template called (before). Is used.

ここで、図9に示す(41)〜(44)行目におけるテンプレートには、パターンテンプレート(patern template)が2種類存在している。   Here, there are two types of pattern templates in the templates in the (41) to (44) lines shown in FIG.

これは、「<template_finder input=”action” value=”絵を隠す” before=”7”>」というテンプレートに対して2種類のパターンテンプレート(<patern template_ref=”18” frequency=”2”/>,<patern template_ref=”12” frequency=”1”/>)を有していることを示している。つまり、この条件では、ID=18のテンプレートが2回((42)行目)、ID=12のテンプレートが1回((43)行目)の確率で選択される。   This is because there are two types of pattern templates (<pattern template_ref = “18” frequency = “2” />) for the template “<template_finder input =“ action ”value =“ hide picture ”before =“ 7 ”>”. , <Pattern template_ref = “12” frequency = “1” />). That is, under this condition, the template with ID = 18 is selected with a probability of twice ((42) line) and the template with ID = 12 is selected with a probability of once ((43) line).

このように、1つのテンプレートについて1つだけでなく複数のパターンのテンプレートを生成しておくことにより、表現にばらつきを持たせることができる。また、頻度が確率によって制御されることにより演出を自然に行うことができる。なお、上述した手順により生成された確率テーブルは、テンプレートの選択・変換手順で利用するため蓄積手段23に蓄積される。   Thus, by generating not only one template but also a plurality of pattern templates for one template, it is possible to vary the expression. Further, the production can be naturally performed by controlling the frequency according to the probability. The probability table generated by the above-described procedure is stored in the storage means 23 for use in the template selection / conversion procedure.

<テンプレート生成処理手順>
次に、上述した処理手順により生成されたテンプレート、及び確率テーブルを用いて未学習の台本データからテンプレート選択し、変換を行うテンプレート生成処理手順について、フローチャートを用いて説明する。図10は、本発明におけるテンプレート生成処理手順の一例を示すフローチャートである。
<Template generation processing procedure>
Next, a template generation processing procedure for selecting a template from unlearned script data using the template generated by the above-described processing procedure and the probability table and performing conversion will be described using a flowchart. FIG. 10 is a flowchart showing an example of a template generation processing procedure in the present invention.

図10において、まず上述した処理手順により生成されたテンプレート群、及び確率テーブルを入力する(S11)。次に、未学習の内容記述データとしての台本データを入力する(S12)。なお、未学習の台本データとは、上述した学習処理手順における学習では使用されていない台本データ等を意味する。   In FIG. 10, first, a template group generated by the above-described processing procedure and a probability table are input (S11). Next, script data as unlearned content description data is input (S12). Note that unlearned script data means script data that is not used in learning in the above-described learning processing procedure.

ここで、t桁分のパラメータP0〜Ptと、2進数Sを用意する(S13)。例えば、4つのパラメータ(P3=input,P2=name,P1=value,P0=before)と有する場合、2進数Sの桁数も4桁になる。次に、Sに最大値をセット、すなわち全ての桁に1をセットする(S14)。なお、上述の例の場合、Sは4桁であるため「1111」となる。   Here, parameters P0 to Pt for t digits and a binary number S are prepared (S13). For example, when there are four parameters (P3 = input, P2 = name, P1 = value, P0 = before), the number of digits of the binary number S is also four digits. Next, the maximum value is set in S, that is, 1 is set in all the digits (S14). In the case of the above-described example, S is 4 digits and thus becomes “1111”.

次に、S11にて入力した台本データの各エレメント(行)を読み込み、パラメータPに代入して(S15)、予め設定された条件(パラメータP)に基づいて、確率テーブルを検索してテンプレートを呼び出す(S16)。   Next, each element (row) of the script data input in S11 is read and substituted into the parameter P (S15), and the probability table is searched based on the preset condition (parameter P) to obtain the template. Call (S16).

ここで、一致するテンプレートがあったか否かを判断し(S17)、一致するテンプレートがない場合(S17において、NO)、検索条件を容易且つ適切に変更するため現在のSの値を−1する(S18)。つまり、現在のSが「1111」である場合、S=1111−1=1110となる。   Here, it is determined whether or not there is a matching template (S17). If there is no matching template (NO in S17), the current value of S is set to -1 in order to easily and appropriately change the search condition ( S18). That is, when the current S is “1111”, S = 1111−1 = 1110.

次に、Sの各桁の値に基づいて検索条件の再設定を行う(S19)。具体的には、
Sのn桁目が0か否かを判断し、n桁目が0である場合は、Pnを検索条件から外す。つまり、Sが1110である場合には、上述した検索条件のうち、1桁目のP0=beforeが検索条件から外される。また、検索条件の再設定後、S16の処理に戻り、確率テーブルの再検索を行う。
Next, the search condition is reset based on the value of each digit of S (S19). In particular,
It is determined whether or not the nth digit of S is 0. If the nth digit is 0, Pn is removed from the search condition. That is, when S is 1110, the first digit P0 = before is excluded from the search conditions. In addition, after resetting the search conditions, the process returns to S16 to re-search the probability table.

また、S17の処理において、一致するテンプレートが存在する場合(S17において、YES)、ヒットした確率テーブルの確率に基づいて乱数を発生させ、その乱数によりテンプレートを選択し(S20)、選択したテンプレートに基づいて、S12で入力した台本データから演出スタイルシートに変換して出力を行う(S21)。   In the process of S17, if there is a matching template (YES in S17), a random number is generated based on the probability of the hit probability table, and a template is selected based on the random number (S20). Based on the script data input in S12, it is converted into an effect style sheet and output (S21).

例えば、P3(input)=action,P2(name)=null(空データ),P1(value)=”絵を隠す”,P0(before)=7であったとする。この場合、上述した図9に示す確率テーブルの(41)行目と条件が一致する。   For example, suppose that P3 (input) = action, P2 (name) = null (empty data), P1 (value) = “hide picture”, and P0 (before) = 7. In this case, the condition matches the (41) th row of the probability table shown in FIG.

この条件では、ID=18のテンプレートが2回((42)行目)、ID=12のテンプレートが1回((43)行目)の確率で選択されている。したがって、ID=18のテンプレートが選択される確率を2/3とし、ID=12のテンプレートが選択される確率を1/3として乱数を発生させ、その乱数によりどちらかのテンプレートを選択する。   Under this condition, the template with ID = 18 is selected with a probability of twice ((42) line) and the template with ID = 12 is selected with a probability of once ((43) line). Accordingly, the probability that the template with ID = 18 is selected is 2/3, the probability that the template with ID = 12 is selected is 1/3, a random number is generated, and one of the templates is selected based on the random number.

ここで、ID=12が選択された場合、上述した図8のIDが付与されたテンプレートのうち、(49)〜(52)が選択され、結果として、「video:switcher(source=studio) prop:visible(name=SUBIMAGE,switch=off)」のような結果が得られる。   Here, when ID = 12 is selected, (49) to (52) are selected from the templates to which the ID of FIG. 8 described above is assigned, and as a result, “video: switcher (source = studio) prop : Visible (name = SUBIMAGE, switch = off) ".

また、別の例として、例えば検索条件をP3(input)=subimage,P2(name)=null(空データ),P1(value)=”photo.jpg”,P0(before)=11とし、P3〜P0の全てのパラメータを満たす条件が確率テーブルになかったとする。その場合、上述したようにSを減少(デクリメント)して、検索条件を再設定して(例えば、S=1110の場合には1桁目が0なのでP0を条件から外す)、再度検索を行う。   As another example, for example, the search conditions are P3 (input) = subimage, P2 (name) = null (empty data), P1 (value) = “photo.jpg”, P0 (before) = 11, and P3- Assume that there is no condition in the probability table that satisfies all the parameters of P0. In that case, as described above, S is decremented and the search condition is reset (for example, if S = 1110, the first digit is 0, so P0 is removed from the condition), and the search is performed again. .

この条件では、S=1100のとき上述した図9に示す確率テーブルの(29)行目と条件が一致する。そのため、上述した図8に示すテンプレートのうち(32)〜(39)行目が選択され、また<VALUE/>部分が置換されて、結果として、「video:switcher(source=studio) prop:assign(name=SUBIMAGE) prop:openimageplate(name=SUBIMAGE,filename=”photo.jpg”,platesizeh=0.9,platesizev=0.6) prop:visible(name=SUBIMAGE,switch=on) prop:position(name=SUBIMAGE,x=0.01,y=1.41,z=−2.40,pitch=0.00,yaw=0.00,roll=0.00,scale=1.45) camera:switch(name=CamAB)のような結果を得ることができる。   In this condition, when S = 1100, the condition matches the (29) th row of the probability table shown in FIG. Therefore, the (32) to (39) lines in the template shown in FIG. 8 are selected, and the <VALUE /> part is replaced. As a result, “video: switcher (source = studio) prop: assign (Name = SUBIMAGE) prop: openimageplate (name = SUBIMAGE, filename = “photo.jpg”, platesize = 0.9, platesizev = 0.6) propire: visible (name = SUBimage = name) = SUBIMAGE, x = 0.01, y = 1.41, z = -2.40, pitch = 0.00, yaw = 0.00, roll = 0.00, scale = 1 45) camera: it is possible to obtain the results shown in switch (name = CamAB).

次に、上述の処理を行ったエレメント(行)が台本データの最終行であるか否かを判断し(S22)、最終行でない場合(S22において、NO)、S14に戻り、Sを最大値に設定した後、S15にて台本データの次のエレメントを読み込み以降の処理を継続して行う。   Next, it is determined whether or not the element (row) that has been subjected to the above processing is the last row of the script data (S22). If it is not the last row (NO in S22), the process returns to S14, and S is the maximum value. Then, the process after reading the next element of the script data is continued in S15.

また、S22の処理において、最終行まで終了した場合(S22において、NO)、テンプレート生成処理を終了する。   In the process of S22, when the process reaches the last line (NO in S22), the template generation process ends.

以上のような処理を台本データの各エレメント毎に行うことで、容易に適切なスタイルシートを生成することができる。また、検索条件の設定に2進数を用いることで、検索条件が前の検索条件と重複することなく、適切に条件の設定を行うことができる。更に、上述したような処理を繰り返すことで、完全に一致する条件がなくても似た条件でテンプレートを選択することができる。   By performing the above processing for each element of the script data, an appropriate style sheet can be easily generated. Further, by using a binary number for setting the search condition, the search condition can be appropriately set without overlapping the previous search condition. Furthermore, by repeating the processing as described above, a template can be selected under similar conditions even when there is no completely matching condition.

なお、上述した図10に示す例では、Sを最大値とした上で値を減少させていったが、本発明においてはこの限りではなく、例えば最小値をSにセットし、検索条件の設定時には、Sの値を1増加(インクリメント)させてもよい。この場合、桁数が0の場合は検索条件に入れ、桁数が1の場合は検索条件から外すことになる。   In the example shown in FIG. 10 described above, the value is decreased after setting S as the maximum value. However, the present invention is not limited to this. For example, the minimum value is set to S and the search condition is set. Sometimes, the value of S may be increased by 1 (incremented). In this case, when the number of digits is 0, the search condition is entered, and when the number of digits is 1, the search condition is removed.

<プログラム>
ここで、本発明は、上述したスタイルシート生成装置10の各構成における処理をコンピュータに実行させることができる実行プログラム(スタイルシート生成プログラム)を生成し、例えば、汎用のパーソナルコンピュータ、サーバ等にプログラムをインストールすることにより、本発明におけるスタイルシート生成処理を実現することができる。したがって、容易に適切なスタイルシートを生成することができる。また、実行プログラムをコンピュータにインストールすることにより、容易にスタイルシートを生成することができる。
<Program>
Here, the present invention generates an execution program (style sheet generation program) that can cause a computer to execute the processing in each configuration of the style sheet generation apparatus 10 described above. For example, the program is stored in a general-purpose personal computer or server. By installing, the style sheet generation processing in the present invention can be realized. Therefore, an appropriate style sheet can be easily generated. Moreover, a style sheet can be easily generated by installing an execution program in a computer.

上述したように本発明によれば、容易に適切なスタイルシートを生成することができる。また、確率テーブルを用いることで、演出表現にばらつきを持たせることができる。また、テンプレートの出現頻度が確率によって制御されることにより演出を自然に行うことができる。   As described above, according to the present invention, an appropriate style sheet can be easily generated. In addition, by using the probability table, it is possible to give variation to the effect expression. Further, the appearance can be naturally performed by controlling the appearance frequency of the template by the probability.

具体的には、スタイルシートの記述にアルゴリズムを記述させるのではなく、内容部分(台本データ)と理想的な変換結果(正解データ)とを照らし合わせ、学習させることによってスタイルシートを構築する。また、学習によってテンプレートの集合と、どのような台本データがきた場合に、どのテンプレートが選択されたかを示す確率テーブルを予め生成しておく。また、変換の際には、入力された台本データから確率テーブルを参照して、どのテンプレートを選択するかを確率的に決定する。これにより、簡単で効率的に複雑な処理をするスタイルシートを制作することが可能となる。   Specifically, the style sheet is constructed by comparing and learning the content part (script data) and the ideal conversion result (correct answer data), instead of describing the algorithm in the description of the style sheet. Further, a probability table indicating which template is selected when learning is obtained by collecting a set of templates and what kind of script data is generated in advance. In the conversion, the template to be selected is stochastically determined with reference to the probability table from the input script data. This makes it possible to produce a style sheet that performs simple and efficient complex processing.

したがって、演出スタイルシートの制作について十分な学習データがあれば、複雑なアルゴリズムを記述することなく、自然な演出を簡単に制作することが可能となる。なお、本発明は、テレビ番組をスクリプト言語で制作・記述し、コンピュータグラフィックス(CG)、音声合成等を用いて再生する分野において、広く適用することができる。また、本発明は、テレビ番組の流れを記述したスクリプトを演出部分と内容部分に分けるために、演出部分だけを分離したスタイルシートの制作編集に適用することができる。   Therefore, if there is sufficient learning data for production of the production style sheet, it is possible to produce a natural production easily without describing a complicated algorithm. Note that the present invention can be widely applied in the field where television programs are produced and described in a script language and reproduced using computer graphics (CG), speech synthesis, or the like. Further, the present invention can be applied to the production editing of a style sheet in which only the effect portion is separated in order to divide the script describing the flow of the television program into the effect portion and the content portion.

以上本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形、変更が可能である。   Although the preferred embodiment of the present invention has been described in detail above, the present invention is not limited to the specific embodiment, and various modifications, within the scope of the gist of the present invention described in the claims, It can be changed.

本発明におけるスタイルシート生成装置の装置構成の一例を示す図である。It is a figure which shows an example of the apparatus structure of the style sheet production | generation apparatus in this invention. 本発明におけるスタイルシート生成装置の機能構成の一例を示す図である。It is a figure which shows an example of a function structure of the style sheet production | generation apparatus in this invention. 学習データを蓄積するための操作画面の一例を示す図である。It is a figure which shows an example of the operation screen for accumulating learning data. 本発明における学習処理手順及び確率テーブル生成手順の一例を示すフローチャートである。It is a flowchart which shows an example of the learning process procedure in this invention, and a probability table production | generation procedure. 学習用台本データの一例を示す図である。It is a figure which shows an example of the script data for learning. 正解TVMLスクリプトの一例を示す図である。It is a figure which shows an example of a correct TVML script. 学習されたテンプレートの一例を示す図である。It is a figure which shows an example of the learned template. IDが付与されたテンプレートの一例を示す図である。It is a figure which shows an example of the template to which ID was provided. 確率テーブルの一例を示す図である。It is a figure which shows an example of a probability table. 本発明におけるテンプレート生成処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the template production | generation process procedure in this invention.

符号の説明Explanation of symbols

10 スタイルシート生成装置
11 入力装置
12 出力装置
13 ドライブ装置
14 補助記憶装置
15 メモリ装置
16 CPU
17 ネットワーク接続装置
18 記録媒体
21 入力手段
22 出力手段
23 蓄積手段
24 学習手段
25 確率テーブル生成手段
26 スタイルシート生成手段
27 送受信手段
28 制御手段
31 学習用台本データ
32 正解データ
33 テンプレート
34 確率テーブル
35 未学習台本データ
36 演出スタイルシート
40 操作画面
41 メニュー表示領域
42 正解データ表示領域
43 内容記述データ表示領域
44 編集領域
45,46 強調表示領域
47 記述内容選択ボタン
48 VALUE変換ボタン
49 置換ボタン
DESCRIPTION OF SYMBOLS 10 Style sheet production | generation apparatus 11 Input device 12 Output device 13 Drive apparatus 14 Auxiliary storage device 15 Memory device 16 CPU
DESCRIPTION OF SYMBOLS 17 Network connection apparatus 18 Recording medium 21 Input means 22 Output means 23 Storage means 24 Learning means 25 Probability table generation means 26 Style sheet generation means 27 Transmission / reception means 28 Control means 31 Script data for learning 32 Correct data 33 Template 34 Probability table 35 Not yet Learning script data 36 Production style sheet 40 Operation screen 41 Menu display area 42 Correct data display area 43 Content description data display area 44 Edit area 45, 46 Highlight display area 47 Description content selection button 48 VALUE conversion button 49 Replace button

Claims (7)

コンテンツの演出が記述されたスタイルシートを生成するスタイルシート生成装置において、
予め蓄積された学習用のコンテンツの内容が記述された内容記述データと、前記内容記述データに対応して完成された正解データを含むスタイルシートとを用いて、前記内容記述データの各エレメントに含まれるパラメータに対応する前記正解データの部分を前記スタイルシートから抽出し、抽出された正解データを用いて少なくとも1つのテンプレートを生成する学習手段と、
前記学習手段により得られるテンプレート毎に識別情報を付与し、更に前記識別情報毎に前記パラメータに対応して設定された呼び出し条件による呼び出し回数をカウントし、カウントした結果に基づいて、前記テンプレート毎の呼び出し確率を含む確率テーブルを生成する確率テーブル生成手段と、
前記テンプレートと、前記確率テーブルとを蓄積する蓄積手段と、
入力される未学習のコンテンツの内容が記述された内容記述データの各エレメントに含まれる少なくとも1つのパラメータを有するテンプレートの呼び出し条件を用いて、前記蓄積手段により得られる前記確率テーブルから、前記呼び出し条件に対応する1又は複数のテンプレートの識別情報を抽出し、抽出した識別情報に対応するテンプレート毎の呼び出し確率を用いて、前記蓄積手段に蓄積されたテンプレートから所定のテンプレートを選択し、選択したテンプレートを用いて前記内容記述データから前記スタイルシートを生成するスタイルシート生成手段とを有することを特徴とするスタイルシート生成装置。
In a style sheet generating device that generates a style sheet in which content effects are described,
Included in each element of the content description data using content description data describing the content of the learning content stored in advance and a style sheet including correct answer data completed corresponding to the content description data Learning means for extracting a part of the correct answer data corresponding to a parameter to be generated from the style sheet and generating at least one template using the extracted correct answer data;
Identification information is given to each template obtained by the learning means, and further, the number of calls by the calling condition set corresponding to the parameter for each identification information is counted, and based on the counted result, Probability table generation means for generating a probability table including a call probability;
It means for storing said templates, and the probability table,
The calling condition from the probability table obtained by the storage means using the calling condition of the template having at least one parameter included in each element of the content description data describing the contents of the input unlearned content The identification information of one or a plurality of templates corresponding to is extracted, a predetermined template is selected from the templates stored in the storage means using the call probability for each template corresponding to the extracted identification information, and the selected template And a style sheet generating unit that generates the style sheet from the content description data using the content description data.
前記確率テーブル生成手段は、
前記テンプレートの呼び出し条件として、前記内容記述データに含まれる各エレメント毎のタグ名、属性値、テキスト値、表層的な呼び出し条件情報、及びコンテンツの詳細情報の各パラメータのうち、少なくとも1つを有することを特徴とする請求項に記載のスタイルシート生成装置。
The probability table generating means includes:
As a calling condition for the template, at least one of a tag name, an attribute value, a text value, superficial calling condition information for each element included in the content description data, and content detailed information parameters is included. The style sheet generating apparatus according to claim 1 .
前記確率テーブル生成手段は、
前記呼び出し条件に対応させて少なくとも1つのテンプレートを生成することを特徴とする請求項1又は2に記載のスタイルシート生成装置。
The probability table generating means includes:
Style sheet generating device according to claim 1 or 2, wherein the generating at least one template in association with said call condition.
前記学習手段は、
前記テンプレートの生成時に前記内容記述データのエレメントに含まれるテキスト部分を所定の変数で置換することを特徴とする請求項1乃至3の何れか1項に記載のスタイルシート生成装置。
The learning means includes
4. The style sheet generating apparatus according to claim 1 , wherein a text portion included in the content description data element is replaced with a predetermined variable when the template is generated.
前記スタイルシート生成手段は、
前記抽出した識別情報に対応するテンプレート毎の呼び出し確率を用いて、前記蓄積手段に蓄積されたテンプレートから所定のテンプレートを選択する際、前記呼び出し確率に基づいて乱数を発生させ、前記乱数により前記蓄積手段に蓄積されたテンプレートから所定のテンプレートを選択することを特徴とする請求項1乃至の何れか1項に記載のスタイルシート生成装置。
The style sheet generating means includes
Using a call probability for each template corresponding to the extracted identification information, when a predetermined template is selected from the templates stored in the storage means, a random number is generated based on the call probability, and the storage is performed using the random number. style sheet generating device according to any one of claims 1 to 4, characterized in that selecting a predetermined template from the stored template means.
使用者からの指示を入力する入力手段と、
前記学習用のコンテンツの内容記述データを表示する領域、前記正解データを含むスタイルシートを表示する領域、及び前記入力手段により入力された指示内容に基づいてテンプレートを生成するための編集領域のうち、少なくとも1つの領域を有する使用者操作画面を表示する表示手段とを有することを特徴とする請求項1乃至の何れか1項に記載のスタイルシート生成装置。
An input means for inputting an instruction from the user;
Of the area for displaying the content description data of the learning content, the area for displaying the style sheet including the correct answer data , and the editing area for generating a template based on the instruction content input by the input unit, style sheet generating device according to any one of claims 1 to 5, characterized in that it has a display means for displaying a user operation screen having at least one region.
コンピュータを、請求項1乃至6の何れか1項に記載のスタイルシート生成装置が有する各手段として機能させるためのスタイルシート生成プログラム。 A style sheet generation program for causing a computer to function as each unit included in the style sheet generation apparatus according to claim 1 .
JP2006057502A 2006-03-03 2006-03-03 Style sheet generating apparatus and style sheet generating program Expired - Fee Related JP4885569B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006057502A JP4885569B2 (en) 2006-03-03 2006-03-03 Style sheet generating apparatus and style sheet generating program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006057502A JP4885569B2 (en) 2006-03-03 2006-03-03 Style sheet generating apparatus and style sheet generating program

Publications (2)

Publication Number Publication Date
JP2007233912A JP2007233912A (en) 2007-09-13
JP4885569B2 true JP4885569B2 (en) 2012-02-29

Family

ID=38554409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006057502A Expired - Fee Related JP4885569B2 (en) 2006-03-03 2006-03-03 Style sheet generating apparatus and style sheet generating program

Country Status (1)

Country Link
JP (1) JP4885569B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5226425B2 (en) * 2008-08-13 2013-07-03 インターナショナル・ビジネス・マシーンズ・コーポレーション Information processing apparatus, information processing method, and program
JP6415929B2 (en) 2014-10-30 2018-10-31 株式会社東芝 Speech synthesis apparatus, speech synthesis method and program
JP6642173B2 (en) * 2016-03-24 2020-02-05 株式会社湯山製作所 Electronic medical record device, electronic medical record system, and update program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4017290B2 (en) * 1999-07-07 2007-12-05 日本放送協会 Automatic program production device and recording medium recorded with automatic program production program

Also Published As

Publication number Publication date
JP2007233912A (en) 2007-09-13

Similar Documents

Publication Publication Date Title
JP7170082B2 (en) Method and device for generating information, electronic device, storage medium and computer program
US10366154B2 (en) Information processing device, information processing method, and computer program product
JP4935658B2 (en) Browser program and information processing apparatus
US20090037801A1 (en) Method and apparatus for automatic user manual generation
JP2022538702A (en) Voice packet recommendation method, device, electronic device and program
US7921127B2 (en) File management apparatus, control method therefor, computer program, and computer-readable storage medium
JP4885569B2 (en) Style sheet generating apparatus and style sheet generating program
JP2002182914A (en) Screen transition display device, screen transition display method and storage medium
JP2021076913A (en) Computer and learning method of model
JP7383882B2 (en) Information processing device and information processing program
JP5230193B2 (en) Data search apparatus, data search method, and computer program
JP2005135369A (en) Processing apparatus, application program, resource reproduction method, application program generation method, and data structure of resource data group
US20050097460A1 (en) GUI operating method using graphic ID information and apparatus thereof
JP6168422B2 (en) Information processing apparatus, information processing method, and program
JP5600826B1 (en) Unstructured data processing system, unstructured data processing method and program
JP7346671B2 (en) Data conversion device and data conversion method
JP2005148801A (en) Relevant information providing method and device, relevant information providing program and recording medium with its program
JP3734101B2 (en) Hypermedia construction support device
KR102353797B1 (en) Method and system for suppoting content editing based on real time generation of synthesized sound for video content
JPWO2010035405A1 (en) Information processing device
JP2016004394A (en) Information processor, control method thereof and program
JP4890584B2 (en) Ontology creation support device and program
JP2005157827A (en) Method and device for creating program
CN117492867A (en) Component attribute configuration method, device, equipment and readable storage medium
JP2015210786A (en) Information processing device, information processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080812

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110329

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110516

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

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

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4885569

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees