cstlstm
cstlstm copied to clipboard
Child-Sum Tree-LSTM Implementation in PyTorch
For example, given an input sentence "w1, w2, w3 w4", we feed it to the treeLSTM (_ChildSumTreeLSTMEncoder_), and get an encoding object. What should I do to obtain the representation...
I think the following line should be ```node.parent_id >= 0```, since the parent_id is 0 for whose parent is the root node . Am I correct? https://github.com/timniven/cstlstm/blob/f9af6842f05432ba70062e4f4cbee14328d2acdf/cstlstm/tree_batch.py#L161
So how do u run this toolkit? Thanks in advance.