main
public static void main(String[] args)
This program converts the format of the Sentiment data set
prepared by Richard, Jean, etc. into trees readable with the
normal TreeReaders.
An example command line is
java edu.stanford.nlp.sentiment.ReadSentimentDataset -dictionary stanfordSentimentTreebank/dictionary.txt -sentiment stanfordSentimentTreebank/sentiment_labels.txt -tokens stanfordSentimentTreebank/SOStr.txt -parse stanfordSentimentTreebank/STree.txt -split stanfordSentimentTreebank/datasetSplit.txt -train train.txt -dev dev.txt -test test.txt
The arguments are as follows:
-dictionary, -sentiment,
-tokens, -parse, -split
Path to the corresponding files from the dataset
-train, -dev, -test
Paths for saving the corresponding output files
Each of these arguments is required.
Macro arguments exist in -inputDir and -outputDir, so you can for example run
java edu.stanford.nlp.sentiment.ReadSentimentDataset -inputDir ../data/sentiment/stanfordSentimentTreebank -outputDir .