Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Add DBpedia classification example #10

Closed
ilblackdragon opened this issue Nov 25, 2015 · 6 comments
Closed

Add DBpedia classification example #10

ilblackdragon opened this issue Nov 25, 2015 · 6 comments

Comments

@ilblackdragon
Copy link
Contributor

DBPedia classification like in "Character-level Convolutional Networks for Text Classification" is a good example to showcase:

ilblackdragon added a commit that referenced this issue Nov 25, 2015
…ion problem (going from text description to one of 15 classes)
@ilblackdragon
Copy link
Contributor Author

Done. The models in examples are a lot simpler and work on word and character level RNN and CNN.

@ilblackdragon ilblackdragon modified the milestone: 0.1 Dec 28, 2015
@marziehsaeidi
Copy link

Hi, I am trying to run Text Classification examples but it seems datasets is not recognised under skflow:

module 'skflow' has no attribute 'datasets'

@terrytangyuan
Copy link
Member

You need to install the most recent release of TensorFlow and check the examples there. Please post issues to TensorFlow repo.

@zd123
Copy link

zd123 commented May 22, 2016

Hey, if you dont want to re-install the nightly build, you can manually download the same dataset. I've documented ez steps here: http://stackoverflow.com/questions/37206459/tensorflow-examples-all-fail-due-to-attributeerror-module-object-has-no-attri

@jeffheaton
Copy link

I think some compile errors have been introduced to this example from all the TF changes

@neuralminds
Copy link

neuralminds commented May 7, 2020

thanks for these examples. just tried with Text Classification for character_rnn now how can i write a serving_input_fn for it ?
extended the code to save but getting error, please help
from tensorflow.contrib.learn.python.learn.utils import input_fn_utils
feature_spec = {"feature":tf.FixedLenFeature([100],tf.int64)}
serving_input_fn = input_fn_utils.build_parsing_serving_input_fn(feature_spec)
and than
classifier.export_savedmodel(export_dir_base='model', serving_input_receiver_fn=serving_input_fn)

and getting this error

TypeError: Failed to convert object of type <class 'dict'> to Tensor. Contents: {'feature': <tf.Tensor 'ParseExample/ParseExample:0' shape=(?, 100) dtype=int64>}. Consider casting elements to a supported type.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants