Skip to content

dbdx-zwh/XT_NLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XT_NLP

nlp_homework

本次作业一共做了两个实验,其一为必做项(LSTM),其二为我比较感兴趣的实验(attention) 为了日后更加顺利的编写深度学习模型,我对pytorch常用的代码技巧进行了总结

A. requirement:

  1. python 3.8.8
  2. torch 1.7.1
  3. re 2.2.1

B. LSTM usage: python LSTMLM.py

注:多层只需要修改LSTMLM.py文件中的n_layer参数即可

C. attention usage:

  1. python prework.py

  2. python main.py

姓名:赵文昊 学号:20184584

About

nlp_homework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages