<!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>From Tale to Speech: Ontology-based Emotion and Dialogue Annotation of Fairy Tales with a TTS Output</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Christian Eisenreich</string-name>
          <email>eisenr@coli.uni-saarland.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jana Ott</string-name>
          <email>janao@coli.uni-saarland.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tonio Süßdorf</string-name>
          <email>tonios@coli.uni-saarland.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Christian Willms</string-name>
          <email>cwillms@coli.uni-saarland.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thierry Declerck</string-name>
          <email>thierry.declerck@dfki.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>German Research Center for Artificial Intelligence (DFKI), Language Technology Lab</institution>
          ,
          <addr-line>Stuhlsatzenhausweg 3, D-66123 Saarbrücken</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Saarland University, Computational Linguistics Department</institution>
          ,
          <addr-line>D-66041 Saarbrücken</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2011</year>
      </pub-date>
      <abstract>
        <p>In this demo and poster paper, we describe the concept and implementation of an ontology-based storyteller for fairy tales. Its main functions are (i) annotating the tales by extracting timeline information, characters and dialogues with corresponding emotions expressed in the utterances, (ii) populating an existing ontology for fairy tales with the previously extracted information and (iii) using this ontology to generate a spoken version of the tales. Common natural language processing technologies and resources, such as part-of-speech tagging, chunking and semantic networks have been successfully used for the implementation of the three tasks mentioned just above, including the integration of an open source text-to-speech system. The code of the system is publicly available.</p>
      </abstract>
      <kwd-group>
        <kwd>ontology</kwd>
        <kwd>natural language processing</kwd>
        <kwd>text-to-speech</kwd>
        <kwd>semanticnetwork</kwd>
        <kwd>fairy tale</kwd>
        <kwd>storytelling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The idea of developing an ontology-based storyteller for fairy tales was based on the
consideration of two previous works in the field of narrative text processing. The first
work is described in
        <xref ref-type="bibr" rid="ref7">(Scheidel &amp; Declerck, 2010)</xref>
        , which is about an augmented
Proppian1 fairy tale markup language, called Apftml, which we extended according to
the needs of our current work.
      </p>
      <p>
        Our second starting point is described in
        <xref ref-type="bibr" rid="ref8">(Declerck et al., 2012)</xref>
        , which presents an
ontology-based system that is able to detect and recognize the characters
(participants) playing a role in a folktale. Our system combines and extends the results of
those studies, adding the detection of dialogues and emotions in the tales and an
ontology-driven Text-To-Speech (TTS) component that “reads” the tales, with individ
ual voices for every character, including also a voice for the narrator, and taking into
account the types of emotions detected during the textual processing of the tales.
      </p>
      <p>To summarize: Our system first parses the input tale (in English or German) and
extracts as much relevant information as possible on the characters – including their
emotions -- and the events they are involved in. This provides us with an annotated
version of the tale that is used for populating the ontology. The system finally uses the
ontology and a robust and parameterizable TTS system to generate the speech output.</p>
      <p>All the data of the system have been made available in a bitbucket repository
(https://bitbucket.org/ceisen/apftml2repo), including documentation and related
information2.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Architecture of the System</title>
      <p>Firstly, we use the Python NLTK3 and Pattern API4 to annotate the tale. Then we use
the Java OWL-API5 to populate the ontology. And finally the Mary Text-To-Speech
system6 is used to generate the speech output. Mary is an open-source, multilingual
Text-to-Speech Synthesis platform, which is robust, easy to configure and allows us
to extend our storyteller to more languages. The general architecture of the system is
displayed below in Fig. 1.</p>
    </sec>
    <sec id="sec-3">
      <title>The Ontology Population</title>
      <p>
        The ontology we use is an extension of the one presented in
        <xref ref-type="bibr" rid="ref8">(Declerck et al., 2012)</xref>
        ,
which describes basically family structures among human beings, but also a small list
of extra-natural beings. In the extended version of the ontology we include also
temporal information (basically for representing the mostly linear structure of the
narrative) as well as dialogue structures, including the participants involved in the
dialogues (sender(s) and receivers(s)), whereas we give special attention also to the
narrator  of  the  tale,  since  this  “character”  is  also  giving  relevant  informati on about the
status of the characters in the tales, including their emotional state. Dialogues are
synchronized with the linear narrative structure. Detected emotions are also included
in the populated ontology, and are attached for the time being to utterances, and will
be attached in the future to the characters directly. The Mary TTS system is accessing
all this information in order to parameterize the voices that are attached to each
detected characters.
      </p>
    </sec>
    <sec id="sec-4">
      <title>A Gold Standard</title>
      <p>In order to support evaluation of the automated annotation of fairy tales with our
integrated set of tools 5 fairy tales have been manually annotated7. The tales are “The
Frog Prince”, “The Town Musicians of Bremen”, “Die  Bremer  Stadt  Musika nten” 
(the German original version), “The Magic Swan Geese ” and  “Rumpelstiltskin”.</p>
      <p>The annotation examples show the different steps involved in the system: the text
analysis, the temporal segmentation, the recognition of the characters and the
dialogues they are involved in, the emotions that are attached to the utterances and
delivered during speech the story in near real time.</p>
    </sec>
    <sec id="sec-5">
      <title>Summary and Outlook</title>
      <p>We have designed and implemented in the field of fairy tales an ontology-based
emotion- and dialogue annotation system with speech output. The system provides robust
results for the tested fairy tales. While the annotation and ontology population
processes are working for both English and German texts, the TTS output is for the time
being optimized for the English language.</p>
      <p>Future work can deal with adding a graphical user interface, extending the parsing
process for annotating tales in other languages and populating the ontology with more
information, like the Proppian functions.
7</p>
      <p>The manually annotated tales, together with the annotation schema, are available at
https://bitbucket.org/ceisen/apftml2repo/src/763c5eb533f09997e757ec61652310c74223838
4/soproworkspace/SoPro13Java/gold/?at=master</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Horridge</given-names>
            <surname>Matthew</surname>
          </string-name>
          and Bechhofer
          <string-name>
            <surname>Sean</surname>
          </string-name>
          (
          <year>2011</year>
          ).
          <article-title>The owl api: A java api for owl ontologies</article-title>
          IOS Press, IOS Press volume
          <volume>2</volume>
          number
          <issue>1</issue>
          ,
          <fpage>11</fpage>
          --
          <lpage>12</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Schröder</given-names>
            <surname>Marc</surname>
          </string-name>
          and Trouvain
          <string-name>
            <surname>Jürgen</surname>
          </string-name>
          (
          <year>2003</year>
          ).
          <article-title>The German text-to-speech synthesis system MARY: A tool for research, development and teaching</article-title>
          . Springer:
          <source>International Journal of Speech Technology</source>
          , volume
          <volume>6</volume>
          number
          <issue>4</issue>
          ,
          <fpage>365</fpage>
          -
          <lpage>377</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Marcela</given-names>
            <surname>Charfuelan</surname>
          </string-name>
          and Ingmar
          <string-name>
            <surname>Steiner</surname>
          </string-name>
          (
          <year>2013</year>
          ).
          <article-title>Expressive speech synthesis in MARY TTS using audiobook data and EmotionML</article-title>
          .
          <source>ISCA: Proceedings of Interspeech 2013</source>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Steven</given-names>
            <surname>Bird</surname>
          </string-name>
          , Ewan Klein, and
          <string-name>
            <surname>Edward Loper</surname>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Natural Language Processing with Python--- Analyzing Text with the Natural Language Toolkit</article-title>
          ..
          <string-name>
            <surname>O'Reilly</surname>
            <given-names>Media</given-names>
          </string-name>
          , (http://www.nltk.org/book/)
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Ekman</given-names>
            <surname>Paul</surname>
          </string-name>
          (
          <year>1999</year>
          ). Emotions In T. Dalgleish and T. Power (Eds.)
          <source>The Handbook of Cognition and Emotion Pp</source>
          .
          <volume>45</volume>
          -
          <fpage>60</fpage>
          . Sussex, UK: John Wiley \&amp; Sons, Ltd.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>De</surname>
            <given-names>Smedt</given-names>
          </string-name>
          , Tom and Daelemans,
          <string-name>
            <surname>Walter</surname>
          </string-name>
          (
          <year>2012</year>
          ).
          <article-title>Pattern for python</article-title>
          .
          <source>The Journal of Machine Learning Research</source>
          , volume{
          <volume>13</volume>
          } nr.
          <volume>1</volume>
          <fpage>2063</fpage>
          --
          <lpage>2067</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Scheidel</given-names>
            <surname>Antonia</surname>
          </string-name>
          and Declerck
          <string-name>
            <surname>Thierry</surname>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>Apftml-augmented proppian fairy tale markup language</article-title>
          .
          <source>First International AMICUS Workshop on Automated Motif Discovery in Cultural Heritage and Scientific Communication Texts</source>
          .. Szeged University, volume
          <volume>10</volume>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Declerck</given-names>
            <surname>Thierry</surname>
          </string-name>
          , Koleva Nikolina and
          <string-name>
            <given-names>Krieger</given-names>
            <surname>Hans-Ulrich</surname>
          </string-name>
          (
          <year>2012</year>
          ).
          <article-title>Ontology-based incremental annotation of characters in folktales Association for Computational Linguistics</article-title>
          .
          <source>Proceedings of the 6th Workshop on Language Technology for Cultural Heritage</source>
          ,
          <source>Social Sciences, and Humanities</source>
          ,
          <fpage>30</fpage>
          --
          <lpage>34</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Propp</surname>
            <given-names>V.Y.</given-names>
          </string-name>
          <article-title>Morphology of the Folktale</article-title>
          . Leningrad,
          <year>1928</year>
          ; English: The Hague: Mouton,
          <year>1958</year>
          ; Austin: University of Texas Press,
          <year>1968</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Inderjeet Mani: Computational Modeling of Narrative.
          <source>Synthesis Lectures on Human Language Technologies</source>
          , Morgan &amp; Claypool Publishers 2012.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>