brightmart / text_classification

all kinds of text classification models and more with deep learning
MIT License
7.83k stars 2.57k forks source link

unable to train the TextCNN model with sample_single_label.txt #80

Closed JinChengneng closed 5 years ago

JinChengneng commented 6 years ago

I want to train the TextCNN with single label data, and I have changed traning_data_path to ../data/sample_single_label.txt and multi_label_flag to False. However it doesn't work. The error info is AttributeError: 'TextCNN' object has no attribute 'input_y'.

brightmart commented 6 years ago

it is ok to keep flag of multiple label as true when train single label


发件人: Jin Chengneng notifications@github.com 发送时间: 2018年8月17日 14:50:49 收件人: brightmart/text_classification 抄送: Subscribed 主题: [brightmart/text_classification] unable to train the TextCNN model with sample_single_label.txt (#80)

I want to train the TextCNN with single label data, and I have changed traning_data_path to ../data/sample_single_label.txt and multi_label_flag to False. However it doesn't work. The error info is AttributeError: 'TextCNN' object has no attribute 'input_y'.

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/brightmart/text_classification/issues/80, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASuYMHV0fCz8Vb33JR8nwAOhjdiF2WFbks5uRmfJgaJpZM4WBDwJ.

brightmart commented 5 years ago

by download cached file, you will able to train TextCNN. for more detail check this session #Sample data: cached file