Pytorch
Tree-LSTM
Syntactic structure
Step1:Get the Syntactic structure by Stanford-parser
For example:
"lmaoo rt msrhotorical22: thoughtsduringsex i am not goin to work in the morn"
"3 3 0 3 9 9 9 9 3 9"
Requirement:
Python : 2.7
PyTorch : 0.3.0
The formats of dataset is as follows:
Label1 Label2 ||| Sentence
Run main_y.py