Solved – Recursive neural network implementation in TensorFlow

natural languagerecursive-modeltensorflow

Is there any available recursive neural network implementation in TensorFlow TensorFlow's tutorials do not present any recursive neural networks. Most TensorFlow code I've found is CNN, LSTM, GRU, vanilla recurrent neural networks or MLP. I am most interested in implementations for natural language processing.

Example of a recursive neural network:

enter image description here

The tree structure may vary between different inputs. I.e., I do not want the tree structure to be fixed.

Best Answer

Take a look at Tensorflow Fold:

https://github.com/tensorflow/fold

TensorFlow Fold is a library for creating TensorFlow models that consume structured data, where the structure of the computation graph depends on the structure of the input data.