ttpro1995 / TreeLSTMSentiment

Pytorch implementation of Sentiment Classification in Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks
MIT License
113 stars 40 forks source link

Constituency trees with only left child #11

Open sopankhosla opened 5 years ago

sopankhosla commented 5 years ago

the binaryTree implementation (https://github.com/ttpro1995/TreeLSTMSentiment/blob/c61f73e3efdf227e2cb521157f320ec727f2490a/model.py#L111) does not work for constituency trees with only left child and no right child.