Search code examples
nlpclassificationstanford-nlpsupervised-learning

How to print out to a file using Stanford Classifier


I am using Stanford Classifier for my project. This project takes training data to tune the algorithm then test data to classify text inputs into categories. So the format for test and training data is tab-delimited text which means predictor -TAB- input text The software prints out the output to stdout (command line). Is there anyway to output to a text file ? I searched the javadoc of the project site, and I found this one But I don't know how to use this property. I tried -csvoutput=%1%n%c on command line But it gives me java null pointer exception error when I try to run it.


Solution

  • If you want to save it to a file just add this to the end of your command:

    > output_file.txt