<!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>Author Verification Using Syntactic N-grams</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Computing Research (CIC), Instituto Politécnico Nacional (IPN)</institution>
          ,
          <addr-line>Mexico City</addr-line>
          ,
          <country country="MX">Mexico</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Juan-Pablo Posadas-Durán</institution>
          ,
          <addr-line>Grigori Sidorov, Ildar Batyrshin, and Elibeth Mirasol-Meléndez</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2015</year>
      </pub-date>
      <abstract>
        <p>This paper describes our approach to tackle the Author Verification task at PAN 2015. Our method builds a representation of an author's style by using the information contained in dependency trees. This information is represented as syntactic n-grams and used to conform a vector space. Using unsupervised machine learning approach, each instance is associated to the correponding author using the Jaccard distance. In this paper, we describe the features that were used and the employed unsupervised machine learning algorithm.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The Author Verification task consists in determine if a given text was written by a
person, given a small set (no more than 5, possibly as few as one) of document examples
of its authorship. This task has many applications in different fields such as journalism,
forensics, security and intellectual property among others. Authorship Verification
differs from Authorship Attribution in the fact that in the former the number of examples
is more reduced and the information is more limited.</p>
      <p>
        For the task of Author Verification, the competitors were provided with training
corpus in English, Spanish, Greek and Dutch. Unlike previous edition PAN 2014, this
time the main difference is the variety in genres and topics included in the corpus. To
perform the task we mainly used syntactic n-grams obtained from dependency trees as
features to model an author’s style. The concept of syntactic n-grams is described in
the works [
        <xref ref-type="bibr" rid="ref7 ref9">11,7,9</xref>
        ]. This concept exploits the information about how an author form
sentences at syntactic level, so in this manner syntactic n-grams can overcome the topic
dependency that traditional n-grams suffer. The syntactic n-grams were used in other
related tasks such as automatic English as second language grammar correction [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and
authorship attribution [
        <xref ref-type="bibr" rid="ref6">11,6</xref>
        ], but the main contribution of this work is to show that
syntactic n-grams can be used to tackle the Author Verification task.
      </p>
      <p>The paper is structured as follows: Section 2 introduces the proposed approach,
Section 3 presents the results, Section 4 draws the conclusions and points the future
work.</p>
    </sec>
    <sec id="sec-2">
      <title>Methodology</title>
      <p>Our proposal uses an unsupervised machine learning approach to decide if a given text
was written by an author or not. First, each unknown and know text is represented as a
vector in a space formed by syntactic n-gram, then we use a simple clustering algorithm
that associates the unknown texts to the authors by measuring the similarity between
unknown and known texts.</p>
      <p>
        As the first step, we perform a standard preprocessing over each dataset before it
is parsed. For obtaining syntacitc n-grmas, we use the following syntactic analyzers:
Stanford CoreNLP [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] for the English dataset, FreeLing [
        <xref ref-type="bibr" rid="ref1 ref4 ref5">5,4,1</xref>
        ] for the Spanish dataset,
and Alpino 1 for the Dutch one. In case of the Greek language we didn’t submit results,
since we were not able to find a syntactic parser publicly available for this language.
      </p>
      <p>
        After each dataset is analyzed, we get the syntactic n-grams from the output of
the analyzers. Different types of syntactic n-grams were proposed depending on the
information used for their construction (lemmas, words, dependency relations, and POS
tags). In our case we use the different types proposed in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. A simple feature selection
of syntactic n-grams based on their frequency is implemented in order to eliminate those
syntactic n-grams that rarely appear in the texts and therefore reduce the noise impact
in our data representation[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>The decision on the correspondence between the unknown text and the author is
based on the similarity between their vector representations. We measure the similarity
using the Jaccard distance defined in equation 1.</p>
      <p>sim (vi; vj ) =</p>
      <p>N N EQ
N N Z
(1)
where N N EQ means the number of non-equal dimensions (the number of dimensions
in which the first value is True, second is False and the number of dimensions in which
the first value is False, second is True) and N N Z means the number of nonzero
dimensions (N N EQ and the number of dimensions in which both values are True).</p>
      <p>The output for each unknown text is greater than 0.5 if the similarity measure is
above the threshold , it is smaller than 0.5 if the similarity measure is below the
threshold and it is equal to 0.5 if the similarity is zero.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>The results we obtained in the competition are presented in Table 1. We find our final
scores for Spanish and English dataset around the middle of the preliminar results. This
indicates that the use of syntactic n-grams for modelling the style of the authors is
possible, but probably they should be complemented with other features. The low results
that we got for Dutch dataset can be explained due to problems with the parser, because
it showed parsing dialogues with errors, so most of the information were discarded.
1 See http://www.let.rug.nl/vannoord/alp/Alpino/
In this paper, we presented our approach for the Author Verification task at PAN 2015.
The main contribution of the approach is the use of syntactic n-grams as features to
model an author’s style.</p>
      <p>
        We propose as future work the following ideas: (1) add new heuristics to handle bad
constructed sentences in tweets instead of ignore them, (2) combine the proposed
features with others of distinct nature (semantic features, lexical features, among others),
and (3) to use the soft cosine measure [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] in order to take into account the similarity
between the pairs of syntactic n-grams so the performance could increase.
Acknowledgments. This work was supported by project Conacyt 240844 and projects
SIP-IPN 20151406, 20144274.
11. Sidorov, G., Velasquez, F., Stamatatos, E., Gelbukh, A., Chanona-Hernández, L.: Syntactic
n-grams as machine learning features for natural language processing. Expert Systems with
Applications 41(3), 853–860 (2014)
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Carrera</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castellón</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lloberes</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Padró</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tinkova</surname>
          </string-name>
          , N.:
          <article-title>Dependency grammars in Freeling</article-title>
          .
          <source>Procesamiento del Lenguaje Natural</source>
          <volume>41</volume>
          ,
          <fpage>21</fpage>
          -
          <lpage>28</lpage>
          (
          <year>September 2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Manning</surname>
            ,
            <given-names>C.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Raghavan</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schütze</surname>
          </string-name>
          , H.:
          <article-title>Introduction to information retrieval</article-title>
          , vol.
          <volume>1</volume>
          . Cambridge University Press (
          <year>2008</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.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bethard</surname>
            ,
            <given-names>S.J.</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 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations</source>
          . pp.
          <fpage>55</fpage>
          -
          <lpage>60</lpage>
          (
          <year>2014</year>
          ), http://www.aclweb.org/anthology/P/P14/P14-5010
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Padró</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Analizadores multilingües en freeling</article-title>
          .
          <source>Linguamatica</source>
          <volume>3</volume>
          (
          <issue>2</issue>
          ),
          <fpage>13</fpage>
          -
          <lpage>20</lpage>
          (
          <year>December 2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Padró</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stanilovsky</surname>
          </string-name>
          , E.:
          <article-title>Freeling 3.0: Towards wider multilinguality</article-title>
          .
          <source>In: Proceedings of the Language Resources and Evaluation Conference (LREC</source>
          <year>2012</year>
          ). ELRA, Istanbul, Turkey (May
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Posadas-Duran</surname>
            ,
            <given-names>J.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sidorov</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Batyrshin</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Complete syntactic n-grams as style markers for authorship attribution</article-title>
          .
          <source>In: LNAI</source>
          , vol.
          <volume>8856</volume>
          , pp.
          <fpage>9</fpage>
          -
          <lpage>17</lpage>
          . Springer (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Sidorov</surname>
          </string-name>
          , G.:
          <article-title>Non-continuous syntactic n-grams</article-title>
          .
          <source>Polibits</source>
          <volume>48</volume>
          (
          <issue>1</issue>
          ),
          <fpage>67</fpage>
          -
          <lpage>75</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Sidorov</surname>
          </string-name>
          , G.:
          <article-title>Syntactic dependency based n-grams in rule based automatic english as second language grammar correction</article-title>
          .
          <source>International Journal of Computational Linguistics and Applications</source>
          <volume>4</volume>
          (
          <issue>2</issue>
          ),
          <fpage>169</fpage>
          -
          <lpage>188</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Sidorov</surname>
          </string-name>
          , G.:
          <article-title>Should syntactic n-grams contain names of syntactic relations</article-title>
          .
          <source>International Journal of Computational Linguistics and Applications</source>
          <volume>5</volume>
          (
          <issue>1</issue>
          ),
          <fpage>139</fpage>
          -
          <lpage>158</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Sidorov</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gelbukh</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gómez-Adorno</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pinto</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Soft similarity and soft cosine measure: Similarity of features in vector space model</article-title>
          .
          <source>Computación y Sistemas</source>
          <volume>18</volume>
          (
          <issue>3</issue>
          ),
          <fpage>491</fpage>
          -
          <lpage>504</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>