<!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>ITALICA at PAN 2013: An Ensemble Learning Approach to Author Profiling</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Fermín L. Cruz</string-name>
          <email>fcruz@us.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rafa Haro R.</string-name>
          <email>rharo@zaizi.com</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>F. Javier Ortega</string-name>
          <email>javierortega@us.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Languages and Computer Systems University of Seville</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <abstract>
        <p>This notebook discusses the approach to the Author Profiling task developed by the Italica group for PAN 2013. This system implements two different sets of classifiers which are combined later in order to build a final classifier that takes into account the decisions of the previous ones. The initial classifiers are focused on vector space representations of the documents as a bag of words and n-grams of POS tags and also on a set of stylistic features of the texts. The final classifier consists of a stacking schema that combines the other ones. This approach has obtained better results for the Spanish dataset than for the English dataset, probably due to the use of more detailed POS tagset in the former.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>In recent years, the WWW has suffered a social burst which, among other things, has
resulted to an exponential growth of publicly available textual information generated by
the users, mainly through blogs and social networks. The possibility of extracting
valuable information from this huge amount of data has attracted the attention of researchers
from different areas, focused on the possible ways of taking advantage of this wisdom
of crows. In this context we can frame Author Profiling, which intends to extract as
much information as possible about the author of a text by analysing the text itself.
This task has many immediate applications in different domains, such as linguistics,
forensics, user-centered design and commercial settings.</p>
      <p>
        For the 9th evaluation lab on uncovering Plagiarism, Authorship, and social
software misuse (PAN) competition, Author Profiling task deals with the classification of
texts into classes of authors studying their sociolect aspect. In concrete, for the Author
Profiling task in PAN, the problem consists in, given a document, determining the
author’s age and gender. Author Profiling has been addressed in some previous works.
A corpus with more than 71K blogs classified by gender and nine age ranges is used
in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] with the goal of finding out if content independent features can categorize the
authors. They take into account a set of features based on the textual content and others
based on the writing style. Machine learning approaches for text classification [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] have
been widely (and successfully) applied in domains where the classification depends on
content topics. In the other hand, the use of stylistic features as content independent
features is also discussed in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] in order to improve the classic vector space
classifiers. From the point of view of linguistics, stylometry has been often applied to
Authorship Attribution. A really good survey on the topic can be found in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>To develop their systems, participants were provided with a dataset consisting of
236K documents written in English and 76K documents in Spanish. Each document
is composed of blog entries of a specific user. The gender (male, female) and the age
(13-17, 23-27, 33-47) of the user are provided as well. The dataset is balanced in terms
of gender class but highly unbalanced in terms of age class, where the amount of users
from 13-17 age group is significantly smaller than the amount of users from the rest
of age groups. Moreover, documents from authors who pretend to be minors have been
included (e.g., documents composed of chat lines of sexual predators).</p>
      <p>
        Our proposal is similar to [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], since it is based on supervised classifiers which takes
into account both, content-based and writing style features. However, unlike the
aforementioned proposals, we include a set of style-based metrics intended to measure the
lexical richness of the authors as domain-independent features for the age and gender.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Our approach</title>
      <p>
        Our approach is constituted by two components. First, we were interested in checking
the performance of a classic text classifier based on a vector representation of the
documents [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], whether it is at words level or using POS n-grams (with n=1, 2 or 3). On the
other hand, we were interested in building a classifier based on stylistic features: use of
accents and punctuation marks, lexical richness, capital letters, OOV words, . . . Finally,
both approaches are combined in a stacking schema.
2.1
      </p>
      <sec id="sec-2-1">
        <title>Word and POS-based vector space classifiers</title>
        <p>
          Following this idea, we have built classifiers based on vector space using a bag of words
representation on one hand, and a bag of n-grams of POS tags on the other. For the
bag of words representation input texts suffer 3 basic pre-processes: a conversion to
lower cases, a tokenization based on Freeling [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] and the removal of stop words. We
performed some experiments using just the word lemmas, but the results obtained made
us opt for the use of the whole words, just as they appear in the texts.
        </p>
        <p>
          We used Freeling in order to obtain the POS tags for the bag-of-POS representation.
In the case of Spanish, the tags obtained with Freeling are from the PAROLE tagset [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ].
These tags contain highly detailed information: for example, the tag DP3CS01
(assigned to word “mi”) means that it is a possessive determiner in third person, of
common gender, singular and with third person possessor. Although all this information
could be useful in order to better characterize the language used by each type of
authors, it would imply a lower statistical representation of the tags, more noticeable with
trigrams. Therefore, we also built models based on a simplified version of the tagset
such that, using the previous example, we would use just DP meaning that the word is a
possessive determiner. For texts in English we use the Penn Treebank tagset whose tags
are less detailed, hence we only built one representation of the documents.
        </p>
        <p>We obtained different representations of the documents using n-grams with n=1,
n=2 and n=3 of POS tags, hence each document is represented in six different ways
for texts in Spanish (using the complete and simplified versions of POS tags) and three
ways for texts in English. We used the same vector representation for the documents
in all cases, choosing a maximum of 3K features represented by its tf-idf values. The
selection of features was carried out using the chi-square correlation measure between
the feature and the output classes. Therefore, we have different features chosen for the
two classifications to be solved (for gender and age).</p>
        <p>
          Once the vector representations are obtained, we trained the classifiers using WEKA [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
We used the LibLINEAR [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] algorithm which implements a linear version of SVM. It
is foreseeable to obtain better results using an SVM implementation with polynomial or
radial kernel, but we cannot prove it because the training phase exceeded the available
time.
2.2
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Stylistic features</title>
        <p>
          The usefulness of the lexical diversity of texts in the prediction of demographic features
of the authors is studied in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. In contrast to the features based on tf-idf and n-grams,
lexical diversity metrics are domain-independent and have a low computational cost.
As other stylistic metrics, they are based on types/tokens relations which are intended
to evaluate the diversity and amount of vocabulary contained in the texts. We use 17
normalized metrics of lexical diversity as stylistic features, as shown in Table1.
The combination of the classifiers was carried out as follows. First, the datasets of
each language were partitioned into 10 sections. Using alternatively 9 different sections
from each of the available vector representations, we trained 10 LibLINEAR classifiers
which were applied to the remaining section in each case. The probabilities obtained
by these classifiers for each class and for each vector representation were stored in a
single output file for each dataset. This file is enriched lately with the stylistic features,
obtaining a final file which will be used in the building of the final classifier. The final
classifier is built with the rule-based algorithm JRip [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
        </p>
        <p>Our system performs the following steps in order to classify a document: first the
document is processed with Freeling, whose output is used to build the bag-of-words
and bag-of-POS models. Later we obtain the probabilities of the LibLINEAR-based
classifiers applied to these models. These probabilities, in addition to the stylistic
features, are used to build a final feature vector. Finally, we apply the JRip classifier.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>According to the results achieved in the PAN competition, we have obtained the 3rd
place for Spanish texts and 10th for English. For Spanish evaluation, our approach
achieved 0:39 in overall accuracy, with 0:61 and 0:62 accuracy for gender and age,
respectively. For English, we have obtained a total accuracy of 0:31 with 0:54 for gender
and 0:59 for age. Since we do not know the dataset used for the evaluation in the
competition, it is hard to make a comprehensive analysis of our proposal. Anyway, given
the results achieved for Spanish texts, we can conclude that the use of a more complex
set of tags for the POS-tagging in Spanish and also the use of the accents as a stylistic
feature are two of the key points that could have made the difference.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Argamon</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pennebaker</surname>
            ,
            <given-names>J.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schler</surname>
          </string-name>
          , J.:
          <article-title>Automatically profiling the author of an anonymous text</article-title>
          .
          <source>Commun. ACM</source>
          <volume>52</volume>
          (
          <issue>2</issue>
          ),
          <fpage>119</fpage>
          -
          <lpage>123</lpage>
          (
          <year>Feb 2009</year>
          ), http://doi.acm.
          <source>org/10</source>
          .1145/1461928.1461959
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Cohen</surname>
            ,
            <given-names>W.W.</given-names>
          </string-name>
          :
          <article-title>Fast effective rule induction</article-title>
          .
          <source>In: In Proceedings of the Twelfth International Conference on Machine Learning</source>
          . pp.
          <fpage>115</fpage>
          -
          <lpage>123</lpage>
          . Morgan Kaufmann (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Fan</surname>
            ,
            <given-names>R.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>K.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hsieh</surname>
            ,
            <given-names>C.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>X.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>C.J.:</given-names>
          </string-name>
          <article-title>Liblinear: A library for large linear classification</article-title>
          .
          <source>J. Mach. Learn. Res. 9</source>
          ,
          <fpage>1871</fpage>
          -
          <lpage>1874</lpage>
          (
          <year>Jun 2008</year>
          ), http://dl.acm.org/citation.cfm?id=
          <volume>1390681</volume>
          .
          <fpage>1442794</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frank</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Holmes</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pfahringer</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reutemann</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Witten</surname>
            ,
            <given-names>I.H.</given-names>
          </string-name>
          :
          <source>The WEKA Data Mining Software: An Update</source>
          , vol.
          <volume>11</volume>
          -
          <fpage>1</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Holmes</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Authorship attribution</article-title>
          .
          <source>Computers and the Humanities</source>
          <volume>28</volume>
          (
          <issue>2</issue>
          ),
          <fpage>87</fpage>
          -
          <lpage>106</lpage>
          (
          <year>1994</year>
          ), http://dx.doi.org/10.1007/BF01830689
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <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="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Roberto</surname>
            ,
            <given-names>J.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martí</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Llorente</surname>
            ,
            <given-names>M.S.:</given-names>
          </string-name>
          <article-title>Análisis de la riqueza léxica en el contexto de la clasificación de atributos demográficos latentes</article-title>
          .
          <source>Procesamiento del Lenguaje Natural</source>
          <volume>48</volume>
          ,
          <fpage>97</fpage>
          -
          <lpage>104</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Schler</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Argamon</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pennebaker</surname>
            ,
            <given-names>J.W.:</given-names>
          </string-name>
          <article-title>Effects of age and gender on blogging</article-title>
          . In: AAAI Spring Symposium: Computational Approaches to Analyzing Weblogs'
          <volume>06</volume>
          . pp.
          <fpage>199</fpage>
          -
          <lpage>205</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Sebastiani</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ricerche</surname>
            ,
            <given-names>C.N.D.</given-names>
          </string-name>
          <article-title>: Machine learning in automated text categorization</article-title>
          .
          <source>ACM Computing Surveys</source>
          <volume>34</volume>
          ,
          <fpage>1</fpage>
          -
          <lpage>47</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Tagset</surname>
          </string-name>
          , W.P.: https://www.scss.tcd.ie/SLP/parole.htm
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Wolters</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kirsten</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Exploring the use of linguistic features in domain and genre classification</article-title>
          .
          <source>In: Proceedings of the 9th Conference of the EACL</source>
          . pp.
          <fpage>142</fpage>
          -
          <lpage>149</lpage>
          . ACL, Stroudsburg, PA, USA (
          <year>1999</year>
          ), http://dx.doi.org/10.3115/977035.977055
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>