LiberAI / NSpM

🤖 Neural SPARQL Machines for Knowledge Graph Question Answering.
http://aksw.org/Projects/NeuralSPARQLMachines
MIT License
222 stars 86 forks source link

Deprecated Tensorflow functions #13

Open wannabeOG opened 5 years ago

wannabeOG commented 5 years ago

While running

python build_vocab.py data/monument_300/data_300.en > data/monument_300/vocab.en    

The python interpreter gives out the following warning

WARNING:tensorflow:From build_vocab.py:43: init (from tensorflow.contrib.learn.python.learn.preprocessing.text) is deprecated and will be removed in a future version.

Can use tensorflow/transform or tf.data in place to keep up with the recent updates (as suggested by the python interpreter)

wannabeOG commented 5 years ago

I would like to make these changes

panchbhai1969 commented 5 years ago

Hi, i too stumbled upon this issue, the python interpreter does suggest the use of tensorflow/transform or tf.data. But that info wasn't enough, you can get more information regarding porting from here.

Hope this info help people who face this issue. Indeed the code ran without any issues, these are warnings and updating the source will be a good step.