Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert Sphinx .mfc to libsvm input file
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