Skip to content

Instantly share code, notes, and snippets.

@Mitsos101
Mitsos101 / mfctosvm.sh
Created October 18, 2015 20:27
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
for i in 1:(length(samples) - 1)
if (samples[i + 1] - samples[i]) < 500
deleteat!(samples, i:i+1)
end
end
https://github.com/Mitsos101/plan9front/pull/1
Installation, on 9front:
git/clone https://github.com/Mitsos101/plan9front plan9front-oauth
cd plan9front-oauth
git/branch oauth
bind sys/include /sys/include
@{cd sys/src/libauth && mk install}
@{cd sys/src/cmd/auth && mk install}