GithubHelp home page GithubHelp logo

echr-first's Introduction

ECHR-FIRST

Install necessary packages:

!pip install datasets transformers evaluate

Run with sampled data to make sure it's runable:\

git clone https://github.com/LittleCuteBug/ECHR-FIRST.git
cd echr-first
python longformer_base.py --task_name base --dataset ecthr_a --learning_rate=1e-05 -p saveLongformerModels --seed_number 42 --test

Run with task 1

python longformer_base.py --task_name base --dataset ecthr_a --learning_rate=1e-05 -p saveLongformerModels --seed_number 42

Run with task 2

python longformer_base.py --task_name add_true_label --dataset ecthr_a --learning_rate=1e-05 -p saveLongformerModels --seed_number 42

Run with task 3

python longformer_base.py --task_name add_false_label --dataset ecthr_a --learning_rate=1e-05 -p saveLongformerModels --seed_number 42

Arguments:

usage: longformer_base.py [-h]
                          -t {base,add_true_label,add_false_label}
                          --dataset {ecthr_a,ecthr_b}
                          [-n NUM_EPOCHS]
                          [-lr LEARNING_RATE]
                          -p SAVING_PATH_ROOT
                          [-s SEED_NUMBER]
                          [--test]
                          [--train_batch_size TRAIN_BATCH_SIZE]
                          [--eval_batch_size EVAL_BATCH_SIZE]

optional arguments:
  -h, --help            show this help message and exit
  -t {base,add_true_label,add_false_label}, --task_name {base,add_true_label,add_false_label}
  --dataset {ecthr_a,ecthr_b}
  -n NUM_EPOCHS, --num_epochs NUM_EPOCHS
  -lr LEARNING_RATE, --learning_rate LEARNING_RATE
  -p SAVING_PATH_ROOT, --saving_path_root SAVING_PATH_ROOT
  -s SEED_NUMBER, --seed_number SEED_NUMBER
  --test                Run with sampled data for testing
  --train_batch_size TRAIN_BATCH_SIZE
  --eval_batch_size EVAL_BATCH_SIZE

echr-first's People

Contributors

littlecutebug avatar

Watchers

James Cloos avatar  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.