/TextCNN

Convolutional Neural Networks for Sentence Classification(https://arxiv.org/abs/1408.5882) .

Primary LanguagePythonApache License 2.0Apache-2.0

TextCNN

A picture is worth a thousand words !

Dataset

Sentences are subset of **THUCTC **(THU Chinese Text Classification), http://thuctc.thunlp.org/, format as fastText.

Train

python train.py -h

Evaluate

python eval.py -h

Predict

python predict.py -h

Your text must be separated by space and longer than the max kernel size (Reference config.py).

Requirement

License

TextCNN is released under the [Apache 2.0 license]

Chinese Document

通用文本分类器.