<!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>OKgraph: Unsupervised Structured Data Extraction from Plain Text (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Maurizio Atzori∗</string-name>
          <email>atzori@unica.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Simone Balloccu</string-name>
          <email>s.balloccu@studenti.unica.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrea Bellanti</string-name>
          <email>a.bellanti@studenti.unica.it</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Emanuele Mameli</string-name>
          <email>e.mameli@studenti.unica.it</email>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefano Raimondo Usai</string-name>
          <email>s.usai16@studenti.unica.it</email>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Math/CS, University of Cagliari</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Math/CS, University of Cagliari</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Math/CS, University of Cagliari</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Department of Math/CS, University of Cagliari</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Department of Math/CS, University of Cagliari</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this report we introduce OKgraph, a software library for (open) Knowledge Graph extraction from free text. Named after a two-year project where we studied and developed unsupervised algorithms addressing tasks related to taxonomy learning, the library contains NLP tools powered by these results.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>As introduced in [1], OKgraph has been a two-year project funded
by Regione Autonoma della Sardegna focused on investigating the
fundamental relationship between unstructured data (natural
language text) and structured data (graphs representing knowledge),
eventually leading to an autonomous way of inferring the latter
from the former. In this short abstract we introduce the main
outcome of our research, a library named after the project that learns
meaningful graph triples autonomously from scratch, that is, from
non-annotated free text such as Wikipedia. We followed a statistical
approach, focusing on a number of subtasks described next.</p>
    </sec>
    <sec id="sec-2">
      <title>THE LIBRARY</title>
      <p>OKgraph is a python3 library that performs unsupervised
naturallanguage understanding (NLU). It currently addresses the following
tasks:
• Set Expansion (or co-hyponyms discovery): given one or
a short set of words, continues this set with a list of other
"same-type" words (co-hyponyms)
• Relation Expansion: given one or a short set of word pairs,
continues this set with a list of pairs having the same implicit
relation of the given pairs
∗contact author. Supported in part by Sardegna Ricerche (CRP 120) and MIUR PRIN
project HOPE - High quality Open data Publishing and Enrichment.
• Set Labeling (or hypernym discovery): given one or a short
set of words, returns a list of short strings (labels) describing
the given set (its type or hypernym)
• Relation Labeling: given one or a short set of word pairs,
returns a list of short strings (labels) describing the relation
in the given set.</p>
      <p>Being unsupervised, it only takes a free (untagged) text corpus as
input, in any space-separated language. Scriptio-continua corpora
and languages needs third-party tokenization techniques.
3</p>
    </sec>
    <sec id="sec-3">
      <title>SET EXPANSION</title>
      <p>Given a small set of words it will expand it with “same type" words:
{Italy, France, Germany}</p>
      <p>
        ↓
{Spain, Denmark, Belдium...}
In terms of graphs and taxonomy, the set expansion task is intended
to get co-hyponyms (i.e., node siblings) from an initial set. It is
crucial in graph construction, as it basically provides list of
sametype nodes. We focused on singleton expansion [2], that expanding
a set with cardinality 1, exploiting word embeddings similarity, and
transitivity and symmetry of the same-as relation, that is:
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) Simmetric: given two co-hyponyms, their vectors should
be simmetrically near.
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) Transitive: given three co-hyponyms transitivity should
hold. For example given (Italy, Germany, Spain) if Italy is
near Germany and Spain, then Germany must be near Spain.
On the opposite given (Italy, Rome, Germany) we find that
Rome breaks the bond with Germany.
      </p>
      <p>The Set Expansion algorithms were evaluated by using 10-words
sets belonging to a fixed number of categories; the testset was
manually tagged and we obtained a significant improvement w.r.t.
standard word2vec similarity:</p>
      <sec id="sec-3-1">
        <title>Method NNS DEPTH 2WC</title>
        <p>T5M
At the time of writing OKgraph is the only library which is known
to perform singleton expansion.
We are also studying the problem of finding optimal vectors for
hypernyms whose neighbours represents all hyponyms, using the
powell optimization method with promising results.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>RELATION EXPANSION</title>
      <p>Given one or a set of word pairs will expand it with a list of pairs
having the same implicit relation:
{(Italy, Rome), (Germany, Berlin)}</p>
      <p>↓
{(Spain, Madrid), (France, Paris)...}</p>
      <p>This task is needed to extract edges connecting nodes in the
ifnal knowledge graph. We exploit set expansion results over the
two diferent dimensions of the pairs, and also linearity of word
embeddings, computing the centroid of (Rome −Italy) and (Berlin −
Germany), representing the vector direction of the edge “being
capital of".
5</p>
    </sec>
    <sec id="sec-5">
      <title>SET LABELING (HYPERNYM DISCOVERY)</title>
      <p>
        The Set Labeling task is currently under testing and will be
introduced in the library shortly. Given one or a set of words, returns a
list of short strings (labels) describing the given set:
{apple, pear , pineapple } → { f ruit , f ood ...}
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
This task allows the system to autonomously learn the taxonomy
from the text. This translates into a possible enhancement of the
other tasks. Again, we exploit word embeddings with the following
heuristics:
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) Given a certain set S of words, and a set of potential labels,
the hypernyms should have a very low variance, in terms of
cosine similarity, with S.
      </p>
      <p>
        (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) Hypernyms should also be more frequent than co-hyponyms.
We evaluated our unsupervised approach using the SemEval 2018
Task 9[3] benchmark, outperforming all others unsupervised
algorithms and some supervised ones on all of the general-purpose
corpora (1A, 1B, 1C). The following table shows the evaluation
results on 1A corpus for the given task:
      </p>
      <sec id="sec-5-1">
        <title>Method</title>
        <p>CRIM r1</p>
        <p>CRIM r2</p>
        <p>MSCG-SANITY r1
vanillaTaxoEmbed (baseline)</p>
        <p>NLP HZ
MSCG-SANITY r2
300-sparsians r1
OKgraph Set Labeling
300-sparsians r2
MFH (baseline)</p>
        <p>SJTU BCMI</p>
        <p>Team 13</p>
        <p>Apollo r2
apsyn (baseline) r1
balapinc (baseline) r1</p>
        <p>Apollo r1
slqs (baseline)
superv.</p>
        <p>✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
6</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>RELATION LABELING</title>
      <p>Given one or a short set of word pairs, returns a list of short strings
(labels) describing the relation in the given set:
{(Italy, Rome), (France, Paris)}</p>
      <p>↓
{(capital, soccer team...)}</p>
      <p>
        This task is important to automatically label edges in a graph.
The desired relationships cannot be obtained by the use of classic
means provided by the NLP and a classical text analysis would lead
to a high number of false positives. To obtain an efective Relation
Labeling algorithm, diferent statistical and linguistic knowledge
have been used:
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) Relative frequency: given a sentence that contains the
two entities of interest ("window"), the whole text frequency
serves stopwords removal, and windows frequency helps
labels discovery.
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) Windows parameterization: too large windows introduces
noise, the opposite situation lead to information loss.
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) Window dynamisation: adoption of a variable distance
between windows leads to better results.
      </p>
      <p>The Relation Labeling algorithm works both on single and
multiple pairs, through a logarithmic ranking that made it possible to
evaluate the system on a manually tagged testset.</p>
      <p>In order to evaluate the algorithm performance we used a set of 20
pairs for a fixed number of categories and evaluated the P@K for
each one. The following table shows our evaluation results:</p>
      <sec id="sec-6-1">
        <title>Category</title>
        <p>cities/states
soccer player/teams
currencies/countries
founders/company
singers/groups</p>
        <p>Total
P@1
35.00
0.00
10.00
10.00
0.00
11.0</p>
        <p>P@5
65.00
30.00
25.00
65.00
60.00
49.00</p>
        <p>P@10
80.00
30.00
75.00
70.00
80.00
76.00</p>
        <p>P@15
85.00
40.00
85.00
70.00
90.00
74.00</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>CONCLUSIONS</title>
      <p>We introduced OKgraph, a set of tools developed for Open
Knowledge Graph extraction from free (plain) text. Our opensource
software library will be available for download at https://github.com/
okgraph</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Maurizio</given-names>
            <surname>Atzori</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>The Need of Structured Data: Introducing the OKgraph Project</article-title>
          .
          <source>In Proceedings of the 8th Italian Information Retrieval Workshop</source>
          , Lugano, Switzerland, June 05-07,
          <year>2017</year>
          .
          <source>(CEUR Workshop Proceedings)</source>
          , Vol.
          <year>1911</year>
          . CEURWS.org,
          <volume>121</volume>
          -
          <fpage>124</fpage>
          . http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>1911</volume>
          /22.pdf
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Maurizio</given-names>
            <surname>Atzori</surname>
          </string-name>
          , Simone Balloccu, and
          <string-name>
            <given-names>Andrea</given-names>
            <surname>Bellanti</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Unsupervised Singleton Expansion from Free Text</article-title>
          .
          <source>In 12th IEEE International Conference on Semantic Computing, ICSC</source>
          <year>2018</year>
          , Laguna Hills, CA, USA, January 31 - February 2,
          <year>2018</year>
          . IEEE Computer Society,
          <fpage>180</fpage>
          -
          <lpage>185</lpage>
          . https://doi.org/10.1109/ICSC.
          <year>2018</year>
          .00033
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>José</given-names>
            <surname>Camacho-Collados</surname>
          </string-name>
          , Claudio Delli Bovi, Luis Espinosa Anke, Sergio Oramas, Tommaso Pasini, Enrico Santus, Vered Shwartz, Roberto Navigli, and
          <string-name>
            <given-names>Horacio</given-names>
            <surname>Saggion</surname>
          </string-name>
          .
          <year>2018</year>
          . SemEval-2018 Task 9:
          <string-name>
            <given-names>Hypernym</given-names>
            <surname>Discovery</surname>
          </string-name>
          .
          <source>In Proceedings of The 12th International Workshop on Semantic Evaluation, SemEval@NAACL-HLT</source>
          <year>2018</year>
          , New Orleans, Louisiana, USA, June 5-6,
          <year>2018</year>
          . Association for Computational Linguistics,
          <fpage>712</fpage>
          -
          <lpage>724</lpage>
          . https://aclanthology.info/papers/S18-1115/s18-
          <fpage>1115</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>