<!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>HASOC-Dravidian-CodeMix-FIRE2020: A Multi-component Sentiment Analysis Model for Ofensive Language Identification</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kunjie Dong</string-name>
          <email>kunjiedong@qq.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yao Wang</string-name>
          <email>wangyao91@163</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>School of Information, Yunnan University</institution>
          ,
          <addr-line>Yunnan, Kunming, 650504</addr-line>
          ,
          <country country="CN">P.R. China</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>16</fpage>
      <lpage>20</lpage>
      <abstract>
        <p>The research of discerning the ofensive language formatted with code-mixed in social media has a wide range of applications in mining the available information to provide powerful assistance for sentiment analysis. This paper describes all of our work on the HASOC-Ofensive Language Identification Dravidian Code-Mix FIRE 2020 tasks, which includes a message-level classification task that classifying a YouTube comment in Code-mixed Malayalam into the ofensive (OFF) or Not-ofensive (NOT) language, and another message-level label classification task that classifying a Tweet or YouTube comment in Tanglish and Manglish (Tamil and Malayalam using Roman Characters) into the ofensive or Not-ofensive language. As far as we know, this is the first shared task on ofensive language in Dravidian Code-Mixed text. To achieve this goal, in this paper, we propose an ensemble model which makes full use of the information of rich sequential patterns. More precisely, the proposed model contains a self-attention based on the BiLSTM and the sub-word representation learning. Experimental results of our model on the Malayalam-English of subtask 1, Tamil-English and Malayalam-English of subtask 2 have achieved the F1 values of 0.93, 0.85 and 0.67, respectively, and ranked 3rd, 5th, 9th, respectively.</p>
      </abstract>
      <kwd-group>
        <kwd>Sentiment analysis</kwd>
        <kwd>Ofensive language identification</kwd>
        <kwd>Code-mixed Text</kwd>
        <kwd>Dravidian languages</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Social networks as a popular medium or platform play an indispensable role in our life, which
can provide the convenient service for the users, i.e., transmit and receive message. Language is
the powerful tool in communication of information, which not only can transmit the hot news
and current events, but also with a wealth of emotional information. Mining the sentiment
information afiliated to the text information can be help to fully understand the intention that
the sender wants to express.</p>
      <p>With the development of the those social platform, i.e., Tweet, Weibo and YouTube, users who
have diferent native languages can communicate freely, and even multiple types of languages
were used in a conversation. The language composed of the multiple types of languages named
as the code-mixed language, also known as the code-mixing, which is a kind of common language
in the multilingual societies. More precisely, residents who are living in the multilingual regions
https://github.com/DaDongjie/Test (K. Dong)</p>
      <p>(Y. Wang)
© 2020 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
tend to use English-based speech types and insert English into their primary language to
communicate. With the advantages of ease-of-communication, code-mixed language have been
widely used and popularized in the multilingual regions. Specifically, the Malayalam-English
and Tamil-English are two kinds of code-mixed languages in social medias. Therefore, sentiment
analysis of the ofensive language identification of the code-mixed language has attracted lots
of researchers’ interests.</p>
      <p>
        The Malayalam-English and Tamil-English code-mixed languages collected from the social
medias are shared by the organizers in the form of two sub-tasks. To be specific, sub-task 1
provided the Malayalam language in the Latin script and sub-task 2 contains both Malayalam
and Tamil language in Roman script[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>Code-mixed generally has the following forms:
• M i x e d s c r i p t - its a combination of native script and Roman script;
• C o d e - M i x e d s c r i p t - its a type of script in which both native and English is written in</p>
      <p>Roman script;
• N a t i v e s c r i p t - regional language is written in native script;</p>
      <p>
        Acronyms, non-standard spellings, and non-grammatical structures are all challenges of this
research task, and the scarcity of annotated data available for sentiment analysis also limit the
development of discerning the ofensive language from the code-mixed text. Because of the
complexity of code-switching at diferent language levels in text, the monolingual data training
system cannot process the complicated code-mixed data. More information about the code
mixed can be found in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        To address the aforementioned problems, we integrate the convolution neural network (CNN)
and self-attention based LSTM into a unified framework, which have the powerful ability
to classify any tweet into the ofensive or Not-ofensive language under the help of the
selfattention mechanism. In the data processing stage, motivated by [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], we introduce the sub-word
scheme and attention mechanism to learn the inherent features better and further to improve
the classification accuracy. As a result, our model obtain the good performance of the F1 value
on the test text. Specifically, based on the two sub-tasks released by the oficials, our model
achieved the F1 value of 0.93 (ranked 3rd) in sub-task 1 in Malayalam-English, and the F1 values
of 0.85 (ranked 5th) and 0.67 (ranked 9th) in Tamil-English and Malayalam-English, respectively.
      </p>
      <p>The rest of this article is organized as follows. Section 2 introduces the related work. Section
3 and Section 4 describe the data and architecture of out model, respectively. Section 5 presents
the experimental results. Finally, conclusions and future work are shown in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Works</title>
      <p>In this section, we briefly summarize the development of sentiment analysis methods in items
of the automated detection of the ofensive, hateful, abusive, aggressive, and profane texts.</p>
      <p>
        Utsab Barman et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposed the sub-word level representations method with the LSTM
(Sub-word LSTM) architecture, which works well in highly noisy text containing misspellings
and obtains the better performance under the metric of F1 score on the manually annotated
dataset. Sarkar Kamal [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] implemented a machine learning algorithm, called the Multinomial
Naive Bayes, which first to use n-gram tokenizer, i.e., unigram and bigram, and words features
to train the classifier, and then predicts the sentiment classification. Madan et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] supposed
a self-attention based on the BiLSTM model to achieve the sentiment analysis of code-mixed
tweets. Batuhan Guler et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] achieved a combination model consist of a bi-directional RNN
using LSTM cells, a CNN, and a Feed Forward Neural Network (FFNN), in which adopts the
Bayesian Optimization (BO) to search the hyper-parameter.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Data</title>
      <p>
        With the rapid development of the social medias, code-mixed languages have been widely
used in various social activities. There be a lot of code-mixed data between Malayalam and
English among the YouTube comments [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Recently, the shared task was conducted by the
HASOC-Ofensive Language Identification Dravidian Code-Mixed FIRE 2020 for to detect the
ofensive words from the Dravidian languages formatted with the code-mixed text.
      </p>
      <p>In this paper, we employ the datasets in two languages Malayalam-English and Tamil-English
provided by the organizer, which are mainly come from YouTube video comments. The datasets
contain all three types of code-mixed sentences: Inter-Sentential switch, Intra-Sentential switch
and Tag switching. Specifically, Table 1 shows the distribution of the training sets, validation
sets, and test sets for the two languages.</p>
      <p>Malayalam-English provided in sub-task 1 be separated the training set and the validation
set, in which Malayalam use the non-Roman script. However, Malayalam and Tamil provided
in sub-task 2 only provide the training set denoted in Roman script, without the validation
set. To make a persuasive assessment, we randomly extract 30% nodes from training set as the
validation set for verifying the classifier and the remained nodes as the training set for training
the classifier, respectively.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Architecture</title>
      <p>Malayalam text written in latin script provided by the oficial organizer, for sub-task 1, so we
uniformly translated it into the Roman script. Then, we remove all useless characters (Emotional
symbols, @username and so on) from the text and convert to lowercase, and input them to the
sub-word level representation model. Given a sentence, the 1-D convolution operation on input
character shown as the figure 1.</p>
      <p>Let be the matrix  ∈  × represented the input sentences, we perform 1- convolution
operation on the  , and then apply a non-linear function to indicate the feature map  ∈  −+1
at the sub-word level. Specifically, the  -th element of  annotated as:
where the notations , ,</p>
      <p>are the length of the input, the dimension of character embedding
and the length of the filter, respectively. Then, we obtain the sub-word representations by
pooling the maximal responses from  feature representations, denoted as the following:</p>
      <p>Based on the learned sub-word embeddings, we feed them into a classifier to conduct the
classification task. In the classifier, more accurately, we feed the sub-word embeddings into the
BiLSTM and add a weight on hidden states obtained from the BiLSTM.</p>
      <p>In brief, we first to obtain the latent representations and feed them into the softmax function to
get the prediction through a full conneted layer (FC). The architecture of our model is displayed
in figure 2.</p>
      <p>[] = (([∶,  ∶  +  − 1] ∗  + )
  = max( [ ∗ ( ∶  +  − 1)])
  =</p>
      <p>exp(    )</p>
      <p>∑=1 exp(    )
(1)
(2)
(3)</p>
    </sec>
    <sec id="sec-5">
      <title>5. The Experimental Results</title>
      <p>In this section, we summarize the experimental results on classification test on two sub-tasks
provided by the oficials. More precisely, the F1 value of 0.93 (ranked 3rd) on the
MalayalamEnglish was achieved in sub-task 1, and the F1 values of 0.85 (ranked 5th) and 0.67 (ranked 9th)
on the Tamil-English and Malayalam-English were achieved in sub-task 2, respectively.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions and Future work</title>
      <p>Recognizing ofensive verbal comments plays an important role in social activities. In this
study, we proposed a self-attention based on the BiLSTM model to identify the ofensive
language, which is the first shared task on Ofensive language in Dravidian code-Mixed text,
i.e., Malayalam-English and Tamil-English.</p>
      <p>Besides word-level attention, semantic-level attention can provide a powerful assistance for
identifying the ofensive comments. Therefore, we plan to consider the hierarchical attention
model to further improve the classification performance in our future work.
Thanks to the developers of ACM consolidated LaTeX styles https://github.com/borisveytsman/
acmart and to the developers of Elsevier updated LATEX templates https://www.ctan.org/tex-archive/
macros/latex/contrib/els-cas-templates.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Muralidaran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Priyadharshini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>McCrae</surname>
          </string-name>
          ,
          <article-title>Corpus creation for sentiment analysis in code-mixed Tamil-English text</article-title>
          ,
          <source>in: Proceedings of the 1st Joint Workshop on Spoken Language Technologies</source>
          for
          <article-title>Under-resourced languages (SLTU) and Collaboration and Computing for Under-Resourced Languages (CCURL), European Language Resources association</article-title>
          , Marseille, France,
          <year>2020</year>
          , pp.
          <fpage>202</fpage>
          -
          <lpage>210</lpage>
          . URL: https://www.aclweb. org/anthology/2020.sltu-
          <volume>1</volume>
          .
          <fpage>28</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          , N. Jose,
          <string-name>
            <given-names>S.</given-names>
            <surname>Suryawanshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Sherly</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>McCrae</surname>
          </string-name>
          ,
          <article-title>A sentiment analysis dataset for code-mixed Malayalam-English, in: Proceedings of the 1st Joint Workshop on Spoken Language Technologies for Under-resourced languages (SLTU) and Collaboration and Computing for Under-Resourced Languages (CCURL), European Language Resources association</article-title>
          , Marseille, France,
          <year>2020</year>
          , pp.
          <fpage>177</fpage>
          -
          <lpage>184</lpage>
          . URL: https://www.aclweb.org/anthology/ 2020.sltu-
          <volume>1</volume>
          .
          <fpage>25</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Priyadharshini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Muralidaran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Suryawanshi</surname>
          </string-name>
          , N. Jose,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>Sherly</surname>
          </string-name>
          ,
          <string-name>
            <surname>Elizabeth</surname>
            <given-names>McCrae</given-names>
          </string-name>
          ,
          <article-title>Overview of the track on Sentiment Analysis for Davidian Languages in Code-Mixed Text</article-title>
          ,
          <source>in: Proceedings of the 12th Forum for Information Retrieval Evaluation</source>
          ,
          <source>FIRE '20</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Priyadharshini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Muralidaran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Suryawanshi</surname>
          </string-name>
          , N. Jose,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>Sherly</surname>
          </string-name>
          ,
          <string-name>
            <surname>Elizabeth</surname>
            <given-names>McCrae</given-names>
          </string-name>
          ,
          <article-title>Overview of the track on Sentiment Analysis for Davidian Languages in Code-Mixed Text, in: Working Notes of the Forum for Information Retrieval Evaluation (FIRE 2020)</article-title>
          . CEUR Workshop Proceedings. In: CEUR-WS. org, Hyderabad, India,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D. S.</given-names>
            <surname>Nair</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>Jayan</surname>
          </string-name>
          ,
          <string-name>
            <surname>R. R. R</surname>
          </string-name>
          , E. Sherly,
          <article-title>Sentima - sentiment extraction for malayalam</article-title>
          ,
          <source>in: International Conference on Advances in Computing</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>1719</fpage>
          -
          <lpage>1723</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>U.</given-names>
            <surname>Barman</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Das</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Wagner</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Foster</surname>
          </string-name>
          ,
          <article-title>Code mixing: A challenge for language identification in the language of social media</article-title>
          ,
          <source>in: Proceedings of The First Workshop on Computational Approaches</source>
          to Code Switching,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>K.</given-names>
            <surname>Sarkar</surname>
          </string-name>
          , Ju_ks@sail_
          <fpage>codemixed</fpage>
          -2017:
          <article-title>Sentiment analysis for indian code mixed social media texts</article-title>
          , CoRR abs/
          <year>1802</year>
          .05737 (
          <year>2018</year>
          ). URL: http://arxiv.org/abs/
          <year>1802</year>
          .05737.
          <article-title>a r X i v : 1 8 0 2 . 0 5 7 3 7</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Jhanwar</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Das</surname>
          </string-name>
          ,
          <article-title>An ensemble model for sentiment analysis of hindi-english code-mixed data</article-title>
          , CoRR abs/
          <year>1806</year>
          .04450 (
          <year>2018</year>
          ). URL: http://arxiv.org/abs/
          <year>1806</year>
          .04450.
          <article-title>a r X i v : 1 8 0 6 . 0 4 4 5 0</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>N.</given-names>
            <surname>Frisiani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Laignelet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Güler</surname>
          </string-name>
          ,
          <article-title>Combination of multiple deep learning architectures for ofensive language detection in tweets</article-title>
          , CoRR abs/
          <year>1903</year>
          .08734 (
          <year>2019</year>
          ). URL: http://arxiv.org/ abs/
          <year>1903</year>
          .08734.
          <article-title>a r X i v : 1 9 0 3 . 0 8 7 3 4</article-title>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>