prakashpandey9 / Text-Classification-Pytorch

Text classification using deep learning models in Pytorch
MIT License
809 stars 239 forks source link

How to use external text data? #2

Closed arjohnson10 closed 5 years ago

arjohnson10 commented 6 years ago

Hello, If I want to load separate external CSV files for training and testing where the first column of the CSV contains sentences and 2nd column contains the labels then where should I change?

prakashpandey9 commented 6 years ago

@arjohnson10 Hi. You can use Torchtext for preprocessing and loading your CSV files. There are lots of tutorials available online. Just google it.

arjohnson10 commented 6 years ago

Ya, I found many. I am new to Pytorch. Thanks; And also it will be nice if you can introduce weight visualizations for testing.

prakashpandey9 commented 5 years ago

Sure. I will try to add it.