tensorflow / fold

Deep learning with dynamic computation graphs in TensorFlow
Apache License 2.0
1.82k stars 266 forks source link

How to build child-sum tree using tensorflow fold? #94

Open valexby opened 6 years ago

valexby commented 6 years ago

How to build child-sum LSTM Tree using tensorflow fold? For now example sentiment analysis receives binary constituency tree. But I want to apply with example to input non-binary dependency based parse trees.

Adding some detaisation to request. Main problem I don't now how to solve is how to modify logits_and_state method to boild tree where every node can have arbitrary number of childs.

Thanks!

alexfridlyand commented 6 years ago

Same question here. Maybe author/maintainer could help with this, please (@delesley)? It's very important for the prototype i'm doing, so i'm trying to figure out the way of making this.

This is an example we are talking about: https://github.com/tensorflow/fold/blob/master/tensorflow_fold/g3doc/sentiment.ipynb

Thanks in advance!

valexby commented 6 years ago

Is there a tool for generic block generation in tenosrflow fold? Some block that generate other blocks with respect to its input, and then generator maps his input on generated block. This can be very usefull in Child-Sum problem.