Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
FengZiYjun 7514be6f30 | 6 years ago | |
---|---|---|
.. | ||
data | 6 years ago | |
README.md | 6 years ago | |
__init__.py | 6 years ago | |
evaluate.py | 6 years ago | |
model.py | 6 years ago | |
preprocess.py | 6 years ago | |
train.py | 6 years ago |
This is the implementation of Hierarchical Attention Networks for Document Classification paper in PyTorch.
According to the paper and experiment, I set model parameters:
word embedding dimension | GRU hidden size | GRU layer | word/sentence context vector dimension |
---|---|---|---|
200 | 50 | 1 | 100 |
And the training parameters:
Epoch | learning rate | momentum | batch size |
---|---|---|---|
3 | 0.01 | 0.9 | 64 |
python train
python evaluate
一款轻量级的自然语言处理(NLP)工具包,目标是减少用户项目中的工程型代码,例如数据处理循环、训练循环、多卡运行等
Python Jupyter Notebook Text CSV Markdown