CNN tensorflow text classification CNN文本分类的例子
2018-02-17 20:35
746 查看
from:http://deeplearning.lipingyang.org/tensorflow-examples-text/
(Stay tuned, as I keep updating the post while I grow and plow in my deep learning garden:). Also, if you find a dead link, please email me –you can find my email address from the About page, which has a link to my academic website.)
Text summarization with TensorFlow (August 24, 2016 Google Research Blog) – GitHub repo
How to Run Text Summarization with TensorFlow (Oct 15, 2016)
This is a good post. It introduces how to train the model using your own dataset.
To create a useful model you should train it on a large dataset. Ideally, the dataset should be specific for your task. Summarizing news article may be different from summarizing legal documents or job descriptions.
TensorFlow — Text Classification (by Illia Polosukhin, Nov 19, 2016)
Full example can be found in TensorFlow examples (DNN-based text classification with DBpedia data): https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/text_classification.py (note, that code there will be updated with new APIs so it’s better to check out there).
Another text classification using CNN (CNN-based text classification with DBpedia data):
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/text_classification_cnn.py
A TensorFlow Tutorial: Email Classification (Feb 1, 2016 by Josh Meyer)
It contains sample code for feeding customized training data set from csv files. It used a simple logistic regression classifier to classify Emails.
A nice tutorial on WildML that uses TensorFlow: Implementing a CNN for Text Classification in TensorFlow
Its code on GitHub: Convolutional Neural Network for Text Classification in Tensorflow (python 3) by dennybritz on Github (Python 2 version by atveit on Github, this one forked the python 3 version by dennybritz)
Note that python 3 version has more functionality (e.g., eval.py) and it is more up to date.
RNNS IN TENSORFLOW, A PRACTICAL GUIDE AND UNDOCUMENTED FEATURES ( August 21, 2016) – github repo
In Sentiment Analysis setting, District Data Labs – Modern Methods for Sentiment Analysis talks about using word2vec.
See Paper: Effective Use of Word Order for Text Categorization with Convolutional Neural Networks , which goes into more technical details.
Johnson, R., & Zhang, T. (2014). Effective use of word order for text categorization with convolutional neural networks. arXiv preprint arXiv:1412.1058.
Text classification using CNN written in tensorflow (April 20, 2017) — GitHub repo
Big Picture Machine Learning: Classifying Text with Neural Networks and TensorFlow (May 19, 2017) — pdf
Practical Neural Networks with Keras: Classifying Yelp Reviews (June, 2017) — running on AWS
TensorFlow examples (text-based)
This page provides links to text-based examples (including code and tutorial for most examples) using TensorFlow.(Stay tuned, as I keep updating the post while I grow and plow in my deep learning garden:). Also, if you find a dead link, please email me –you can find my email address from the About page, which has a link to my academic website.)
Text summarization with TensorFlow (August 24, 2016 Google Research Blog) – GitHub repo
How to Run Text Summarization with TensorFlow (Oct 15, 2016)
This is a good post. It introduces how to train the model using your own dataset.
To create a useful model you should train it on a large dataset. Ideally, the dataset should be specific for your task. Summarizing news article may be different from summarizing legal documents or job descriptions.
TensorFlow — Text Classification (by Illia Polosukhin, Nov 19, 2016)
Full example can be found in TensorFlow examples (DNN-based text classification with DBpedia data): https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/text_classification.py (note, that code there will be updated with new APIs so it’s better to check out there).
Another text classification using CNN (CNN-based text classification with DBpedia data):
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/text_classification_cnn.py
A TensorFlow Tutorial: Email Classification (Feb 1, 2016 by Josh Meyer)
It contains sample code for feeding customized training data set from csv files. It used a simple logistic regression classifier to classify Emails.
A nice tutorial on WildML that uses TensorFlow: Implementing a CNN for Text Classification in TensorFlow
Its code on GitHub: Convolutional Neural Network for Text Classification in Tensorflow (python 3) by dennybritz on Github (Python 2 version by atveit on Github, this one forked the python 3 version by dennybritz)
Note that python 3 version has more functionality (e.g., eval.py) and it is more up to date.
tf.device("/cpu:0")forces an operation to be executed on the CPU. By default TensorFlow will try to put the operation on the GPU if one is available, but the embedding implementation doesn’t currently have GPU support and throws an error if placed on the GPU.
RNNS IN TENSORFLOW, A PRACTICAL GUIDE AND UNDOCUMENTED FEATURES ( August 21, 2016) – github repo
In Sentiment Analysis setting, District Data Labs – Modern Methods for Sentiment Analysis talks about using word2vec.
See Paper: Effective Use of Word Order for Text Categorization with Convolutional Neural Networks , which goes into more technical details.
Johnson, R., & Zhang, T. (2014). Effective use of word order for text categorization with convolutional neural networks. arXiv preprint arXiv:1412.1058.
Text classification using CNN written in tensorflow (April 20, 2017) — GitHub repo
Big Picture Machine Learning: Classifying Text with Neural Networks and TensorFlow (May 19, 2017) — pdf
Practical Neural Networks with Keras: Classifying Yelp Reviews (June, 2017) — running on AWS
相关文章推荐
- 卷积神经网络(CNN)在TensorFlow文本分类中的应用Implementing a CNN for Text Classification in TensorFlow
- 使用TensorFlow实现一个文本分类的卷积神经网络Implementing a CNN for Text Classification in TensorFlow
- Chinese-Text-Classification:Tensorflow CNN 模型实现的中文文本分类器[不分词版]
- IMPLEMENTING A CNN FOR TEXT CLASSIFICATION IN TENSORFLOW
- Implementing a CNN for Text Classification in TensorFlow(用tensorflow实现CNN文本分类) 阅读笔记
- Implementing a CNN for Text Classification in TensorFlow(用tensorflow实现CNN文本分类) 阅读笔记
- tensorflow CNN实际例子
- 文本分类需要CNN?No!fastText完美解决你的需求(前篇)
- Tensorflow Classification 分类学习
- Awesome-Text-Classification:文本分类资源合集
- 文本分类需要CNN? No!fastText完美解决你的需求(前篇)
- Chinese-Text-Classification,用卷积神经网络基于 Tensorflow 实现的中文文本分类。
- 简单理解TensorFlow textlinereader的例子
- How to do sparse input text classification(dnn) using tensorflow
- Text-CNN 文本分类
- Faster-RCNN tensorflow 程序细节
- 机器学习: Tensor Flow with CNN 做表情识别
- TensorFlow CNN 相关类与方法
- CNN在中文文本分类的应用