Git Product home page Git Product logo

classification_of_dative_semantic_roles's Introduction

Semantic Role Labeling for Forms with a Dative Marker

This reprository contains the code and the data, which are described in the term paper for HSE University «Semantic Role Labeling for Forms with a Dative Marker».

The concept of semantic roles is a model that unites similar participants of different situation on the basis of similarity of their meaning and their morphosyntactic behaviour.

The aim of the term paper is to prove that the classification models can classify semantic roles expressed by the same marker on the example of the Dative case marker in Russian. Our hypothesis is that the predictions of the models will be based on the semantic features, and the confusion matrix will reflect the structure of the category of the Dative case in Russian.

Theoretical background: semantic roles expressed by the Dative case in Russian

  • Recipient (Я дала мальчику книгу)
  • Beneficiary (Я купила сыну игрушку)
  • Experiencer (Это кажется мне странным)
  • External Possessor (Она подстригла мне ногти)
  • Counteragent (Сотрудник подчинился начальству)
  • Direction (Он поехал к бабушке)

Data

The data was originally taken from pre-processed FrameBank and then manually annotated. The manually annotated dataset is available here.

The features were extracted automatically, see the code for feature extraction. The labeled dataset can be found here. The distribution by class is presented in the table:

Semantic role The number of examples
Beneficiary 225
Counteragent 275
Direction 396
External Possessor 125
Recipient 400
Experiencer 282

Apart from that, FrameBank contains many unlabeled examples. 94864 examples with a Dative marker were taken from FrameBank, the unlabeled dataset can be found here

The features were extracted from RNC morphological and semantic annotation and SyntaxNet syntactic annotation presented in FrameBank.

Results of the experiments

In this research both supervised and semi-supervised methods are used.

The results of supervised methods models are presented in the table:

Model Weighted F1-Score
Random Forest 0.71
XGBoost 0.72
Logistic regression 0.73
FNN 0.75

For training models based on semi-supervised methods the lemmas were excluded from the dataset. Self-training algorithm was used with two base estimators: Logistic Regression and XGBoost. The comparison of models based on the supervised methods and trained with lemmas and models based on semi-supervised methods and trained without lemmas is illustrated with the table, the metrics is weigthed F1-score:

Model Supervised methods Semi-supervised methods
XGboost 0.72 0.6
Logistic regression 0.73 0.6

The results for each semantic role can be found in the following table, the metrics is F1-score:

Semantic Role XGBoost Random Forest LogReg FNN Average
Beneficiary 0.6 0.68 0.63 0.65 0.64
Counteragent 0.76 0.78 0.81 0.84 0.8
Direction 0.82 0.82 0.85 0.87 0.84
External Possessor 0.69 0.54 0.65 0.71 0.65
Recipient 0.71 0.69 0.67 0.65 0.68
Experiencer 0.7 0.65 0.71 0.73 0.7

Discussion

For further discussion see the handout.

Usage

To run the notebook with the preprocessing code, please download this file and clone this repository:

git clone https://github.com/EkaterinaVoloshina/classification_of_dative_semantic_roles

The notebooks with experiments can be opened in Google Colaboratory. Be aware that you need GPU to run the notebook with supervised methods models.

classification_of_dative_semantic_roles's People

Contributors

ekaterinavoloshina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.