Giter Site home page Giter Site logo

cs3602-group-project's Introduction

依赖环境

conda create -n nlp_course python=3.8
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit==11.3 -c pytorch
conda install transformers==4.25.1 -c huggingface
conda activate nlp_course

在终端中运行上述命令即可。

测试脚本运行方式

python3 SLUBert/bert_predict.py --device=cuda

这个脚本会读取data/test_unlabelled.json,将结果输出到data/test.json中。

文件说明

  • SLUBase:基线模型目录。
    • slu_baseline.py:训练脚本。
  • SLUBaseHistory:基线模型的变种,参见论文3.2节。
    • slu_baseline_history.py:训练脚本。
  • SLUBert:我们的利用了Bert的模型。
    • bert_test.py:SLUBert模型的训练脚本。
    • bert_multi_turn_test.py:SLUBert-MultiTurn的训练脚本。
    • bert_predict.py:填写测试集的脚本。
  • visual:可视化相关代码。
  • bert-GRU-final.bin:我们得到的效果最好的模型。

cs3602-group-project's People

Contributors

shi0rik0 avatar fannie1208 avatar arist12 avatar

Stargazers

NULL avatar Bo Huang avatar 1234 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.