jiegzhan / multi-class-text-classification-cnn

Classify Kaggle Consumer Finance Complaints into 11 classes. Build the model with CNN (Convolutional Neural Network) and Word Embeddings on Tensorflow.
Apache License 2.0
426 stars 198 forks source link

Try to run the program with my own data #19

Open kaiwendt92 opened 6 years ago

kaiwendt92 commented 6 years ago

I am very new to this whole subject. I created a small csv with 25 entries and wanted to run the program with it. Somehow i am failing.

I attached my datafile, so you maybe can have a look onto it and tell me what i am doing wrong.

The first error that occurs to me is:

Traceback (most recent call last): File "train.py", line 136, in train_cnn() File "train.py", line 24, in train_cnn max_document_length = max([len(x.split(' ')) for x in x_raw]) ValueError: max() arg is an empty sequence

consumer_complaints1.csv.zip

Thank you very much.