stanfordnlp / treelstm

Tree-structured Long Short-Term Memory networks (http://arxiv.org/abs/1503.00075)
GNU General Public License v2.0
875 stars 236 forks source link

Stanford Sentiment Treebank #14

Open lw081701019 opened 7 years ago

lw081701019 commented 7 years ago

Under the Stanford Sentiment TreeBank, directory there are several files, which is explained clearly in the README.txt file. And i've my own dataset and i am thinking to train my own dataset using the Stanford Sentiment (RNTN). But i am wondering how do i generate the "STree.txt" file from my dataset. The format of data in "STree.txt" is in the form of:

40|39|38|37|36|34|33|32|32|31|30|30|29|28|26|25|24|23|22|22|27|23|24|25|26|27|28|29|41|31|35|33|34|35|36|37|38|39|40|41|0