richliao / textClassifier

Text classifier for Hierarchical Attention Networks for Document Classification
Apache License 2.0
1.07k stars 379 forks source link

some problem about data preprocess #30

Open kang1916 opened 6 years ago

kang1916 commented 6 years ago

there is a problem about the panda usage:

AttributeError: 'DataFrame' object has no attribute 'review'

at line 46, 55: 46: data_train = pd.read_csv('labeledTrainData.tsv', sep='\t') 55 :for idx in range(data_train.review.shape[0]):

variable "data_train" does not got attribute "review"

===========

I have looked for different of pandas and the problem is still not fixed Any suggestion about this problem?

THANKS!!!

pengyuan commented 5 years ago

same problem.

pengyuan commented 5 years ago

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

kang1916 commented 5 years ago

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

Thanks!

mowangshao commented 5 years ago

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

Same problem. So, how can I fix it.

mowangshao commented 5 years ago

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

Thanks. Now I have fixed it.