Created
December 1, 2015 23:15
-
-
Save cosmozhang/94a08486267409a9f35a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import edu.stanford.nlp.sentiment.BuildBinarizedDataset; | |
public class BinarizeTrees { | |
public static void main(String[] args) { | |
String textFile = (args.length > 1) ? args[1] : args[0]; | |
System.out.println("Generating binarized trees from file "+textFile); | |
String[] input = {"-input", textFile}; | |
BuildBinarizedDataset.main(input); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment