Skip to content

yangdelu855/Tree-LSTM

Repository files navigation

Pytorch Tree-LSTM Syntactic structure

Tree-LSTM by Pytorch

How to run Tree-LSTM

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"

Step2:Environment

Requirement:

Python : 2.7
PyTorch : 0.3.0

Step3:Data

The formats of dataset is as follows:

Label1 Label2 ||| Sentence

Step4:Run

Run main_y.py

Welcome to star this repository!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages