Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7704401B2 - Image generating device, image generating method, and program - Google Patents
[go: Go Back, main page]

JP7704401B2 - Image generating device, image generating method, and program - Google Patents

Image generating device, image generating method, and program Download PDF

Info

Publication number
JP7704401B2
JP7704401B2 JP2021084883A JP2021084883A JP7704401B2 JP 7704401 B2 JP7704401 B2 JP 7704401B2 JP 2021084883 A JP2021084883 A JP 2021084883A JP 2021084883 A JP2021084883 A JP 2021084883A JP 7704401 B2 JP7704401 B2 JP 7704401B2
Authority
JP
Japan
Prior art keywords
numerical
color
hue
polarity
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021084883A
Other languages
Japanese (ja)
Other versions
JP2022178243A (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.)
THE UNIVERSITY OF ELECTRO-COMUNICATINS
Original Assignee
THE UNIVERSITY OF ELECTRO-COMUNICATINS
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 THE UNIVERSITY OF ELECTRO-COMUNICATINS filed Critical THE UNIVERSITY OF ELECTRO-COMUNICATINS
Priority to JP2021084883A priority Critical patent/JP7704401B2/en
Publication of JP2022178243A publication Critical patent/JP2022178243A/en
Application granted granted Critical
Publication of JP7704401B2 publication Critical patent/JP7704401B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Machine Translation (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、画像生成装置、画像生成方法およびプログラムに関する。 The present invention relates to an image generation device, an image generation method, and a program.

情報の可視化手法として、インフォグラフィックが知られている。インフォグラフィックは、情報を画像と併用して視覚的に表現したものである。視覚効果による魅力と相まって,伝達したい情報が記憶に残りやすいので、インフォグラフィックは、ニュース、標識、会議資料など多くの場面で用いられている。 Infographics are known as a method of visualizing information. Infographics are a visual representation of information that combines images. Combined with the appeal of the visual effect, infographics make it easy to remember the information you want to convey, so they are used in many situations, including news, signs, and meeting materials.

文章からインフォグラフィックを自動的にするアプローチが検討されている(非特許文献1)。非特許文献1は、「n%」「m in n」「m out of n」「half of」などのインフォグラフィックに関連する用語を、文章から抽出する。抽出された用語をテンプレートに当てはめることで、文章からインフォグラフィックが生成される。 Approaches to automatically create infographics from text are being considered (Non-Patent Document 1). In Non-Patent Document 1, terms related to infographics, such as "n%", "m in n", "m out of n", and "half of", are extracted from text. Infographics are generated from text by applying the extracted terms to templates.

Weiwei Cui, Xiaoyu Zhang, Yun Wang, He Huang, Bei Chen, Lei Fang, Haidong Zhang, Jian-Guan Lou, Dong-mei Zhang, “Text-to-Viz: Automatic Generation of Infographics from Proportion-Related Natural Language Statements”, IEEE Transactions on Visualization and Computer Graphics, Vol. 26, pp. 906-916 (2020)Weiwei Cui, Xiaoyu Zhang, Yun Wang, He Huang, Bei Chen, Lei Fang, Haidong Zhang, Jian-Guan Lou, Dong-mei Zhang, “Text-to-Viz: Automatic Generation of Infographics from Proportion-Related Natural Language Statements”, IEEE Transactions on Visualization and Computer Graphics, Vol. 26, pp. 906-916 (2020)

一般的に、色が視覚効果に与える影響は大きいところ、非特許文献1は、色については何ら開示も示唆もない。色に着目してインフォグラフィックを生成することにより、より適切に、情報を視覚的に表現することが考えられる。 Generally, color has a large impact on visual effects, but Non-Patent Document 1 does not disclose or suggest anything about color. It is thought that by generating infographics with a focus on color, information can be more appropriately visually represented.

本発明は、上記事情に鑑みてなされたものであり、本発明の目的は、より適切に、情報を視覚的に表現可能な技術を提供することである。 The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide a technology that can visually represent information more appropriately.

本発明の一態様の画像生成装置は、画像データにおいて、数を表す数値表現を描画する位置、前記数値表現の数値名を描画する位置、および極性色の位置を定義するテンプレートデータと、色相を含む複数の要素で特定される色空間において、ポジティブの色相の値とネガティブの値を定義する色相定義データを記憶する記憶装置と、入力テキストと、入力テキストに対するポジティブおよびネガティブのいずれかの極性を取得する取得部と、前記入力テキストから、数値表現および数値名を抽出する抽出部と、前記テンプレートデータで定義された数値表現と数値名の位置に、前記抽出部が抽出した前記数値表現および前記数値名を描画し、前記色相定義データから、前記取得部が取得した極性の色相の値を取得し、前記数値名に対応する色の色相を、取得した色相の値に変更した色を、前記極性色の位置に設定して、画像データを出力する出力部を備える。 The image generating device of one aspect of the present invention includes a storage device that stores template data that defines the position at which a numerical expression representing a number is drawn in image data, the position at which the numerical name of the numerical expression is drawn, and the position of a polarity color, and hue definition data that defines a positive hue value and a negative hue value in a color space specified by a plurality of elements including hue, an acquisition unit that acquires input text and either a positive or negative polarity for the input text, an extraction unit that extracts a numerical expression and a numerical name from the input text, and an output unit that draws the numerical expression and the numerical name extracted by the extraction unit at the position of the numerical expression and the numerical name defined in the template data, acquires the polarity hue value acquired by the acquisition unit from the hue definition data, changes the hue of the color corresponding to the numerical name to the acquired hue value, and sets the color at the position of the polarity color to output image data.

本発明の一態様の画像生成方法は、コンピュータが、画像データにおいて、数を表す数値表現を描画する位置、前記数値表現の数値名を描画する位置、および極性色の位置を定義するテンプレートデータと、色相を含む複数の要素で特定される色空間において、ポジティブの色相の値とネガティブの値を定義する色相定義データを記憶するステップと、前記コンピュータが、入力テキストと、入力テキストに対するポジティブおよびネガティブのいずれかの極性を取得するステップと、前記コンピュータが、前記入力テキストから、数値表現および数値名を抽出するステップと、前記コンピュータが、前記テンプレートデータで定義された数値表現と数値名の位置に、前記抽出するステップで抽出した前記数値表現および前記数値名を描画し、前記色相定義データから、前記取得するステップが取得した極性の色相の値を取得し、前記数値名に対応する色の色相を、取得した色相の値に変更した色を、前記極性色の位置に設定して、画像データを出力するステップを備える。 The image generating method of one aspect of the present invention includes a step of storing template data that defines the position at which a numerical expression representing a number is drawn in image data, the position at which the numerical name of the numerical expression is drawn, and the position of the polarity color, and hue definition data that defines the positive hue value and the negative value in a color space specified by a plurality of elements including hue, a step by the computer acquiring an input text and either a positive or negative polarity for the input text, a step by the computer extracting a numerical expression and a numerical name from the input text, and a step by the computer drawing the numerical expression and the numerical name extracted in the extracting step at the position of the numerical expression and the numerical name defined in the template data, acquiring the polarity hue value acquired in the acquiring step from the hue definition data, setting the hue of the color corresponding to the numerical name to the acquired hue value at the position of the polarity color, and outputting the image data.

本発明の一態様は、上記画像生成装置として、コンピュータを機能させるプログラムである。 One aspect of the present invention is a program that causes a computer to function as the image generating device.

本発明によれば、より適切に、情報を視覚的に表現可能な技術を提供することができる。 The present invention provides a technology that can visually represent information more appropriately.

図1は、本発明の実施の形態に係る画像生成装置の機能ブロックを説明する図である。FIG. 1 is a diagram illustrating functional blocks of an image generating apparatus according to an embodiment of the present invention. 図2は、色相定義データのデータ構造とデータの一例を説明する図である。FIG. 2 is a diagram for explaining an example of the data structure and data of the hue definition data. 図3は、数値名色データのデータ構造とデータの一例を説明する図である。FIG. 3 is a diagram for explaining an example of the data structure and data of the numeric color data. 図4は、数値変化定義データのデータ構造とデータの一例を説明する図である。FIG. 4 is a diagram for explaining an example of the data structure and data of the numerical value change definition data. 図5は、テンプレート定義データのデータ構造とデータの一例を説明する図である。FIG. 5 is a diagram illustrating an example of the data structure and data of the template definition data. 図6は、テンプレートデータの一例を説明する図である。FIG. 6 is a diagram illustrating an example of template data. 図7は、図6に示すテンプレートデータから生成された画像データの一例を説明する図である。FIG. 7 is a diagram for explaining an example of image data generated from the template data shown in FIG. 図8(a)は、入力テキストを単語に分割し、数値表現および数値変化ラベルを付した結果の一例を説明する図であって、図8(b)は、入力テキストの依存構文解析結果を説明する図である。FIG. 8(a) is a diagram illustrating an example of the results of dividing an input text into words and assigning numerical expressions and numerical change labels, and FIG. 8(b) is a diagram illustrating the results of dependency syntax analysis of the input text. 図9は、色取得部が取得する色を説明する図である。FIG. 9 is a diagram illustrating the colors acquired by the color acquisition unit. 図10は、画像処理装置の処理の一例を説明するフローチャートである。FIG. 10 is a flowchart illustrating an example of processing by the image processing device. 図11は、画像生成装置に用いられるコンピュータのハードウエア構成を説明する図である。FIG. 11 is a diagram for explaining the hardware configuration of a computer used in the image generating apparatus.

以下、図面を参照して、本発明の実施形態を説明する。図面の記載において同一部分には同一符号を付し説明を省略する。 Below, an embodiment of the present invention will be described with reference to the drawings. In the description of the drawings, the same parts are given the same reference numerals and the description will be omitted.

(画像生成装置)
本発明の実施の形態に係る画像生成装置1は、数値表現を含む入力テキストから、その数値表現に関するインフォグラフィックである画像データ26を生成する。入力テキストは、一つ以上の文章をコンピュータ処理可能なデータ形式で表現したデータであって、典型的にはテキスト形式のデータである。
(Image Generation Device)
The image generating device 1 according to the embodiment of the present invention generates image data 26, which is an infographic related to a numerical expression, from an input text including the numerical expression. The input text is data in which one or more sentences are expressed in a computer-processable data format, and is typically data in a text format.

一般的に数値表現を含む入力テキストは、それを提示する人の属性によって、ポジティブな感情を持つ場合もあれば、ネガティブな感情を持つ場合もある。例えば、地価の上昇に関する入力テキストがある場合、売り手はポジティブに感じる一方、買い手はネガティブに感じる。 In general, input text that contains numerical expressions can have either positive or negative sentiment depending on the attributes of the person presenting it. For example, if there is input text about rising land prices, sellers will feel positive about it, while buyers will feel negative about it.

そこで画像生成装置1は、入力テキストとともに、極性を取得して、その極性に対応する色で、画像データ26を生成する。極性は、ポジティブまたはネガティブの二値が設定される。極性は、入力テキストに対する印象がポジティブであるかネガティブであるかを示す。これにより、画像生成装置1は、画像データ26において、閲覧者が持つ印象を色で表現することにより、より適切に、情報を視覚的に表現することを可能とする。 The image generating device 1 then obtains the polarity along with the input text, and generates image data 26 in a color corresponding to the polarity. The polarity is set to a binary value of positive or negative. The polarity indicates whether the impression of the input text is positive or negative. In this way, the image generating device 1 can more appropriately visually express information by expressing the impression the viewer has in the image data 26 with a color.

図1に示すように画像生成装置1は、色相定義データ11、数値名色データ12、数値変化定義データ13、テンプレート定義データ14、テンプレート群データ15、入力テキスト21、極性22、数値名23、数値表現24、テンプレートデータ25および画像データ26の各データと、取得部31、抽出部32、選択部33および出力部34の各機能を備える。各データは、メモリ902またはストレージ903等の記憶装置に記憶される。色相定義データ11、数値名色データ12、数値変化定義データ13、テンプレート定義データ14およびテンプレート群データ15は、画像生成装置1が、入力テキスト21から画像データ26を生成する処理に先立って、予め画像生成装置1に記憶される。入力テキスト21、極性22、数値名23、数値表現24、テンプレートデータ25および画像データ26は、画像生成装置1が、入力テキスト21から画像データ26を生成する処理に伴って、画像生成装置1に記憶される。各機能は、CPU901に実装される。 1, the image generating device 1 includes the following data: hue definition data 11, numerical value name color data 12, numerical value change definition data 13, template definition data 14, template group data 15, input text 21, polarity 22, numerical value name 23, numerical value expression 24, template data 25, and image data 26, and the functions of an acquisition unit 31, an extraction unit 32, a selection unit 33, and an output unit 34. Each data is stored in a storage device such as a memory 902 or a storage 903. The hue definition data 11, numerical value name color data 12, numerical value change definition data 13, template definition data 14, and template group data 15 are stored in the image generating device 1 in advance before the image generating device 1 generates image data 26 from the input text 21. The input text 21, polarity 22, numerical value name 23, numerical value expression 24, template data 25, and image data 26 are stored in the image generating device 1 as the image generating device 1 generates image data 26 from the input text 21. Each function is implemented in the CPU 901.

色相定義データ11は、色相を含む複数の要素で特定される色空間において、ポジティブの色相の値とネガティブの値を定義する。色相を含む複数の要素で特定される色空間は、例えば、HSB系(H:hue(色相),S:saturation(彩度),B:brightness(明度))、HSV系(H:hue(色相),S:saturation(彩度),B:value(明度))などである。色をHSB系で表現する場合、色相は、0~360の値で表現される。色相定義データ11は、図2に示すように、ポジティブとネガティブのそれぞれの極性について、色相の値の範囲を対応づける。 Hue definition data 11 defines positive and negative hue values in a color space specified by multiple elements including hue. Examples of color spaces specified by multiple elements including hue include the HSB system (H: hue, S: saturation, B: brightness) and the HSV system (H: hue, S: saturation, B: value). When expressing color in the HSB system, the hue is expressed as a value from 0 to 360. As shown in Figure 2, the hue definition data 11 associates a range of hue values with each polarity, positive and negative.

本発明の実施の形態において、各極性の色相の値は、プルチックの2次元の感情の輪を参考にして、色相定義データ11が生成される。ポジティブに対する色相の値は、プルチックの二次元の感情の輪の怒り、期待、喜びおよび信頼などに対応する0~135である。ポジティブに対する色相の値は、プルチックの二次元の感情の輪の信頼、恐れ、驚き、悲しみ、嫌悪および怒りに対応する136~360である。色相定義データ11において、ポジティブおよびネガティブの各極性について、人の受ける印象と極性とが対応するように色相の値が定義されればよく、どのように定義されても良い。 In an embodiment of the present invention, the hue definition data 11 is generated with reference to Plutchik's two-dimensional emotion wheel to determine the hue values of each polarity. The hue values for positivity are 0 to 135, which correspond to anger, anticipation, joy, trust, etc. on Plutchik's two-dimensional emotion wheel. The hue values for positivity are 136 to 360, which correspond to trust, fear, surprise, sadness, disgust, and anger on Plutchik's two-dimensional emotion wheel. In the hue definition data 11, the hue values may be defined in any way as long as they correspond to the impressions people receive for each positive and negative polarity and the polarity.

数値名色データ12は、数値名に対応する色を定義するデータである。数値名は、入力テキストに含まれる数値表現の表現対象の名称である。数値表現が「200円」などの物価の場合、数値名は「物価」である。 Numeric name color data 12 is data that defines the color corresponding to a numeric name. A numeric name is the name of the object of a numeric expression contained in the input text. When the numeric expression is a price such as "200 yen," the numeric name is "price."

数値名色データ12は、図3に示すように、数値名、アイコンおよび代表色を対応づけても良い。一つの数値名に対して一つにアイコンおよび代表色が対応づけられる。一つのアイコンに対して複数の数値名が対応づけられても良い。アイコンは、数値名を想起する画像である。アイコンは、画像データ26に設定されても良い。代表色は、数値名23から想起される色である。図3に示す例において代表色は、RGBの各値を16進数の2桁で表す。代表色は、色名で表現されても良いし、HSBの各値で表現されても良い。 The numeric name color data 12 may correspond to a numeric name, an icon, and a representative color, as shown in FIG. 3. One icon and one representative color are associated with one numeric name. Multiple numeric names may be associated with one icon. An icon is an image that recalls a numeric name. An icon may be set in image data 26. A representative color is a color recalled by a numeric name 23. In the example shown in FIG. 3, the representative color is expressed by two hexadecimal digits for each RGB value. The representative color may be expressed by a color name or each HSB value.

代表色は、任意の方法で決定される。図3で挙げたアイコンの色から決定されても良い。あるいは、代表色は、数値名として一般的に用いられる複数のアイコンの色から決定されても良い。また、一般的に白または黒が多用されることから、アイコン等から決定された色が「r > 200, g > 200かつb > 200」もしくは「r < 55, g < 55かつ b < 55」の場合、代表色としては採用しないという条件を設けても良い。 The representative color is determined by any method. It may be determined from the color of the icon shown in Figure 3. Alternatively, the representative color may be determined from the colors of multiple icons that are commonly used as numerical names. Also, since white and black are commonly used, a condition may be set that if the color determined from the icon, etc. is "r > 200, g > 200 and b > 200" or "r < 55, g < 55 and b < 55", it will not be adopted as the representative color.

数値変化定義データは13、数値変化に関する用語と、その用語が意味する数値の上昇および下降のいずれかの数値変化ラベルを対応づける。数値変化定義データ13は、図4に示すように、数値変化ラベルに、その数値変化ラベルに対応する用語と品詞を対応づける。数値変化ラベルは、数値の上昇および下降のいずれかを示すことがわかれば、どのようなラベルが用いられても良い。他の実施例において、数値に変更がないことを意味する数値変化ラベルが、さらに用いられても良い。 The numerical change definition data 13 associates terms related to numerical changes with numerical change labels that indicate either an increase or a decrease in the numerical value that the term indicates. As shown in FIG. 4, the numerical change definition data 13 associates a numerical change label with a term and a part of speech that corresponds to the numerical change label. Any numerical change label may be used as long as it indicates either an increase or a decrease in the numerical value. In another embodiment, a numerical change label that indicates no change in the numerical value may also be used.

図4に示す例において数値変化ラベルは、数値の上昇を表す「UP」と数値の下降を表す「DOWN」である。図4に示す例において、用語「上回る」は、数値の上昇を想起するので数値変化ラベル「UP」が対応づけられる。用語「低迷」は、数値の下降を想起するので数値変化ラベル「DOWN」が対応づけられる。 In the example shown in FIG. 4, the numeric change labels are "UP" which indicates an increase in a numeric value and "DOWN" which indicates a decrease in a numeric value. In the example shown in FIG. 4, the term "surpass" evokes an increase in a numeric value, so it is associated with the numeric change label "UP." The term "slump" evokes a decrease in a numeric value, so it is associated with the numeric change label "DOWN."

テンプレート定義データ14は、画像生成装置1のテンプレート群データ15が保有する複数のテンプレートデータの属性を定義する。図5に示すようにテンプレート定義データ14は、テンプレートデータの識別子と、テンプレートデータで表現する数値表現の数および数値表現の変化の数を対応づける。数値表現の変化は、比較対象となる数値表現に対する変化であって、パーセント表記または倍率で表記される。入力テキストに、数値表現による数値のみならず、数値表現の変化が含まれ、画像データ26で数値表現の変化を表現する場合に用いられる。数値表現の変化の数は、テンプレートデータに含まれるパーセントまたは倍率を表現する図の数に対応する。 The template definition data 14 defines the attributes of multiple template data held in the template group data 15 of the image generating device 1. As shown in FIG. 5, the template definition data 14 associates the identifier of the template data with the number of numerical expressions expressed in the template data and the number of changes in the numerical expressions. The changes in the numerical expressions are changes relative to the numerical expressions to be compared, and are expressed as percentages or magnifications. This is used when the input text contains not only numerical values represented by numerical expressions, but also changes in the numerical expressions, and the changes in the numerical expressions are expressed in the image data 26. The number of changes in the numerical expressions corresponds to the number of figures expressing percentages or magnifications included in the template data.

テンプレート群データ15は、画像データ26を生成する際に参照される複数のテンプレートデータを特定するデータである。テンプレートデータは、数を表す数値表現を描画する位置、数値表現の数値名を描画する位置、極性色の位置、アイコンを描画する位置、数値表現の変化の描画位置など、画像データ26に含まれる各パーツを描画する位置を定義する。テンプレート群データ15に含まれるテンプレートは、テンプレート定義データ14で定義するテンプレートの識別子に対応づけられる。 The template group data 15 is data that identifies multiple template data that are referenced when generating the image data 26. The template data defines the position at which each part included in the image data 26 is drawn, such as the position at which a numerical expression representing a number is drawn, the position at which the numerical name of the numerical expression is drawn, the position of the polarity color, the position at which an icon is drawn, and the position at which a change in the numerical expression is drawn. The templates included in the template group data 15 are associated with the template identifiers defined in the template definition data 14.

図6(a)および(b)を参照して、テンプレートデータを説明する。なお、図7(a)および(b)のそれぞれは、図6(a)および(b)に示すテンプレートデータを用いて、画像生成装置1が生成した画像データ26の一例である。 The template data will be described with reference to Figs. 6(a) and (b). Figs. 7(a) and (b) are examples of image data 26 generated by the image generating device 1 using the template data shown in Figs. 6(a) and (b), respectively.

図6(a)のテンプレートは、数値表現を描画する数値表現表示部P1、数値名を描画する数値名表示部P2およびアイコンを表示するアイコン表示部P3を備える。図7(a)に示すように、画像データ26は、数値表現表示部P1、数値名表示部P2およびアイコン表示部P3のそれぞれの位置に、具体的なデータを示す。 The template in FIG. 6(a) has a numerical expression display section P1 for drawing numerical expressions, a numerical name display section P2 for drawing numerical names, and an icon display section P3 for displaying icons. As shown in FIG. 7(a), the image data 26 shows specific data in the respective positions of the numerical expression display section P1, the numerical name display section P2, and the icon display section P3.

図6(b)のテンプレートは、図6(a)のテンプレートが備える数値表現表示部P1、数値名表示部P2およびアイコン表示部P3のほか、パーセント形式などの数値表現の変化の数値を表示するパーセント表示部P4を備える。図7(b)に示すように、画像データ26は、数値表現表示部P1、数値名表示部P2、アイコン表示部P3およびパーセント表示部P4のそれぞれの位置に、具体的なデータを示す。図7(b)のパーセント表示部P4における一部が欠けた円は、パーセント表示部P4が表す値によって、形状が異なっても良い。図7(b)に示すように、パーセント表示部P4は、「90%」を示す。この数値がさらに低い場合、パーセント表示部P4が表す円は、さらに欠落する。例えばパーセント表示部P4が「50%」を表現する場合、パーセント表示部P4が表す円は、半円になる。 The template in FIG. 6(b) includes a percentage display section P4 that displays the numerical value of the change in the numerical expression such as a percentage format in addition to the numerical expression display section P1, numerical name display section P2, and icon display section P3 included in the template in FIG. 6(a). As shown in FIG. 7(b), the image data 26 shows specific data at the respective positions of the numerical expression display section P1, numerical name display section P2, icon display section P3, and percentage display section P4. The shape of the partially missing circle in the percentage display section P4 in FIG. 7(b) may differ depending on the value represented by the percentage display section P4. As shown in FIG. 7(b), the percentage display section P4 shows "90%". If this numerical value is even lower, the circle represented by the percentage display section P4 will be even more missing. For example, if the percentage display section P4 represents "50%," the circle represented by the percentage display section P4 will be a semicircle.

図6(a)および図6(b)は、それぞれ、枠に極性色表示部P5を設ける。極性色表示部P5は、取得部31が取得した極性22に応じて、設定される色を表示する部分である。具体的には極性22がポジティブな場合、極性色表示部P5に、ポジティブを想起させる色が表示される。極性22がネガティブな場合、極性色表示部P5に、ネガティブを想起させる色が表示される。図6(a)および(b)に示す例において極性色表示部P5は、数値表現表示部P1等を囲う枠であるがこれに限らない。極性色表示部P5は、テンプレートデータにおける模様、背景など、テンプレートデータの一部を構成する部分として設けられても良い。 6(a) and 6(b) each have a polarity color display section P5 in a frame. The polarity color display section P5 is a section that displays a color that is set according to the polarity 22 acquired by the acquisition section 31. Specifically, when the polarity 22 is positive, a color that evokes positivity is displayed in the polarity color display section P5. When the polarity 22 is negative, a color that evokes negativity is displayed in the polarity color display section P5. In the examples shown in FIGS. 6(a) and 6(b), the polarity color display section P5 is a frame that surrounds the numerical expression display section P1, etc., but is not limited to this. The polarity color display section P5 may be provided as a part that constitutes part of the template data, such as a pattern or background in the template data.

また一つのテンプレートデータにおいて、複数の極性色表示部P5が定義されても良い。各極性色表示部P5は、同じ色で表示されても良いし、異なる色で表示されても良い。各極性色表示部P5が異なる色で表示される場合、テンプレートデータ25は、極性色表示部P5のそれぞれに表示する色を特定する識別子を対応づける。テンプレートデータ25は、極性色表示部P5のそれぞれに、基準となる極性色に対する色相のシフト量を対応づけても良い。極性色表示部P5のそれぞれに、色相のみが異なり彩度および明度が同じ色が表示される。シフト量は、極性色の色相の値に対する差分であって、+30、-50などと表記される。 In addition, multiple polarity color display sections P5 may be defined in one template data. Each polarity color display section P5 may be displayed in the same color or in a different color. When each polarity color display section P5 is displayed in a different color, the template data 25 associates an identifier that specifies the color to be displayed with each polarity color display section P5. The template data 25 may associate each polarity color display section P5 with a shift amount of hue relative to a reference polarity color. Each polarity color display section P5 displays a color that differs only in hue but has the same saturation and brightness. The shift amount is the difference with respect to the hue value of the polarity color, and is expressed as +30, -50, etc.

入力テキスト21は、画像生成装置1に入力されるデータである。入力テキスト21は、画像生成装置1が画像データ26を生成する対象となる文章を特定する。入力テキスト21は、数を表す数値表現と、その数値表現の数値名を含む。なお本発明の実施の形態において「数」は、数量、金額、パーセンテージなどの数字での表現できる単語である。数は、整数で表現可能な単語のみならず、小数、分数などのあらゆる数で表現可能な単語を含む。 The input text 21 is data input to the image generating device 1. The input text 21 specifies a sentence from which the image generating device 1 generates image data 26. The input text 21 includes a numerical expression representing a number and the numerical name of the numerical expression. Note that in the embodiment of the present invention, a "number" is a word that can be expressed in numbers, such as a quantity, an amount, or a percentage. Numbers include not only words that can be expressed in integers, but also words that can be expressed in any number, such as decimals and fractions.

極性22は、画像生成装置1に入力されるデータである。極性22は、ポジティブまたはネガティブである。画像生成装置1は、極性22で設定された値に従って、画像データ26における極性色表示部P5の色相を変更する。本発明の実施の形態において極性は、ポジティブまたはネガティブであるが、3つ以上の極性が設定されても良い。 Polarity 22 is data input to image generating device 1. Polarity 22 is positive or negative. Image generating device 1 changes the hue of polarity color display section P5 in image data 26 according to the value set in polarity 22. In the embodiment of the present invention, polarity is positive or negative, but three or more polarities may be set.

数値名23および数値表現24はそれぞれ、入力テキスト21から抽出されるデータである。数値名23および数値表現24はそれぞれ、抽出部32によって抽出される。入力テキスト21は、少なくとも一つの数値表現24を含む。 The numerical name 23 and the numerical expression 24 are each data extracted from the input text 21. The numerical name 23 and the numerical expression 24 are each extracted by the extraction unit 32. The input text 21 includes at least one numerical expression 24.

テンプレートデータ25は、テンプレート群データ15から選択された一つのテンプレートデータである。テンプレートデータ25は、選択部33によって選択される。 The template data 25 is one template data selected from the template group data 15. The template data 25 is selected by the selection unit 33.

画像データ26は、画像生成装置1が入力テキスト21および極性22から生成されるデータである。画像データ26は、出力部34によって生成される。画像データ26は、入力テキスト21と極性22から生成されるインフォグラフィックである。画像データ26は、極性22に対応する色を有することで、極性22に対応する印象を色で表現することを可能とする。 The image data 26 is data generated by the image generating device 1 from the input text 21 and the polarity 22. The image data 26 is generated by the output unit 34. The image data 26 is an infographic generated from the input text 21 and the polarity 22. The image data 26 has a color corresponding to the polarity 22, making it possible to express an impression corresponding to the polarity 22 in color.

取得部31は、入力テキスト21と、入力テキスト21に対するポジティブおよびネガティブのいずれかの極性22を取得する。取得部31は、例えばユーザが入力する入力テキスト21と極性22を取得する。 The acquisition unit 31 acquires the input text 21 and the polarity 22, which is either positive or negative, for the input text 21. The acquisition unit 31 acquires the input text 21 and the polarity 22, which are input by the user, for example.

抽出部32は、入力テキスト21から、数値名23および数値表現24を抽出する。抽出部32は、入力テキスト21における主語を、数値名23として抽出する。抽出部32は、入力テキスト21が3つ以上などの複数の数値表現を含む場合、入力テキスト21における主語に関連する2つの数値表現24を抽出する。抽出部32は、入力テキスト21に含まれる複数の数値表現のうち、主語と最も関連する数値表現24と、この数値表現のラベルと同じラベルが付された数値表現24を抽出する。ラベルは、後述するように、数の種類を特定する。このように抽出された数値表現24は、主語となる数値名を修飾していると考えられ、数値名に対する数値表現として適切であるからである。 The extraction unit 32 extracts the numerical name 23 and the numerical expression 24 from the input text 21. The extraction unit 32 extracts the subject in the input text 21 as the numerical name 23. When the input text 21 includes a plurality of numerical expressions, such as three or more, the extraction unit 32 extracts two numerical expressions 24 related to the subject in the input text 21. Of the plurality of numerical expressions included in the input text 21, the extraction unit 32 extracts the numerical expression 24 most related to the subject and a numerical expression 24 with the same label as that of this numerical expression. The label specifies the type of number, as described below. The numerical expression 24 extracted in this manner is considered to modify the numerical name that is the subject, and is appropriate as a numerical expression for the numerical name.

抽出部32は、入力テキスト21に対して形態素解析および固有表現抽出処理などを行い、入力テキスト21における依存構文解析および品詞タグを付ける。抽出部32は、入力テキスト21における主語述語のペアを決定し、決定された主語述語のペアから、数値名および数値表現を決定する。本発明の実施の形態において、NPL(自然言語処理:Natural Language Processing)ライブラリとして、spaCy, Sudachi,および日本語Universal DependenciesモデルのGiNZAを使用する場合を説明するが、これに限るものではない。 The extraction unit 32 performs morphological analysis and named entity extraction processing on the input text 21, and performs dependency syntactic analysis and part-of-speech tags on the input text 21. The extraction unit 32 determines subject-predicate pairs in the input text 21, and determines numerical names and numerical expressions from the determined subject-predicate pairs. In the embodiment of the present invention, a case will be described in which spaCy, Sudachi, and GiNZA, a Japanese Universal Dependencies model, are used as NPL (Natural Language Processing) libraries, but the present invention is not limited to this.

抽出部32は、入力テキスト21に対して、Sudachi を用いて形態素解析を行う。抽出部32は、その解析結果を spaCyに渡す。抽出部32は、数値変化定義データ13と日本語Universal Dependencies モデルを用いて、入力テキスト21の依存構造解析および品詞タグ付けを行う。これにより入力テキスト21は、単語単位で分割されたトークンの集合として扱われる。 The extraction unit 32 performs morphological analysis on the input text 21 using Sudachi. The extraction unit 32 passes the analysis results to spaCy. The extraction unit 32 performs dependency structure analysis and part-of-speech tagging of the input text 21 using the numerical change definition data 13 and the Japanese Universal Dependencies model. As a result, the input text 21 is treated as a set of tokens divided into words.

抽出部32は、各トークンに、固有表現、数値表現および数値変化ラベルを付与する。固有表現は、固有名詞である。数値表現は、数量、金額、パーセンテージなどの数で表現される単語である。抽出部32は、数値表現に分類されるラベルのうち、数を表すラベルを、数値表現として定義する。数を表すラベルは、例えば、「人数(N_Person)」、「組織数(N_Organization)」、「場所数(N_Location)」、「場所数_その他(N_Location_Other)」、「国数(N_Country)」、「施設数(N_Facility)」、「製品数(N_Product)」、「イベント数(N_Event)」、「自然物数(N_Natural_Object)」、「自然物数_その他(N_Natural_Object_Othrer)」、「動物数(N_Animal)」、「植物数(N_Flora)」、「金額表現(Money)」、「割合表現(Percent)」、「倍数表現(Multiplication)」、「頻度表現(Frequency)」、および「年齢(Age)」などである。 The extraction unit 32 assigns a named entity, a numerical expression, and a numerical change label to each token. A named entity is a proper noun. A numerical expression is a word expressed as a number, such as a quantity, an amount, or a percentage. The extraction unit 32 defines, among the labels classified as numerical expressions, labels that represent numbers as numerical expressions. Labels representing numbers include, for example, "number of people (N_Person)", "number of organizations (N_Organization)", "number of locations (N_Location)", "number of locations_other (N_Location_Other)", "number of countries (N_Country)", "number of facilities (N_Facility)", "number of products (N_Product)", "number of events (N_Event)", "number of natural objects (N_Natural_Object)", "number of natural objects_other (N_Natural_Object_Other)", "number of animals (N_Animal)", "number of plants (N_Flora)", "money expression (Money)", "percentage expression (Percent)", "multiplication expression (Multiplication)", "frequency expression (Frequency)", and "age (Age)".

抽出部32が、「野菜の価格が200円から150円に下がった」という文章に対して単語分割し、数値表現および数値変化ラベルを付与した結果を、図8(a)に示す。図8(a)における区切りが、分割された単語の区切りである。抽出部32は、「200円」と「150円」のそれぞれに金額表現のラベルを付与する。抽出部32は、「下がった」に数値変化ラベルを付与する。 Figure 8 (a) shows the result of the extraction unit 32 dividing the sentence "The price of vegetables has fallen from 200 yen to 150 yen" into words and assigning numerical expressions and numerical change labels. The divisions in Figure 8 (a) are divisions of the divided words. The extraction unit 32 assigns labels of monetary expressions to each of "200 yen" and "150 yen". The extraction unit 32 assigns a numerical change label to "declined".

図8(b)に、依存構文解析結果を示す。図8(b)は、「野菜の価格が200円から150円に下がった」の文章から区切られた各単語に品詞を対応づけ、さらに各品詞の係り受けを示す。 Figure 8(b) shows the result of dependency syntax analysis. Figure 8(b) associates each word separated from the sentence "The price of vegetables has dropped from 200 yen to 150 yen" with a part of speech, and further shows the dependency of each part of speech.

次に抽出部32は、入力テキスト21における主語および述語のペアを決定する。抽出部32は、まず複数の主語述語のペアを抽出した後、一つの主語述語のペアを決定する場合を説明する。 Next, the extraction unit 32 determines subject and predicate pairs in the input text 21. We will explain the case where the extraction unit 32 first extracts multiple subject-predicate pairs and then determines one subject-predicate pair.

まず入力テキスト21に含まれる数値名23を抽出する処理を説明する。抽出部32は、数値名とする主語となりうるトークンを探す。抽出部32は、文頭から主語名詞を意味するnsubjもしくは目的語を意味するobjの係り受けタグが付与されているトークンを検索して、検索されたトークンを主語単語候補とする。このとき主語単語候補トークンが obj である場合,抽出部32は、2つの条件である「objトークンが対象数値表現を含んでいない」および「objトークンより文頭に名詞修飾語を意味する nmod トークンが出現している」を満たすか否かを、それぞれ判定する。いずれの条件も満たす場合、抽出部32は、このobjトークンを主語単語候補とする。一方いずれかの条件を満たさない場合、具体的には、「objトークンが対象数値表現を含む」場合、または「nmod トークンが出現していない」場合、抽出部32は、このobjトークンを主語単語候補から除く。これらの条件は、入力テキスト21が”アメリカの新型コロナウイルスの感染者は2000万7000人余りと、累計で2000万人を超えました。”の場合、主語を “2000万” ではなく “感染者” として採用することを考慮したためである。また文章構文としてobjに数値表現が来る場合は、そのテキストには別の主語となりうる単語nmodがすでに出現していることが多いためである。 First, the process of extracting the numerical name 23 contained in the input text 21 will be described. The extraction unit 32 searches for a token that can be a subject of the numerical name. The extraction unit 32 searches for a token that has a dependency tag of nsubj, which means a subject noun, or obj, which means an object, from the beginning of the sentence, and sets the searched token as a subject word candidate. In this case, if the subject word candidate token is obj, the extraction unit 32 determines whether or not the two conditions "the obj token does not contain a target numerical expression" and "an nmod token, which means a noun modifier, appears at the beginning of the sentence from the obj token" are satisfied. If both conditions are satisfied, the extraction unit 32 sets the obj token as a subject word candidate. On the other hand, if either condition is not satisfied, specifically, if "the obj token contains a target numerical expression" or "an nmod token does not appear", the extraction unit 32 removes the obj token from the subject word candidates. These conditions are in consideration of adopting the subject "infected" rather than "20 million" when the input text 21 is "The number of people infected with the new coronavirus in the United States has exceeded 20 million in total, reaching over 20 million, at over 20,007,000." Also, when a numerical expression appears in obj as a sentence construction, the word nmod, which can be another subject, often already appears in the text.

抽出部32は、入力テキスト21における主語を抽出し、その主語に対応する述語を特定する。 The extraction unit 32 extracts the subject in the input text 21 and identifies the predicate that corresponds to the subject.

抽出部32は、抽出した主語述語のペアが複数の場合、抽出部32は、複数のペアから一つのペアに絞り込む。ここで絞り込まれる主語述語ペアの主語は、数値名として尤もらしいものである。抽出部32は、それぞれの主語述語ペアの主語に対して、入力テキスト21における数値表現のいずれかのラベルが付与されたトークンとの距離を取得する。ここでの距離は、対象となる2つのトークンの間に存在するトークンの数とする。また主語トークンが1文字の場合、主語として妥当でない場合が多いことから、1文字主語の場合、抽出部32は、主語と数値表現の距離を1.5倍になるように重みを追加しても良い。抽出部32は、各主語述語ペアについて、その主語と入力テキスト21における各数値表現トークンの距離の平均値を算出し、距離の平均値が最も小さいもの、つまり複数の数値表現から主語が最も近いものを、最終的な主語述語ペアとして採用する。また最終的な主語述語ペアの主語が、数値名となる。 When there are multiple extracted subject-predicate pairs, the extraction unit 32 narrows down the multiple pairs to one pair. The subject of the subject-predicate pair narrowed down here is a likely numerical name. The extraction unit 32 obtains the distance between the subject of each subject-predicate pair and a token in the input text 21 to which any of the labels of numerical expressions is attached. The distance here is the number of tokens existing between the two target tokens. In addition, when the subject token is one character, it is often not appropriate as a subject, so in the case of a one-character subject, the extraction unit 32 may add a weight so that the distance between the subject and the numerical expression is 1.5 times. For each subject-predicate pair, the extraction unit 32 calculates the average value of the distance between the subject and each numerical expression token in the input text 21, and adopts the one with the smallest average distance, that is, the one with the closest subject among the multiple numerical expressions, as the final subject-predicate pair. In addition, the subject of the final subject-predicate pair becomes a numerical name.

入力テキスト21において、主語述語の関係が一つも得られないケースもある。その場合、抽出部32は、入力テキスト21から、複数のキーワードを取得し、これらのキーワードから主語を決定する。キーワードは、名詞とその名詞を説明する単語で構成され、例えばobj タグを持つ固有名詞トークンである。抽出部32は、各キーワードについて、キーワードに含まれる各単語の品詞タグについて、名詞タグNOUN の数と、それ以外のタグの数をカウントする。抽出部32は、複数のキーワードのうち、名詞タグの単語の数が最も多いキーワードを、主語とする。名詞タグの単語を最も多い数を有するキーワードが複数存在する場合、抽出部32は、そのキーワードの中で名詞以外の品詞タグの単語の数が最も少ないキーワードを、主語とする。抽出部32は、主語に係っているトークンを述語として取得する。 There are cases where no subject-predicate relationships are obtained from the input text 21. In such cases, the extraction unit 32 obtains multiple keywords from the input text 21 and determines the subject from these keywords. A keyword is composed of a noun and a word that describes the noun, and is, for example, a proper noun token with an obj tag. For each keyword, the extraction unit 32 counts the number of noun tags NOUN and the number of other tags for the part-of-speech tags of each word included in the keyword. The extraction unit 32 determines the keyword with the largest number of noun tag words as the subject among the multiple keywords. When there are multiple keywords with the largest number of noun tag words, the extraction unit 32 determines the keyword with the smallest number of non-noun part-of-speech tag words among the keywords as the subject. The extraction unit 32 obtains tokens related to the subject as predicates.

以上の処理から、抽出部32は、入力テキスト21における数値名を取得することができるが、拡張した主語を数値名としても良い。拡張した主語は、例えば、「AのB」、または「ABC」で表記される。「AのB」は、例えば、「“ゲーム”の“売り上げ”」などである。主語が「売り上げ」であるとしても、その売り上げの修飾として「ゲーム」が設定される場合、抽出部32は、「ゲームの売り上げ」を主語としても良い。「ABC」は、例えば、「“ウイルス”“新規”“感染者”」である。単語としての主語は「感染者」であるとしても、感染者の修飾として「ウイルス新規」が設定される場合、抽出部32は、「ウイルス新規感染者」を主語としても良い。また主語が1文字かつその主語の修飾語が1文字の場合、文頭側の主語がより主語としての役割が大きいと仮定して、採用した修飾語より前の2文字以上の固有名詞を拡張した主語として採用しても良い。 The extraction unit 32 can obtain the numerical name in the input text 21 through the above process, but the extended subject may also be the numerical name. The extended subject is expressed as, for example, "A's B" or "ABC." "A's B" is, for example, "Sales of 'Game'." Even if the subject is "Sales," if "Game" is set as a modifier for the sales, the extraction unit 32 may also use "Sales of the game" as the subject. "ABC" is, for example, "Virus, New, Infected." Even if the subject as a word is "Infected," if "New Virus" is set as a modifier for the infected, the extraction unit 32 may use "New Virus Infected" as the subject. In addition, when the subject is one character and the modifier of the subject is one character, a proper noun of two or more characters before the adopted modifier may be adopted as the extended subject, assuming that the subject at the beginning of the sentence plays a larger role as the subject.

次に入力テキスト21に含まれる数値表現24を抽出する処理を説明する。抽出部32は、主語述語ペアから数値表現24を決定する。入力テキスト21に1つの数値表現が含まれる場合、その数値表現を、入力テキストの数値表現24とする。 Next, the process of extracting the numerical expression 24 contained in the input text 21 will be described. The extraction unit 32 determines the numerical expression 24 from the subject-predicate pair. When the input text 21 contains one numerical expression, the numerical expression is set as the numerical expression 24 of the input text.

入力テキスト21に複数の数値表現を含む場合、抽出部32は、割合を意味する「Percent」と「Multiplication」を除いて、主語と各数値表現との関連度を求める。まず、数値表現タグが与えられた単語と主語が、係り受け関係または修飾関係である場合、抽出部32は、主語と該当の数値表現の関連度合いを1インクリメントする。このとき数値表現トークンが主語そのものである場合、抽出部32は、関連度合いを変化させない。 When the input text 21 contains multiple numerical expressions, the extraction unit 32 determines the degree of association between the subject and each numerical expression, except for "Percent" and "Multiplication," which mean a percentage. First, when a word with a numerical expression tag and the subject have a dependency or modification relationship, the extraction unit 32 increments the degree of association between the subject and the corresponding numerical expression by 1. At this time, when the numerical expression token is the subject itself, the extraction unit 32 does not change the degree of association.

抽出部32は、最後に関連度合いが最も大きい数値表現トークンを、入力テキスト21における数値表現候補とする。ここで数値表現は、「製品数(N_Product)」、「金額表現(Money)」など、複数の種類の表現を含む。候補となった数値表現と同じ種類の数値表現が付与されたトークンが存在する場合、それらのトークンを、入力テキスト21における数値表現24として採用する。例えば入力テキスト21が「新商品は3つ入りで200円から220円に。」である場合について説明する。この入力テキスト21において、「200円」および「220円」のそれぞれに、金額表現が付与され、「3個」に、製品数が付与される。主語を「新商品」とした場合、「新商品」に対する「220円」の関連度合いは、「3個」、「200円」の各関連度合いよりも高い。そこで抽出部32は、主語との関連度合いが最も大きい「220円」と、この数値表現と同じ種類の数値表現である「200円」を数値表現候補とし、「3個」を数値表現候補から除外する。 Finally, the extraction unit 32 selects the numerical expression token with the highest degree of association as a candidate numerical expression in the input text 21. Here, the numerical expression includes multiple types of expressions such as "number of products (N_Product)" and "money expression (Money)". If there are tokens to which the same type of numerical expression as the candidate numerical expression is assigned, these tokens are adopted as the numerical expression 24 in the input text 21. For example, a case will be described in which the input text 21 is "New product, priced at 220 yen instead of 200 yen for a pack of three." In this input text 21, a monetary expression is assigned to each of "200 yen" and "220 yen," and the number of products is assigned to "3 pieces." If the subject is "new product," the degree of association of "220 yen" with "new product" is higher than the degrees of association of "3 pieces" and "200 yen." Therefore, the extraction unit 32 selects "220 yen," which has the highest degree of relevance to the subject, and "200 yen," which is a numerical expression of the same type as this numerical expression, as numerical expression candidates, and excludes "3 pieces" from the numerical expression candidates.

ここで、「割合表現(Percent)」と「倍数表現(Multiplication)」の各ラベルが付された単語は、採用した数値表現における変化として扱う。なお、「Percent」と「Multiplication」を事前に除いたことにより,入力テキスト21に含まれる数値表現における変化が存在しなくなった場合、「割合表現(Percent)」または「倍数表現(Multiplication)」のラベルが付与された単語を、入力テキスト21における数値表現の変化として採用しても良い。 Here, words labeled "Percent" and "Multiplication" are treated as changes in the adopted numerical expression. Note that if there are no changes in the numerical expression contained in the input text 21 due to the prior removal of "Percent" and "Multiplication," words labeled "Percent" or "Multiplication" may be adopted as changes in the numerical expression in the input text 21.

次に抽出部32は、入力テキスト21における数値変動を決定する。ここでは、数値変化定義データ13において数値変化ラベルが付与されたトークンが参照される。 Next, the extraction unit 32 determines the numerical change in the input text 21. Here, tokens to which numerical change labels have been assigned in the numerical change definition data 13 are referenced.

まず、数値変化ラベルが述語に付与されている場合、抽出部32は、その述語に付与された数値変化ラベルを、入力テキスト21における数値変動とする。数値変化ラベルが付与された単語が述語に係っている場合、抽出部32は、その述語に係っている単語に付与された数値変化ラベルを、入力テキスト21における数値変動とする。数値変化ラベルが付与された単語が主語である場合、その主語に付与された数値変化ラベルを、入力テキスト21における数値変動とする。数値変化ラベルが付与された単語、もしくはその単語と係り受け依存関係にある単語が数値表現に係っている場合、その単語に付与された数値変化ラベルを、数値変動とする。 First, when a numerical change label is assigned to a predicate, the extraction unit 32 takes the numerical change label assigned to the predicate as the numerical change in the input text 21. When a word to which a numerical change label is assigned is related to a predicate, the extraction unit 32 takes the numerical change label assigned to the word related to the predicate as the numerical change in the input text 21. When a word to which a numerical change label is assigned is a subject, the numerical change label assigned to the subject is taken as the numerical change in the input text 21. When a word to which a numerical change label is assigned, or a word in a dependency relationship with that word, is related to a numerical expression, the numerical change label assigned to that word is taken as the numerical change.

入力テキスト21に、複数の数値変化ラベルが含まれる場合、抽出部32は、最も文末の数値変化ラベルを、入力テキスト21における数値変動とする。また入力テキスト21に数値変化ラベルが付与される単語が含まれない場合、「Percent」または「Multiplication」のトークンがUPまたはDOWNに関するワードに関係する場合、抽出部32は、このラベル分類をもとに数値変動を決定する。例えば、「2割増」が「2割」と「増」の2つのトークンに含まれる場合、「Percent」「2割」とUPに関する「増」は連続関係を有し、「2割増」が1つのトークンに分割される場合、このトークンとUPに関する「増」のワードは、包含関係を有する。あるいは、「人数(N_Person)」などの「N_xxx」のトークンにUPまたはDOWNに関するワードが含まれる場合、抽出部32は、このラベル分類をもとに数値変動を決定する。ここで、UPに関するワードは、「増」、「上」、「超」などである。DOWNに関するワードは、「減」、「下」などである。 When the input text 21 includes multiple numerical change labels, the extraction unit 32 determines the numerical change label at the end of the sentence as the numerical change in the input text 21. When the input text 21 does not include a word to which a numerical change label is assigned, and the token "Percent" or "Multiplication" is related to a word related to UP or DOWN, the extraction unit 32 determines the numerical change based on this label classification. For example, when "20% increase" is included in two tokens, "20%" and "increase", "Percent", "20%" and "increase" related to UP have a consecutive relationship, and when "20% increase" is divided into one token, this token and the word "increase" related to UP have an inclusive relationship. Alternatively, when a token of "N_xxx" such as "number of people (N_Person)" includes a word related to UP or DOWN, the extraction unit 32 determines the numerical change based on this label classification. Here, words related to UP are "increase", "up", "over", etc. Words related to DOWN are "decrease", "down", etc.

例えば、「Percent」または「Multiplication」のトークンが付与された単語の直後に数値変化の単語が続く場合、これらの単語から変換した値を、画像データ26で表現するグラフ等で表現される。例えば、「10%減少」は「90%」に変換され、「3割上昇」は「130%」に変換され、「1.5倍」は「150%」に変換される。また数値変動は、正規化するように変換されて、インフォグラフィックで表現するグラフ等に反映されても良い。例えば、「10%減」という文言をインフォグラフィックで表現する場合、「10%」を正規化するように変換された「90%」が、グラフ等で表現されても良い。 For example, when a word with a token of "Percent" or "Multiplication" is immediately followed by a word indicating a numerical change, the values converted from these words are expressed as a graph or the like that represents image data 26. For example, "a 10% decrease" is converted to "90%", "a 30% increase" is converted to "130%", and "1.5 times" is converted to "150%". Numerical fluctuations may also be converted to be normalized and reflected in a graph or the like that represents an infographic. For example, when the phrase "a 10% decrease" is expressed as an infographic, "90%" that has been converted to normalize "10%" may be expressed as a graph or the like.

以上の処理により、抽出部32は、入力テキスト21における数値名23および数値表現24を抽出する。また抽出部32は、「Percent」「Multiplication」などのパーセントまたは倍率となる、数値表現の変化の数値を取得する。なお抽出部32は、少なくとも数値名23および数値表現24を抽出できればよく、以上の処理と異なる処理によりこれらを抽出しても良い。 By the above process, the extraction unit 32 extracts the numerical name 23 and the numerical expression 24 from the input text 21. The extraction unit 32 also obtains the numerical value of the change in the numerical expression, which is a percentage or a multiplication factor, such as "Percent" or "Multiplication." Note that the extraction unit 32 is only required to be able to extract at least the numerical name 23 and the numerical expression 24, and may extract these by a process different from the above process.

選択部33は、抽出部32が抽出した数値表現24の数、および数値表現の変化の数によって、テンプレート群データ15から、テンプレートデータ25を抽出する。選択部33は、テンプレート定義データ14を参照して、抽出部32が抽出した数値表現24の数、および数値表現の変化の数を表現可能なテンプレートの識別子を特定する。選択部33は、テンプレート群データ15から、特定した識別子に対応するテンプレートデータ25を選択する。 The selection unit 33 extracts template data 25 from the template group data 15 based on the number of numerical expressions 24 and the number of changes in the numerical expressions extracted by the extraction unit 32. The selection unit 33 refers to the template definition data 14 to identify an identifier of a template that can express the number of numerical expressions 24 and the number of changes in the numerical expressions extracted by the extraction unit 32. The selection unit 33 selects template data 25 corresponding to the identified identifier from the template group data 15.

出力部34は、選択部33において選択されたテンプレートデータ25に従って、画像データ26を出力する。出力部34は、テンプレートデータ25で定義された数値表現と数値名の位置に、抽出部32が抽出した数値表現24および数値名23の各情報を描画する。出力部34は、テンプレートデータ25の数値名表示部P2および数値表現表示部P1に、抽出部32が抽出した数値名23および数値表現24を描画する。また出力部34は、数値名色データ12から、数値名23に対応づけられたアイコンを抽出し、抽出したアイコンをアイコン表示部P3に描画する。数値名色データ12において、数値名23に合致する数値名を含むレコードがない場合、数値名23の類義語の数値名を含むレコード、あるいは数値名23との類似度が高い数値名を含むレコードから、アイコンを抽出しても良い。抽出部32が複数の数値名23を抽出した場合、出力部34は、そのいずれかの数値名に対応するアイコンを描画する。テンプレートデータ25に、数値表現の変化を表示するパーセント表示部P4がある場合、抽出部32によって抽出された数値表現の変化に従って描画する。 The output unit 34 outputs the image data 26 according to the template data 25 selected by the selection unit 33. The output unit 34 draws each piece of information on the numerical expression 24 and the numerical name 23 extracted by the extraction unit 32 at the positions of the numerical expression and the numerical name defined in the template data 25. The output unit 34 draws the numerical name 23 and the numerical expression 24 extracted by the extraction unit 32 in the numerical name display section P2 and the numerical expression display section P1 of the template data 25. The output unit 34 also extracts an icon corresponding to the numerical name 23 from the numerical name color data 12 and draws the extracted icon in the icon display section P3. If there is no record in the numerical name color data 12 that contains a numerical name that matches the numerical name 23, an icon may be extracted from a record that contains a numerical name that is a synonym of the numerical name 23, or a record that contains a numerical name that is highly similar to the numerical name 23. If the extraction unit 32 extracts multiple numerical names 23, the output unit 34 draws an icon corresponding to any one of the numerical names. If the template data 25 has a percentage display section P4 that displays changes in numerical expression, it is drawn according to the changes in numerical expression extracted by the extraction section 32.

また出力部34は、テンプレートデータ25の極性色表示部P5を、後述の色取得部35が取得した色で描画する。色取得部35は、テンプレートデータにおける極性色表示部P5の色を取得する。 The output unit 34 also renders the polarity color display section P5 of the template data 25 in a color acquired by the color acquisition unit 35 described below. The color acquisition unit 35 acquires the color of the polarity color display section P5 in the template data.

色取得部35は、色相定義データ11から、取得部31が取得した極性の色相の値を取得する。また色取得部35は、数値名色データ12から、抽出部32が抽出した数値名23に対応する代表色(色)を取得する。数値名色データ12において、数値名23に合致する数値名を含むレコードがない場合、数値名23の類義語の数値名を含むレコード、あるいは数値名23との類似度が高い数値名を含むレコードから、代表色を抽出しても良い。代表色の色相が、色相定義データ11から取得した色相の値の範囲内である場合、色取得部35は、代表色を極性色とする。代表色の色相が、色相定義データ11から取得した色相の値の範囲内でない場合、色取得部35は、代表色の色相を、色相定義データ11から取得した色相の値に変更し、代表色の彩度および明度を有する色を、極性色とする。テンプレートデータ25の極性色表示部P5が、色取得部35が取得した極性色で表示されて、画像データ26が生成される。 The color acquisition unit 35 acquires the polarity hue value acquired by the acquisition unit 31 from the hue definition data 11. The color acquisition unit 35 also acquires the representative color (color) corresponding to the numerical name 23 extracted by the extraction unit 32 from the numerical name color data 12. If there is no record in the numerical name color data 12 that includes a numerical name that matches the numerical name 23, the representative color may be extracted from a record that includes a numerical name that is a synonym of the numerical name 23, or a record that includes a numerical name that is highly similar to the numerical name 23. If the hue of the representative color is within the range of the hue value acquired from the hue definition data 11, the color acquisition unit 35 sets the representative color as the polarity color. If the hue of the representative color is not within the range of the hue value acquired from the hue definition data 11, the color acquisition unit 35 changes the hue of the representative color to the hue value acquired from the hue definition data 11, and sets the color having the saturation and brightness of the representative color as the polarity color. The polarity color display section P5 of the template data 25 is displayed in the polarity color acquired by the color acquisition section 35, and image data 26 is generated.

色取得部35が取得する極性色の色相は、色相定義データ11において、取得部31が取得した極性の色相の値の範囲内であれば良い。 The hue of the polar color acquired by the color acquisition unit 35 may be within the range of the polar hue values acquired by the acquisition unit 31 in the hue definition data 11.

例えばテンプレートデータ25は、極性色表示部P5に、極性色表示部P5のそれぞれに表示する色を特定する識別子を対応づける場合、色取得部35は、極性色表示部P5で用いられる複数の色を取得する。複数の色のうちの一つの色が、極性色であって、それ以外の色が、極性色の色相を変更した色である。色取得部35は、極性色の色相をさらに変更した色を用いて、画像データ26を生成しても良い。テンプレートデータ25において、複数の極性色表示部P5がある場合、それぞれに色相のみが異なる色が表示されても良い。色取得部35は、極性色と、例えば極性色に対して色相を±30変更する色を取得することにより、極性色表示部P5が同系色で表示される。 For example, when the template data 25 associates the polarity color display section P5 with an identifier that specifies the color to be displayed in each polarity color display section P5, the color acquisition section 35 acquires multiple colors used in the polarity color display section P5. One of the multiple colors is the polarity color, and the other colors are colors in which the hue of the polarity color is changed. The color acquisition section 35 may generate the image data 26 using a color in which the hue of the polarity color is further changed. When the template data 25 has multiple polarity color display sections P5, colors that differ only in hue may be displayed in each section. The color acquisition section 35 acquires the polarity color and a color that changes the hue of the polarity color by ±30, for example, so that the polarity color display sections P5 are displayed in similar colors.

色取得部35が取得する色の色相の決定方法の一例を説明する。ここでは、テンプレートデータ25において、極性色表示部P5において3つの色を用いる場合を説明する。 An example of a method for determining the hue of a color acquired by the color acquisition unit 35 is described below. Here, a case is described in which three colors are used in the polarity color display unit P5 in the template data 25.

色取得部35は、まず、数値名23に対応する代表色(A)を、HSB色相環上にマッピングする。マッピング上の色を、A’と称する。A’を基準として、S(彩度)とB(明度)を代表色の彩度および明度に固定したまま、H(色相)が±120となるトライアドの色(B1,B2)、またはHが±90となるテトラードの色(C1、C2、C3)を取得する。次に色取得部35は、A’、B1、B2、C1、C2およびC3のうち、色相定義データ11において、取得部31が取得した極性22に対応する範囲に含まれる、一つの色を決定する。 The color acquisition unit 35 first maps the representative color (A) corresponding to the numerical value 23 onto the HSB hue wheel. The color on the mapping is called A'. Using A' as a reference, while fixing S (saturation) and B (lightness) to the saturation and lightness of the representative color, it acquires the colors of a triad (B1, B2) where H (hue) is ±120, or the colors of a tetrad (C1, C2, C3) where H is ±90. Next, the color acquisition unit 35 determines one color from A', B1, B2, C1, C2, and C3 that is included in the range corresponding to the polarity 22 acquired by the acquisition unit 31 in the hue definition data 11.

決定された一つの色をDとする。Dの彩度または明度が低い場合、Dを基準に選択される色も暗くなってしまう。そこで色取得部35は、Dの彩度の値の下限を50、明度の値の下限を60として、Dの色を調整しても良い。調整後の色をD’1とする。色取得部35は、D’1を基準に、2色選択する。例えば、色取得部35は、D’1の色相を、±30とした色(D’2,D’3)を取得する。ここで、D’1とD’2、およびD’1とD’3とのそれぞれの色相の差分を30としたが、差分の値は適宜設定されても良い。色取得部35は、D’1、D’2およびD’3を、極性色表示部P5を表示する色と決定する。出力部34は、極性色表示部P5を、D’1、D’2およびD’3で表示する。 Let D be the one color determined. If the saturation or brightness of D is low, the color selected based on D will also be dark. Therefore, the color acquisition unit 35 may adjust the color of D by setting the lower limit of the saturation value of D to 50 and the lower limit of the brightness value to 60. Let the adjusted color be D'1. The color acquisition unit 35 selects two colors based on D'1. For example, the color acquisition unit 35 obtains colors (D'2, D'3) with the hue of D'1 set to ±30. Here, the difference in hue between D'1 and D'2, and between D'1 and D'3 is set to 30, but the value of the difference may be set appropriately. The color acquisition unit 35 determines D'1, D'2, and D'3 as the colors to display the polarity color display unit P5. The output unit 34 displays the polarity color display unit P5 with D'1, D'2, and D'3.

図9を参照して、数値名23に対応する色が、カラーコード#6aaa30の場合に、色取得部35が取得する3つの色を説明する。ここで、極性22はポジティブであるとする。 Referring to FIG. 9, we will explain the three colors acquired by the color acquisition unit 35 when the color corresponding to the numerical name 23 is color code #6aaa30. Here, the polarity 22 is assumed to be positive.

色取得部35は、カラーコード#6aaa30を、HSB系(92,72,67)に変換する。色取得部35は、(92,72,67)を基準に、トライアド手法による2色(1, 72, 67), (211, 72, 67)および (311, 72, 67)と、テトラード手法による3色(181, 72, 67), (271, 72, 67), (1, 72, 67)を、極性色の候補とする。トライアド手法による2色(1, 72, 67), (211, 72, 67)および (311, 72, 67)の色相を、図9(a)に示す。テトラード手法による3色(181, 72, 67), (271, 72, 67), (1, 72, 67)の色相を、図9(b)に示す。 The color acquisition unit 35 converts the color code #6aaa30 into the HSB system (92,72,67). Based on (92,72,67), the color acquisition unit 35 sets two colors (1,72,67), (211,72,67), and (311,72,67) from the triad method and three colors (181,72,67), (271,72,67), and (1,72,67) from the tetrad method as candidates for polarity colors. The hues of the two colors (1,72,67), (211,72,67), and (311,72,67) from the triad method are shown in Figure 9 (a). The hues of the three colors (181, 72, 67), (271, 72, 67), and (1, 72, 67) calculated using the tetrad method are shown in Figure 9 (b).

本発明の実施の形態において、色相定義データ11でポジティブに対応づけられる色相は、0-135である。色取得部35は、極性色の候補として選択した6色のうち、色相が0-135の範囲に含まれる(92,72,67)および(1, 72, 67)から、極性色を選択する。色取得部35は、極性色として(92,72,67)を選択した場合、Hの値を±30した同系色(121, 72, 67), (61, 72, 67) を取得する。従って、極性色表示部P5は、図9(c)に示す(92,72,67)、(121, 72, 67)、または61, 72, 67)で着色される。 In the embodiment of the present invention, the hues that are positively associated in the hue definition data 11 are 0-135. The color acquisition unit 35 selects the polarity color from (92, 72, 67) and (1, 72, 67) whose hues are in the range of 0-135 among the six colors selected as candidates for the polarity color. When the color acquisition unit 35 selects (92, 72, 67) as the polarity color, it acquires similar colors (121, 72, 67) and (61, 72, 67) with H values of ±30. Therefore, the polarity color display unit P5 is colored with (92, 72, 67), (121, 72, 67), or 61, 72, 67) as shown in FIG. 9(c).

図10を参照して、本発明の実施の形態に係る画像生成装置1による画像生成方法を説明する。 With reference to Figure 10, an image generation method using the image generation device 1 according to an embodiment of the present invention will be described.

まずステップS1において画像生成装置1は、入力テキスト21と極性22を取得する。ステップS2において画像生成装置1は、入力テキスト21から、数値名23と数値表現24を抽出する。 First, in step S1, the image generating device 1 acquires the input text 21 and the polarity 22. In step S2, the image generating device 1 extracts the numerical name 23 and the numerical expression 24 from the input text 21.

ステップS3において画像生成装置1は、ステップS2で抽出した数値表現数などから、テンプレートデータ25を選択する。ステップS4において画像生成装置1は、ステップS2で抽出した数値名23に対応する色の色相を、ステップS1で取得した極性22に対応する色相の値に変更する。なお、ステップS2で抽出した数値名23に対応する色の色相が、ステップS1で取得した極性に対応づけられた色相の範囲内の場合、画像生成装置1は、数値名23に対応する色の色相を変更しなくても良い。 In step S3, the image generating device 1 selects template data 25 from the numerical expression number extracted in step S2, etc. In step S4, the image generating device 1 changes the hue of the color corresponding to the numerical name 23 extracted in step S2 to the hue value corresponding to the polarity 22 obtained in step S1. Note that if the hue of the color corresponding to the numerical name 23 extracted in step S2 is within the range of hues associated with the polarity obtained in step S1, the image generating device 1 does not need to change the hue of the color corresponding to the numerical name 23.

ステップS5において画像生成装置1は、ステップS3で選択したテンプレートデータ25に、ステップS2で抽出した数値表現24および数値名23を設定するとともに、ステップS4で色相が変更された色を用いて、画像データ26を生成する。 In step S5, the image generating device 1 sets the numerical representation 24 and numerical name 23 extracted in step S2 to the template data 25 selected in step S3, and generates image data 26 using the color whose hue was changed in step S4.

本発明の実施の形態にかかる画像生成装置1は、インフォグラフィックの画像データ26を生成するために必要な入力テキスト21を取得するとともに、ポジティブまたはネガティブが設定された極性22を取得する。極性22は、画像データ26を参照した人が、入力テキスト21に対してポジティブな感情を持つか、ネガティブな感情を持つかを示す。画像生成装置1は、極性22に従った色を用いた画像データ26を生成する。これにより画像データ26を参照した人は、画像データ26からポジティブまたはネガティブな感情を持ちやすい。また数値は、それを参照する人の立場によって、ポジティブかネガティブかが異なる。画像生成装置1は、インフォグラフィックを参照する人の立場に応じて、画像データ26を生成することができる。 The image generating device 1 according to an embodiment of the present invention acquires input text 21 necessary for generating image data 26 of an infographic, and also acquires polarity 22, which is set to positive or negative. Polarity 22 indicates whether a person who refers to the image data 26 has positive or negative feelings toward the input text 21. The image generating device 1 generates image data 26 using colors according to the polarity 22. As a result, a person who refers to the image data 26 is likely to have positive or negative feelings from the image data 26. Furthermore, the numerical value is positive or negative depending on the position of the person who refers to it. The image generating device 1 can generate image data 26 according to the position of the person who refers to the infographic.

また本発明の実施の形態において、極性22が入力される場合を説明したが、これに限らない。極性22の代わりに、画像データ26を参照する対象者が入力され、画像生成装置1が、極性22を判定しても良い。画像生成装置1は、対象者に、UPまたはDOWNの数値変化と極性を対応づけた極性辞書データ(図示せず)を参照して、入力された対象者と、抽出部32で判定した数値変化から、極性22を特定し、特定した極性22に従って、画像データ26を生成しても良い。 In the embodiment of the present invention, a case where polarity 22 is input has been described, but this is not limiting. Instead of polarity 22, a subject referring to image data 26 may be input, and image generating device 1 may determine polarity 22. Image generating device 1 may refer to polarity dictionary data (not shown) that associates a numerical change of UP or DOWN with a polarity for a subject, identify polarity 22 from the input subject and the numerical change determined by extraction unit 32, and generate image data 26 according to the identified polarity 22.

このように画像生成装置1は、より適切に、情報を視覚的に表現可能な画像データ26を生成することができる。 In this way, the image generating device 1 can generate image data 26 that can visually represent information more appropriately.

上記説明した本実施形態の画像生成装置1は、例えば、CPU(Central Processing Unit、プロセッサ)901と、メモリ902と、ストレージ903(HDD:Hard Disk Drive、SSD:Solid State Drive)と、通信装置904と、入力装置905と、出力装置906とを備える汎用的なコンピュータシステムが用いられる。このコンピュータシステムにおいて、CPU901がメモリ902上にロードされたプログラムを実行することにより、画像生成装置1の各機能が実現される。 The image generating device 1 of the present embodiment described above uses, for example, a general-purpose computer system including a CPU (Central Processing Unit, processor) 901, a memory 902, a storage 903 (HDD: Hard Disk Drive, SSD: Solid State Drive), a communication device 904, an input device 905, and an output device 906. In this computer system, the CPU 901 executes a program loaded on the memory 902, thereby realizing each function of the image generating device 1.

なお、画像生成装置1は、1つのコンピュータで実装されてもよく、あるいは複数のコンピュータで実装されても良い。また画像生成装置1は、コンピュータに実装される仮想マシンであっても良い。 Note that the image generating device 1 may be implemented in one computer, or in multiple computers. The image generating device 1 may also be a virtual machine implemented in a computer.

画像生成装置1のプログラムは、HDD、SSD、USB(Universal Serial Bus)メモリ、CD(Compact Disc)、DVD (Digital Versatile Disc)などのコンピュータ読取り可能な記録媒体に記憶することも、ネットワークを介して配信することもできる。 The program for the image generating device 1 can be stored on a computer-readable recording medium such as a HDD, SSD, USB (Universal Serial Bus) memory, CD (Compact Disc), or DVD (Digital Versatile Disc), or can be distributed via a network.

なお、本発明は上記実施形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。 The present invention is not limited to the above embodiment, and many variations are possible within the scope of the invention.

1 画像生成装置
11 色相定義データ
12 数値名色データ
13 数値変化定義データ
14 テンプレート定義データ
15 テンプレート群データ
21 入力テキスト
22 極性
23 数値名
24 数値表現
25 テンプレートデータ
26 画像データ
31 取得部
32 抽出部
33 選択部
34 出力部
35 色取得部
901 CPU
902 メモリ
903 ストレージ
904 通信装置
905 入力装置
906 出力装置
P1 数値表現表示部
P2 数値名表示部
P3 アイコン表示部
P4 パーセント表示部
P5 極性色表示部
REFERENCE SIGNS LIST 1 Image generating device 11 Hue definition data 12 Numerical value name color data 13 Numerical value change definition data 14 Template definition data 15 Template group data 21 Input text 22 Polarity 23 Numerical value name 24 Numerical value expression 25 Template data 26 Image data 31 Acquisition unit 32 Extraction unit 33 Selection unit 34 Output unit 35 Color acquisition unit 901 CPU
902 Memory 903 Storage 904 Communication device 905 Input device 906 Output device P1 Numerical expression display section P2 Numerical name display section P3 Icon display section P4 Percentage display section P5 Polarity color display section

Claims (6)

画像データにおいて、数を表す数値表現を描画する位置、前記数値表現の数値名を描画する位置、および極性色の位置を定義するテンプレートデータと、
色相を含む複数の要素で特定される色空間において、ポジティブの色相の値とネガティブの値を定義する色相定義データを記憶する記憶装置と、
入力テキストと、入力テキストに対する印象がポジティブおよびネガティブのいずれかの極性を取得する取得部と、
前記入力テキストから、数値表現および数値名を抽出する抽出部と、
前記テンプレートデータで定義された数値表現と数値名の位置に、前記抽出部が抽出した前記数値表現および前記数値名を描画し、
前記色相定義データから、前記取得部が取得した極性の色相の値を取得し、
前記数値名に対応する色の色相を、取得した色相の値に変更した色を、前記極性色の位置に設定して、画像データを出力する出力部
を備える画像生成装置。
template data defining, in the image data, a position at which a numerical expression representing a number is to be drawn, a position at which a numerical name of the numerical expression is to be drawn, and a position of a polarity color;
a storage device that stores hue definition data that defines positive and negative hue values in a color space that is specified by a plurality of elements including hue;
An acquisition unit that acquires an input text and an impression of the input text as either positive or negative;
an extraction unit for extracting numerical expressions and numerical names from the input text;
drawing the numerical expression and the numerical name extracted by the extraction unit at positions of the numerical expression and the numerical name defined in the template data;
obtaining a hue value of the polarity obtained by the obtaining unit from the hue definition data;
an output unit that changes the hue of the color corresponding to the numerical name to the acquired hue value, sets the resulting color in the position of the polarity color, and outputs image data.
前記出力部は、さらに前記極性色の色相を変更した色を用いて前記画像データを生成する
請求項1に記載の画像生成装置。
The image generating device according to claim 1 , wherein the output unit generates the image data by using a color obtained by changing a hue of the polarity color.
前記抽出部は、前記入力テキストにおける主語を、前記数値名として抽出する
請求項1または2に記載の画像生成装置。
The image generating device according to claim 1 , wherein the extraction unit extracts a subject in the input text as the numerical name.
前記抽出部は、前記入力テキストが複数の数値表現を含む場合、前記入力テキストにおける主語に関連する数値表現を抽出する
請求項1ないし3のいずれか1項に記載の画像生成装置。
The image generating device according to claim 1 , wherein, when the input text includes a plurality of numerical expressions, the extraction unit extracts a numerical expression related to a subject in the input text.
コンピュータが、画像データにおいて、数を表す数値表現を描画する位置、前記数値表現の数値名を描画する位置、および極性色の位置を定義するテンプレートデータと、
色相を含む複数の要素で特定される色空間において、ポジティブの色相の値とネガティブの値を定義する色相定義データを記憶するステップと、
前記コンピュータが、入力テキストと、入力テキストに対する印象がポジティブおよびネガティブのいずれかの極性を取得するステップと、
前記コンピュータが、前記入力テキストから、数値表現および数値名を抽出するステップと、
前記コンピュータが、前記テンプレートデータで定義された数値表現と数値名の位置に、前記抽出するステップで抽出した前記数値表現および前記数値名を描画し、
前記色相定義データから、前記取得するステップが取得した極性の色相の値を取得し、
前記数値名に対応する色の色相を、取得した色相の値に変更した色を、前記極性色の位置に設定して、画像データを出力するステップ
を備える画像生成方法。
A computer generates template data that defines, in the image data, a position at which a numerical expression representing a number is to be drawn, a position at which a numerical name of the numerical expression is to be drawn, and a position of a polarity color;
A step of storing hue definition data that defines positive and negative hue values in a color space specified by a plurality of elements including hue;
The computer acquires an input text and an impression of the input text, the impression being either positive or negative;
extracting numerical expressions and numerical names from the input text;
the computer draws the numerical expressions and numerical names extracted in the extracting step at positions of the numerical expressions and numerical names defined in the template data;
Obtaining a hue value of the polarity obtained in the obtaining step from the hue definition data;
a step of changing the hue of the color corresponding to the numerical name to the obtained hue value, setting the color in a position of the polarity color, and outputting image data.
コンピュータを、請求項1ないし請求項4のいずれか1項に記載の画像生成装置として機能させるためのプログラム。 A program for causing a computer to function as an image generating device according to any one of claims 1 to 4.
JP2021084883A 2021-05-19 2021-05-19 Image generating device, image generating method, and program Active JP7704401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021084883A JP7704401B2 (en) 2021-05-19 2021-05-19 Image generating device, image generating method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021084883A JP7704401B2 (en) 2021-05-19 2021-05-19 Image generating device, image generating method, and program

Publications (2)

Publication Number Publication Date
JP2022178243A JP2022178243A (en) 2022-12-02
JP7704401B2 true JP7704401B2 (en) 2025-07-08

Family

ID=84238826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021084883A Active JP7704401B2 (en) 2021-05-19 2021-05-19 Image generating device, image generating method, and program

Country Status (1)

Country Link
JP (1) JP7704401B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117953108B (en) * 2024-03-20 2024-07-05 腾讯科技(深圳)有限公司 Image generation method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001256555A (en) 2000-03-14 2001-09-21 Toshiba Tec Corp Product sales registration processor
JP2009271856A (en) 2008-05-09 2009-11-19 Toshiba Corp Securities order server, and securities order program
JP2011250206A (en) 2010-05-27 2011-12-08 Kyocera Corp Portable electronic apparatus and image projection unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001256555A (en) 2000-03-14 2001-09-21 Toshiba Tec Corp Product sales registration processor
JP2009271856A (en) 2008-05-09 2009-11-19 Toshiba Corp Securities order server, and securities order program
JP2011250206A (en) 2010-05-27 2011-12-08 Kyocera Corp Portable electronic apparatus and image projection unit

Also Published As

Publication number Publication date
JP2022178243A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
EP2741254B1 (en) Color determination device, color determination system, color determination method, information recording medium, and program
JP5259894B1 (en) Color name determination device, color name determination method, information recording medium, and program
Rai Identifying key product attributes and their importance levels from online customer reviews
US11379536B2 (en) Classification device, classification method, generation method, classification program, and generation program
WO2008106665A2 (en) Graph-based search leveraging sentiment analysis of user comments
WO2019049483A1 (en) Synonym dictionary creation device, synonym dictionary creation program, and synonym dictionary creation method
US6219665B1 (en) Retrieval menu creation device, a retrieval menu creation method, and a recording medium that stores a retrieval menu creation program
US20190303437A1 (en) Status reporting with natural language processing risk assessment
JP5331023B2 (en) Important word extraction device, important word extraction method, and important word extraction program
US20120046937A1 (en) Semantic classification of variable data campaign information
WO2023109323A1 (en) Subscription content processing method and apparatus, computer device and storage medium
JP7704401B2 (en) Image generating device, image generating method, and program
JP2016162357A (en) User emotion analysis apparatus and program for product
JP5138621B2 (en) Information processing apparatus, dissatisfied product discovery method and program
Madan et al. Parsing and summarizing infographics with synthetically trained icon detection
US11514060B2 (en) Support system, storage medium, and method for presenting relationships of items
JP2005128872A (en) Document retrieving system and document retrieving program
JP6506839B2 (en) Dissatisfied information processing device and system
US20210271637A1 (en) Creating descriptors for business analytics applications
JP6549173B2 (en) Computer system and text data search method
WO2024047997A1 (en) Document analysis device and program for document analysis
Yano et al. Labeling feature-oriented software clusters for software visualization application
JP2004070376A (en) Document display device and method therefor
JPWO2012101702A1 (en) UI (UserInterface) creation support apparatus, UI creation support method, and program
JP6957388B2 (en) Business term discrimination device and business term discrimination method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250204

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250402

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250619

R150 Certificate of patent or registration of utility model

Ref document number: 7704401

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150