<!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>TR Discover: A Natural Language Question Answering System for Interlinked Datasets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dezhao Song</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Frank Schilder</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Charese Smiley</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chris Brew</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tom Zielund</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hiroko Bretz</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Robert Martin</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chris Dale</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Steven Pomerville</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>John Duprey</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tim Miller</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Johanna Harrison</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Intellectual Property and Science</institution>
          ,
          <addr-line>Thomson Reuters, London</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Intellectual Property and Science</institution>
          ,
          <addr-line>Thomson Reuters, Philadelphia, PA 19130</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Research and Development</institution>
          ,
          <addr-line>Thomson Reuters, Eagan, MN 55123</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Research and Development, Thomson Reuters</institution>
          ,
          <addr-line>London</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Research and Development, Thomson Reuters</institution>
          ,
          <addr-line>Rochester, NY 14694</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We propose TR Discover, a question answering system that answers natural language questions over interlinked datasets. Using a feature-based grammar, TR Discover rst parses a natural language question to its First Order Logic representation, which is in turn translated into SPARQL or SQL. Because users will not necessarily know what the coverage of the system is, TR Discover o ers a novel auto-suggest mechanism that can help users to construct well-formed and useful natural language questions. We show that TR Discover is usable and portable by applying it to two Thomson Reuters datasets in the Life Science and the Legal domain respectively.</p>
      </abstract>
      <kwd-group>
        <kwd>Natural Language Interface</kwd>
        <kwd>Question Answering</kwd>
        <kwd>Featurebased Grammar</kwd>
        <kwd>Auto-Suggestion</kwd>
        <kwd>Analytics</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Non-technical domain experts (e.g., journalists and patent attorneys) can satisfy
their information needs through the use of keyword-based search which can be
applied uniformly to access information sources with disparate underlying logical
and physical structures. However, the result set returned from a keyword-based
search may be unwieldy and of limited relevance due to its di culty in capturing
a precise speci cation of the user's intent. Database query languages, on the other
hand, impose structure on the result set and can be used to provide dynamically
generated analytics with greater dexterity than less structured results coming
from keyword-based search. Still, the learning curve required to command such
languages may preclude their widespread adoption by domain experts.</p>
      <p>
        Our system, TR Discover, is designed to bridge the gap between
keywordbased search and structured query. Using TR Discover, the user writes questions
in natural language which are then mapped into a logic-based intermediate
language via a feature-based grammar with full formal semantics. Our auto-suggest
mechanism steers the user towards logically well-formed questions that are likely
to generate useful answers from the available databases. Next, the logical
representation of a natural language question is further translated into an executable
query (e.g., SPARQL or SQL) thereby allowing the system to use robust
existing querying technologies. TR Discover enjoys both the advantages of
keywordbased search and database query systems by allowing domain experts to use
natural language which they already know while retaining precision by
mapping from the logical formalism to the query language and generating useful
structured analytics. Please refer to our accepted full paper for in-depth
technical details [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. We will demonstrate TR Discover using the prototype system
available at http://cortellislabs.com (freely available after sign-up).
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>System Components</title>
      <p>Question Understanding. In TR Discover, we parse natural language
questions by adopting a feature-based context-free grammar (FCFG). Our FCFG
consists of a set of grammar rules that are used to understand the syntactic
structure of the questions. The vast majority of these rules are domain-independent,
and as such can be re-used when moving to a new domain. As shown below, G1
- G3 are a few sample grammar rules. Here, G3 indicates that a verb phrase
(VP ) may contain a verb (V ) followed by a noun phrase (NP ).</p>
      <p>G1: NP ! (N')
G2: NP! NP VP
G3: VP ! V NP
L1: N[type=patent, num=pl, sem=&lt; x.patent(x)&gt;] ! 'patents'
L2: V[type=[patent,org, le], sem=&lt; X x.X( y. le org patent(y,x))&gt;, NUM=?n] ! ' led by'
L3: V[type=[drug,molecule,target], NUM=?n] ! 'targeting'</p>
      <p>The lexicon is another component of our FCFG. Each lexical entry contains a
variety of domain-speci c semantic features which are used to restrict the number
of parses that a natural language question may have. In the above example, L1
represents the lexical entry for patents, and speci es its type and semantic
information, sem. Unlike nouns (L1 ), the type of verbs (L2 and L3 ) speci es
both the potential subject-type and object-type, and the predicate name, which
helps to lter out nonsensical questions like patents targeting Anticancer.</p>
      <p>Auto-suggest. Left on their own, users may not know how to begin
formulating questions for TR Discover. Therefore our system provides suggestions in
order to help users to build questions that are likely to be answerable. Unlike
Google's auto-completion that is based on query logs, our auto-suggest
mechanism provides suggestions computed based upon the entities and their
relationships in the dataset and by utilizing the linguistic constraints in our grammar.</p>
      <p>As a concrete example, after a user enters \Patents", we could suggest a verb
as the next part of the question. In our lexicon, we may have many verbs, such
as led by, granted by, developed by, utilizing, etc. Although they all satisfy the
grammatical constraints, i.e., they are verbs, only led by and granted by are
Natural Language Question Answering over Interlinked Datasets
valid suggestions, since the semantic constraints in our grammar specify that
only the subjects of these two verbs can be patents.</p>
      <p>
        FOL Translation and Query Execution. Given a completed natural
language question, our system rst parses it into a First Order Logic representation
(FOL). The FOL of a natural language question is further translated to other
executable queries (e.g., SPARQL and SQL). This intermediate logical
representation provides us the exibility to develop di erent query translators for
various types of data stores. There are two sub-steps for translating an FOL to
SPARQL/SQL. We rst parse the FOL into a parse tree according to an FOL
parser, implemented with ANTLR [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. This FOL parse tree is then translated
to executable queries. Finally, the translated queries are executed against their
corresponding data stores, i.e., a relational database for SQL queries and a Jena
TDB triple store [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] for SPARQL queries.
      </p>
      <p>The following example demonstrates the process of understanding a natural
language question and translating it to a SQL and SPARQL query via FOL:
Natural Language Question: Patents filed by Pfizer
FOL: all x.(patent(x) ! (file org patent(id01,x) &amp; type(id01,Company) &amp; label(id01,Pfizer)))
SQL Query: select patent.* from patent where patent.filed by = `Pfizer'
SPARQL Query:</p>
      <p>PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX example: &lt;http://www.example.com#&gt;
select ?x
where f
?id01 rdfs:label `Pfizer'.
?id01 rdf:type example:Company .
?x rdf:type example:Patent .
?x example:filed by ?id01 .
g</p>
      <p>
        Analytics. We provide an overview of the result set with descriptive
analytics. For instance, for the question \show me all patents led by P zer", we show
the distribution of the countries where P zer les their patents. In addition,
we perform named entity recognition (using the Stanford CoreNLP toolkit [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ])
on the Reuters News Archive (14 million articles), and also conduct sentiment
analysis on these news articles. By further linking the recognized companies to
those in our database, we show the frequency count of these companies and how
their sentiment analysis results change over time. This information may provide
further insights to users in order to support their own analyses.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Use Case and Demonstration Plan</title>
      <p>Figure 1 shows a sample query in progress: companies developing drugs having
a primary indication of . . . ? As the user types, the system o ers possible
completions to the question; the user then selects Cancer. The pie chart shows each
company's market share for cancer drugs. At the bottom of the gure, we display
news mentions and sentiment analysis for the most mentioned companies.</p>
      <p>Our demonstration of the TR Discover system will begin by motivating the
use of natural language question answering to uncover information assets found
in diverse, interlinked datasets. We will also illustrate the user's experience of
creating questions using guided auto-suggest. Finally, we will explore the resulting
analytics and visualizations for various natural language questions highlighting
how it allows deeper insights to be gleaned from the data.</p>
      <p>We will demonstrate TR Discover on two datasets in two di erent domains:
Life Science and Legal. Our Life Science dataset integrates data from di erent
sources: Thomson Reuters drug and patent data, and DrugBank. We interlinked
the datasets by matching on certain properties, e.g., company and drug names;
thus, relatively comprehensive information can be provided to the users.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bovet</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parr</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Antlrworks: an ANTLR grammar development environment</article-title>
          .
          <source>Software: Practice and Experience</source>
          <volume>38</volume>
          (
          <issue>12</issue>
          ),
          <volume>1305</volume>
          {
          <fpage>1332</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Carroll</surname>
            ,
            <given-names>J.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dickinson</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dollin</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reynolds</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Seaborne</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wilkinson</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Jena: implementing the semantic web recommendations</article-title>
          .
          <source>In: Proceedings of the 13th international conference on World Wide Web - Alternate Track Papers &amp; Posters</source>
          . pp.
          <volume>74</volume>
          {
          <issue>83</issue>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Manning</surname>
            ,
            <given-names>C.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Surdeanu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bauer</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Finkel</surname>
            ,
            <given-names>J.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bethard</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McClosky</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>The Stanford CoreNLP natural language processing toolkit</article-title>
          .
          <source>In: Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics</source>
          . pp.
          <volume>55</volume>
          {
          <issue>60</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Song</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schilder</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smiley</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brew</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zielund</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bretz</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martin</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dale</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Duprey</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Harrison</surname>
          </string-name>
          , J.: TR Discover:
          <article-title>A natural language question answering system for interlinked datasets</article-title>
          .
          <source>In: The 14th International Semantic Web Conference</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>