GithubHelp home page GithubHelp logo

nlp_subject_project's Introduction

Environment

All the code are runnable in the GOOGLE colab.

I use GOOGLE colab pro+, the GPU type is A100.

The default python environment of GOOGLE colab is python 3.10.

You can uncommand the the code in the top cell and change the python version to 3.8.

Before running the code, please upload the data files into one 'data' folder that is on the same level as jupyter files.

!pip install torch torchvision transformers
!pip install wandb
!pip install nltk

Jupyter Files

  1. ass3_text_classification Code for the BERT+Classifier model
  2. ass3_evidence_retrieval_v1 Code for the single_encoder DPR
  3. ass3_evidence_retrieval_v2 Code for the double_encoder DPR
  4. ass3_evidence_retrieval_v3 (you can ignore this) Code for the single_encoder DPR that only encodes the evidences once
  5. ass3_evidence_retrieval_v4 Code for the single_encoder DPR with stopword deletion
  6. ass3_data_analysis Code for data analysis

Note that: Due to my old laptop is flooded, the BM25 model in the report is not in this code submission...But I think it has essentially no effect on the experimental REPORT.

nlp_subject_project's People

Contributors

yixin-shen-1218 avatar

Watchers

 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.