Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
ChenXin 881ce01762 | 5 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
Word2Idx.py | 6 years ago | |
config.cfg | 6 years ago | |
dataloader.py | 6 years ago | |
example.py | 6 years ago | |
main.py | 5 years ago | |
predict.py | 6 years ago | |
prepare.py | 6 years ago |
A mapping model between words and indexes
embedding modules
Contains a simple encapsulation for torch.nn.Embedding
encoder modules
Contains a simple encapsulation for torch.nn.LSTM
aggregation modules
Contains a self-attention model, according to paper "A Structured Self-attentive Sentence Embedding", https://arxiv.org/abs/1703.03130
predict modules
Contains a two layers perceptron for classification
An example showing how to use above modules to build a model
Contains a model for sentiment analysis on Yelp dataset, and its training and testing procedures. See https://arxiv.org/abs/1703.03130 for more details.
A case of using Word2Idx to build Yelp datasets
A dataloader for Yelp dataset
It is an iterable object, returning a zero-padded batch every iteration.
一款轻量级的自然语言处理(NLP)工具包,目标是减少用户项目中的工程型代码,例如数据处理循环、训练循环、多卡运行等
Python Jupyter Notebook Text CSV Markdown