Giter Club home page Giter Club logo

minbert-default-final-project-forked's Introduction

Forked repo which contains some complete code

Update (January 21st, 2024)

QA with bert-base-uncased has been completed. The dependencies needed are all included in the setup.sh, using source setup.sh to config the environment.

There are two versions of QA, question_answering.py follows the same architecture with the original classification tasks (while sharing same config files), its Loss can decrease while EM and F1 do not. Therefore, another version (question_answering_new.py & qa_args.py & qa_utils.py) are created to replace the first version which has some errors that didn't be found, you should use the second to train and test (I keep the first for the error check). The training and validation results have been included in save/ (but no model as it's a large file), it has been trained on SQuAD v1.1, you can train it on other data if the format is same as SQuAD. The more option for training and validation can be found in qa_args.py. Meanwhile, you can use tensorboard to check training results (the events file is in save/qa_bert-00/):

# First clone the repo

cd minbert-default-final-project/
tensorboard --logdir save/qa_bert-00/

Notice: I wrote this just for practicing, and I tested it on debian 10, if you config the env as setup.sh, it should work fine. Any constructive or helpful advice and bug fixes are appreciated.

Update (January 1st, 2024)

The Basic classifier task model has been completed, but not train or test yet, the main task focused on is question answering part with SQuAD dataset.


CS 224N Default Final Project - Multitask BERT

This is the starting code for the default final project for the Stanford CS 224N class. You can find the handout here

In this project, you will implement some important components of the BERT model to better understanding its architecture. You will then use the embeddings produced by your BERT model on three downstream tasks: sentiment classification, paraphrase detection and semantic similarity.

After finishing the BERT implementation, you will have a simple model that simultaneously performs the three tasks. You will then implement extensions to improve on top of this baseline.

Setup instructions

  • Follow setup.sh to properly setup a conda environment and install dependencies.
  • There is a detailed description of the code structure in STRUCTURE.md, including a description of which parts you will need to implement.
  • You are only allowed to use libraries that are installed by setup.sh, external libraries that give you other pre-trained models or embeddings are not allowed (e.g., transformers).

Handout

Please refer to the handout for a through description of the project and its parts.

Acknowledgement

The BERT implementation part of the project was adapted from the "minbert" assignment developed at Carnegie Mellon University's CS11-711 Advanced NLP, created by Shuyan Zhou, Zhengbao Jiang, Ritam Dutt, Brendon Boldt, Aditya Veerubhotla, and Graham Neubig.

Parts of the code are from the transformers library (Apache License 2.0).

minbert-default-final-project-forked's People

Contributors

gpoesia avatar hanshanley avatar notoookay 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.