TensorFlow - Text Classification using Neural Networks
Asked Answered
E

2

8

Is there any example on how can TensorFlow be used for text classification using neural networks?

Exanimate answered 14/11, 2015 at 5:0 Comment(2)
Sumit asked the question on the Tensorflow github page and was told to come here. github.com/tensorflow/tensorflow/issues/215Eades
I'd like to see an example of this as well.Undesigning
G
4

I've started putting together a set of examples for text classification on DBPedia dataset (predicting class of object from its description) as part of examples for Scikit Flow: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/text_classification.py

Going to expand this example and write a blog post when will have enough different models showcased. Feel free to suggest other datasets and models you would be interested to see.

Gowan answered 25/11, 2015 at 23:49 Comment(5)
Thanks a lot @ilblackdragon. I am able to make use of your example. It will be great help if you can document the rnn_model function.Exanimate
@SumitChawla I've added a bunch of comments in the example: github.com/google/skflow/blob/master/examples/… and will try to write a blog post in close future about this types of the models. Let me know if you still have questions though.Gowan
How can we test the model. There is save and restore file but one sentence at a time. Any tutorial? Please help.Amytal
update to the URL: github.com/tensorflow/tensorflow/blob/master/tensorflow/…Orison
It's here now :- github.com/tensorflow/tensorflow/blob/master/tensorflow/…Tripper
T
3

Denny Britz has some great tutorials for Deep learning on his blog at here

and has an example on github here

Some of his examples don't use tensor flow but the one I linked to github uses CNN for text classification using tensor flow

Tiny answered 20/5, 2016 at 3:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.