Skip to content

Instantly share code, notes, and snippets.

@cosmozhang
Created December 1, 2015 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmozhang/94a08486267409a9f35a to your computer and use it in GitHub Desktop.
Save cosmozhang/94a08486267409a9f35a to your computer and use it in GitHub Desktop.
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