I'm try to get Stanford's Classifier running on Windows.
Working through the Sentiment Classifier:
https://nlp.stanford.edu/wiki/Software/Classifier/Sentiment
I've downloaded the dataset, and installed iconv
, head
, tail
http://gnuwin32.sourceforge.net/packages/coreutils.htm
And got Perl running from ActivePerl.
However, the Perl command given in the instructions doesn't work on Windows.
perl -ne 'print "neg\t" . $_' < rt-polarity.neg.utf8 > rt-polarity.neg.utf8.tsv
Gives an error:
Can't find string terminator "'" anywhere before EOF at -e line 1.
Which I'm guessing is some difference in use of the apostrophe char between what Windows uses and Unix does.
What should I use in Windows to convert this file with Perl to .tsv?