Created
October 18, 2015 20:27
-
-
Save Mitsos101/a0c9a585d25e1858d39d to your computer and use it in GitHub Desktop.
Convert Sphinx .mfc to libsvm input file
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
cat *.mfc >> svm.input | |
awk '{for(i=1;i<=NF;++i) $i=i":"$i}1' svm.input > tmp.input && mv tmp.input svm.input && rm -f tmp.input | |
sed -i -e 's/^/+1 /' svm.input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment