We will continuously update some NLP practice based on different tasks.
- pytorch >= 1.10
- torchtext >= 0.11.0
- sklearn
- tqdm
or
cd NLP_practice/
pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
- multi datasets in torchtext.datasets e.g SougouNews
- rt_polarity
Examples:
-
Movie Review Classification by TextCNN
actually you can easily modify the dataset name to do experiments on other torchtext's datasets.
-
SougouNews Classification by Multi Models
- TextCNN, RNN, RCNN, FastText, TCN