Giter Site home page Giter Site logo

verenablaschke / ma-thesis Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 3.31 MB

Explainable Machine Learning in Linguistics and Applied NLP: Two Case Studies of Norwegian Dialectometry and Sexism Detection in French Tweets

Python 68.65% Shell 7.15% Batchfile 0.36% TeX 23.83%
explainable-ml dialectometry sexism-detection dialectology lime xai attention-weights

ma-thesis's Introduction

Explainable Machine Learning in Linguistics and Applied NLP: Two Case Studies of Norwegian Dialectometry and Sexism Detection in French Tweets

Abstract

This thesis presents an exploration of explainable machine learning in the context of a traditional linguistic area (dialect classification) and an applied task (sexism detection).

In both tasks, the input features deemed especially relevant for the classification form meaningful groups that fit in with previous research on the topic, although not all such features are easy to understand or provide plausible explanations.

In the case of dialect classification, some important features show that the model also learned patterns that are not typically presented by dialectologists. For both case studies, I use LIME (Ribeiro et al., 2016) to rank features by their importance for the classification.

For the sexism detection task, I additionally examine attention weights, which produce feature rankings that are in many cases similar to the LIME results but that are over all worse at showcasing tokens that are especially characteristic of sexist tweets.

Code

To re-run the experiments I carried out in my thesis, run the following scripts:

## LIME for dialect classification
dialects_predict.sh
# When the previous script has finished running, run:
dialects_analyze.sh

## LIME for tweet classification
tweets_predict.sh
# When the previous script has finished running, run:
tweets_analyze.sh

## Attention weights for tweet classification
tweets_predict_attention.sh
# When the previous script has finished running, run:
tweets_analyze_attention.sh

The exact state of the codebase as used in my MA thesis is available via the ma-thesis release.

The tables with the results are in the models directory.

Thesis

The full description and analysis of this research can be found in my thesis.

ma-thesis's People

Contributors

verenablaschke avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

porcelluscavia

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.