Code Monkey home page Code Monkey logo

acl_workshop_gender_bias_nlp's Introduction

ACL_Workshop_Gender_Bias_NLP

https://genderbiasnlp.talp.cat/

  1. datasets:

    • GAP Coreference
    • Book Corpus
    • UMBC
  2. dataloaders:

    • Gap Coreference Dataloader
    • Book Corpus Dataloader
    • UMBC Dataloader
  3. experiments:

    • A1_filter: run filter on a small test set.
    • plot_tsne: run TSNE on Bert_feature_extraction.json produced by ./pytorch-pretrained-BERT/examples/extract_features.py
    • allennlp_models.py: Run [your_dataset].* through various AllenNLP pre-trained models. Currently supporting Coreference and SRL.
pip3 install allennlp

Run script with Coreference model:

python3 allennlp_models.py \
    https://s3-us-west-2.amazonaws.com/allennlp/models/coref-model-2018.02.05.tar.gz \
    [your_dataset].* --output-file [your_dataset]_coref.json

Run script with Semantic Role Labeling model:

python3 allennlp_models.py \
    https://s3-us-west-2.amazonaws.com/allennlp/models/srl-model-2018.02.27.tar.gz \
    [your_dataset].* --output-file [your_dataset]_srl.json

Extract features from BERT at this location ./pytorch-pretrained-BERT/examples/extract_features.py

python extract_features.py --input_file path_to_input_file --output_file output_file_name.json --bert_model bert-base-cased --layers -2

acl_workshop_gender_bias_nlp's People

Contributors

eunbeejang avatar k1c avatar yasmeenvh avatar

Watchers

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