Git Product home page Git Product logo

raymonduoe / cal_sim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hannahkirk/activetransformers-for-abusivelanguage

0.0 0.0 0.0 1.29 MB

This repo contains the code for our paper "Is More Data Better? Re-thinking the Importance of Efficiency in Abusive Language Detection with Transformers-Based Active Learning".

License: Creative Commons Zero v1.0 Universal

Shell 0.67% Python 25.59% Jupyter Notebook 73.74%

cal_sim's Introduction

ActiveTransformers-for-AbusiveLanguage

This repo contains the code for our paper "Is More Data Better? Re-thinking the Importance of Efficiency in Abusive Language Detection with Transformers-Based Active Learning".

The core scripts are in four groups:

  • 0_data_prep contains the scripts for loading, cleaning and preparing the data for modelling.
  • 1_experiment_utils contains the scripts defining key functions for the training and evaluation processes.
  • 2_experiment_runners contains the base python scripts and slurm scripts for running each family of experiments. A family consists of the base classification framework -- transformers (distil-roBERTa) vs traditional/sklearn (SVM) and the modelling approach -- supervised "passive" learning over the full dataset (SL) vs active learning in iterations (AL).
  • 3_submit_jobs contains the scripts to create a parameter grid of all the possible experimental runs and launch them on a server.

We use small-text==1.0.0a8 with the sklearn and transformers integration.

We ran all our experiments on the JADE 2 Cluster using the environment.yaml conda enviroment provided.

For more information, feel free to contact me: [email protected].

cal_sim's People

Contributors

hannahkirk avatar raymonduoe 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.