<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>An OntologyBased Approach to TexttoPicture Synthesis Systems</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dmitry Ustalov</string-name>
          <email>dmitry@eveel.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aleksandr Kudryavtsev</string-name>
          <email>vt@dpt.ustu.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ural Federal University</institution>
          ,
          <addr-line>Yekaterinburg</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>94</fpage>
      <lpage>101</lpage>
      <abstract>
        <p>In this paper, we present an ontologybased approach to texttopicture synthesis. Our approach operates with an ontology in the RDF/XML format. This provides loose coupling of the system components, unication of the interacting objects representation and their behaviour, and makes possible verication of system information resources. In TTP systems, every processing stage strongly depends on many information resources, including:</p>
      </abstract>
      <kwd-group>
        <kwd>texttopicture</kwd>
        <kwd>texttoscene</kwd>
        <kwd>natural language processing</kwd>
        <kwd>depiction rules</kwd>
        <kwd>semantic representation</kwd>
        <kwd>Web Ontology Language</kwd>
        <kwd>Resource Description Framework</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        A picture is worth of a thousand words. The texttopicture synthesis problem is
actual because of existence of many domains where clearness of textual
information is necessary: foreign language learning [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], trac accident visualization [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
rehabilitation of people with cerebral injuries [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], etc.
      </p>
      <p>
        Utkus [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is a texttopicture synthesis system (TTP system) that is
developed since 2011 and is designed to work with small texts of 13 Russian
sentences: fragments from children literature, microblog posts, news summaries,
comments on Websites. These texts are suitable for automatic processing and
further visualization [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. The current work diers from previous TTP systems
in its focus on conveying the gist of general, semantically unrestricted Russian
language text.
      </p>
      <p>
        TTP systems have three stages of processing [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]:
1. A stage of linguistic analysis tokenization, morphological and syntactic
parsing, obtaining the semantic representation of the input text;
2. A stage of depictors generation generation of the set of graphical depictors
that corresponds with obtained semantic representation;
3. A stage of picture synthesis construction of vector or raster image from the
graphical primitives that are positioned following the generated depictors.
      </p>
      <p>Thesaurus that containts words and their relations (synonymy, hyponymy,
etc);
Gallery that contains dierent graphical primitives for interacted objects
(actors), which becomes rendered in the nal images;
Depiction rules that dene how one or many actors can be depicted into the
nal images;
Frames, which describe allowed properties of actors.</p>
      <p>The volume and complexity of these resources are high. Therefore, TTP
systems must have a straight way to connect such resources during the text
processing.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related works</title>
      <p>
        There are several fullfunctional analogues that are described in various
papers [
        <xref ref-type="bibr" rid="ref1 ref11 ref13 ref2 ref4 ref5">1, 2, 4, 5, 11, 13</xref>
        ]. Unfortunately, an approach to unication the information
resources is presented only in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. That paper presented the WordsEye system,
which builds 3D scenes by with certain descriptive English sentences, e.g., The
huge head is on the tan horse. The horse is on the extremely tall mountain range.
The fence is 10 feet behind the horse. The fence is 50 feet long.
      </p>
      <p>The following desicions are made in the WordsEye system:
1. WordNet thesaurus is used to identify the semantic relations between
separate words;
2. During the text processing, specially dened frames are mapped into the
found syntactic groups to obtain additional information about actors: colour,
size, etc;
3. Behaviour that is implemented in known actions (verbs), and is described in
depiction rules, which are dened in a declarationstyle Lisp program;
4. A proprietary Izware Mirai 3D animation system is used with Viewpoint
Model Library to perform visualization problem.</p>
      <p>
        Note two signicant drawbacks of these decisions:
1. Despite of rich possibilities of the Lisp programming language, usage of this
language complicates the replenishment of depiction rules set because of high
requirements of developers experience;
2. Work in 3D demands considerable eorts and resources, which are not
justied by nal quality: in most cases, it is enough to deal with 2D images [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Suggested approach</title>
      <p>
        Similarly to [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], we consider actors in terms of object paradigm:
1. Actors have properties: colour, etc;
2. Actors have methods: functions that reect actors relations:
etc.
to fall, to lay,
      </p>
      <p>We propose to formalize into an ontology all the knowledge about actors:
their possible characteristics and relations. We also propose to split the
ontology, thesaurus, depiction rules and gallery to provide loose coupling of these
components of the TTP system (Fig. 1, 2):</p>
      <p>Words and their semantic relations are represented in a thesaurus;
Several gures from gallery can be associated with each word in thesaurus:
despite words tomcat and cat are antonymes by gender, they both are
hyponymes to word animal ;
Ontology has the class Actor, and instances of this class are linked to synsets
in thesaurus. Therefore, for every set of synsets an Actor instance can be
dened by correspondent properties;
There are dened object properties for Actor instances. These object
properties are associated with verb synsets in thesaurus and represent all possible
relations among actors (i.e., fall(actor) and fallTo(actor1 actor2) );
Also, there data properties are dened and represent dierent parameters of
actors (e.g., colour);
Depiction rules that specify the behaviour of each object property (Fig. 2)
are dened in a separate XML document.</p>
      <p>Elements of ontology are linked to thesaurus synsets using the OWL
annotation mechanism. It is important to note that one element can be linked to many
synsets. These synsets can belong to thesauri of dierent language because of
internationalization method that is implemented in OWL.
3.1</p>
      <p>Examples
The Actor class is a direct subclass of the Thing class:
&lt;owl:Class
rdf:about="http://utkus.eveel.ru/World.owl#Actor"/&gt;</p>
      <p>Instances of the Actor class (Fig. 3) can be linked to synsets using OWL
annotations:
&lt;owl:NamedIndividual
rdf:about="http://utkus.eveel.ru/World.owl#Man"&gt;
&lt;rdf:type</p>
      <p>rdf:resource="World.owl#Actor"/&gt;
&lt;synset xml:lang="ru"&gt;2039&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;2040&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;238&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;6939&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;75&lt;/synset&gt;
&lt;/owl:NamedIndividual&gt;</p>
      <p>Object properties are also dened for the Actor class, and they represent all
the predicates that are operated by the system. Object properties are connected
with depiction rules that specify their behaviour.</p>
      <p>Equivalence relation is possible between object properties. In our approach,
the SPOtriples 1 (fall man) and (fall man chair) will be attributed to
different object properties : fall and fallTo.</p>
      <sec id="sec-3-1">
        <title>1 SPO a tuple of predicate, subject, and object.</title>
        <p>&lt;owl:ObjectProperty
rdf:about="http://utkus.eveel.ru/World.owl#fall"&gt;
&lt;synset xml:lang="ru"&gt;106&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;397&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;406&lt;/synset&gt;
&lt;rdfs:domain</p>
        <p>rdf:resource="World.owl#Actor"/&gt;
&lt;owl:equivalentProperty</p>
        <p>rdf:resource="World.owl#fallTo"/&gt;
&lt;/owl:ObjectProperty&gt;
&lt;owl:ObjectProperty
rdf:about="http://utkus.eveel.ru/World.owl#fallTo"&gt;
&lt;synset xml:lang="ru"&gt;106&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;397&lt;/synset&gt;
&lt;synset xml:lang="ru"&gt;406&lt;/synset&gt;
&lt;rdfs:domain</p>
        <p>rdf:resource="World.owl#Actor"/&gt;
&lt;rdfs:range</p>
        <p>rdf:resource="World.owl#Actor"/&gt;
&lt;/owl:ObjectProperty&gt;</p>
        <p>To represent detected object properties on the nal picture, it is necessary
to assign the specic behaviour to each known object property. This behaviour
is specied by depiction rules which are declared in a separate XML document.
For the fallTo object property we have the following depiction rule :
&lt;rule rdf:about="http://utkus.eveel.ru/World.owl#fallTo"&gt;
&lt;rotate&gt;
&lt;yield id="subject" /&gt;
&lt;yield id="object" /&gt;
&lt;/rotate&gt;
&lt;together&gt;
&lt;yield id="subject" /&gt;
&lt;yield id="object" /&gt;
&lt;/together&gt;
&lt;/rule&gt;</p>
        <p>In this example, the subject and object of the predicate would be put together,
and the subject will be diverted onto object.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Implementation</title>
      <p>
        The Utkus prototype under discussions was written on the Ruby programming
language:
1. Link Grammar for Russian syntactic parser [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] is used because of its
avalibility and easy parseable format;
2. Only verb phrases and related noun phrases are extracted from the
dependency tree of each sentence of the source text. These syntactic groups are
mapped into the SPOtriplets;
3. Ontology is dened in the RDF/XML format using the Proteeg editor;
4. There are only synsets in our Russian dictionary [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]: no hyponyms, etc;
5. Gallery is composed by sprites from The Noun Project [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] collection. These
sprites are cropped, rasterized, and associated with noun synsets;
6. Final rendering is performed using GD2 library in form of PNG raster images
of 640 480.
      </p>
      <p>As example, there are four images that been generated by Utkus system. With
a view of place economy, these images been cropped. These images (Fig. 4(a),
4(b), 4(c), 4(d)) are correspond to texts:</p>
      <sec id="sec-4-1">
        <title>1. A man has fallen into the re 2; 2. Several houses 3; 3. There are a man and a woman in the house 4; 4. A certicate, a bear, a rain 5.</title>
        <p>It should be noted that Utkus system is unable to represent plural words
(Fig. 4(b)) at this moment.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>We have presented the approach to organize the TTP system information
resources. This approach provides loose coupling of ontology, thesaurus, gallery
and depiction rules.</p>
      <p>Main advantages of this approach are:</p>
      <sec id="sec-5-1">
        <title>2 ºŒ º ª, in Russian.</title>
        <p>3 ˝aeŒºŒ , in Russian.
4 ´ ıŁºŁae Ł Ł øŁ, in Russian.
5 ae, , , in Russian.
(a) A man has fallen into the
re</p>
        <p>(b) Several houses
(c) A certicate, a bear, a rain
(d) There are a man and a
woman in the house
1. Simplicity of development and modication all the information resources
that are used by TTP system:</p>
        <p>Ontology can be modied with any available ontology editor (e.g.,
Proteeg);
Depiction rules can be edited with any text editor, or any XML editor;
Thesaurus and gallery data can be modied as any data in relational
database (in our implementation, PostgreSQL is used).
2. RDF/XML ontology allows one to reuse these resources in other applications
and domains;
3. Verication instruments (such as inference systems) can help us to control
the quality of information resources.</p>
      </sec>
      <sec id="sec-5-2">
        <title>We have several reasons for future work:</title>
        <p>Acknowledgements. Authors would like to thank the Institute of Mathematics
and Mechanics UrB RAS for the provided computer equipment.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Akerberg</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Svensson</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schulz</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nugues</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>CarSim: an automatic 3D text-to-scene conversion system applied to road accident reports</article-title>
          .
          <source>In: Proceedings of the 10th Conference on European Chapter of the Association for Computational LinguisticsVolume 2</source>
          . pp.
          <fpage>191194</fpage>
          .
          <article-title>Association for Computational Linguistics (</article-title>
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Coyne</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sproat</surname>
          </string-name>
          , R.:
          <article-title>Wordseye: an automatic text-to-scene conversion system</article-title>
          .
          <source>In: Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques</source>
          . pp.
          <fpage>487496</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Fomichov</surname>
          </string-name>
          , V.:
          <article-title>A comprehensive mathematical framework for bridging a gap between two approaches to creating a meaning-understanding web</article-title>
          .
          <source>International Journal of Intelligent Computing and Cybernetics</source>
          <volume>1</volume>
          (
          <issue>1</issue>
          ),
          <volume>143163</volume>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dyer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Toward text-to-picture synthesis</article-title>
          .
          <source>In: NIPS 2009 Mini-Symposia on Assistive Machine Learning for People with Disabilities</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chua</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Word2image: Towards visual interpretation of words</article-title>
          .
          <source>In: The 16th ACM International Conference on Multimedia</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>6. Link Grammar for Russian, http://slashzone.ru/parser/</mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>7. NounProject, http://thenounproject.com</mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Russian</given-names>
            <surname>Wordnet</surname>
          </string-name>
          , http://www.wordnet.ru
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Russian</given-names>
            <surname>Language</surname>
          </string-name>
          <string-name>
            <surname>Dictionaries</surname>
          </string-name>
          , http://speakrus.ru/dict/index.htm
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Utkus</surname>
          </string-name>
          , http://utkus.eveel.ru
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Yamada</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yamamoto</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ikeda</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nishida</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Doshita</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Reconstructing spatial image from natural language texts</article-title>
          .
          <source>In: Proceedings of the 14th Conference on Computational LinguisticsVolume 4</source>
          . pp.
          <fpage>12791283</fpage>
          .
          <article-title>Association for Computational Linguistics (</article-title>
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Yoshii</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Flaitz</surname>
          </string-name>
          , J.:
          <article-title>Second language incidental vocabulary retention: The eect of text and picture annotation types</article-title>
          .
          <source>CALICO journal 20(1)</source>
          ,
          <volume>3358</volume>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Zhu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eldawy</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dyer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Strock</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>A text-to-picture synthesis system for augmenting communication</article-title>
          .
          <source>In: Proceedings of the National Conference on Articial Intelligence</source>
          . vol.
          <volume>22</volume>
          , p.
          <fpage>1590</fpage>
          . Menlo Park, CA; Cambridge, MA; London; AAAI Press; MIT Press;
          <year>1999</year>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>