classify.sh 351 B

1234567891011121314
  1. echo "Enter text to be classified, hit return to run classification."
  2. read text
  3. if [ `echo "$text" | sed -r 's/ +/ /g' | bin/stupidfilter data/c_rbf` = "1.000000" ]
  4. then
  5. echo "Text is not likely to be stupid."
  6. fi
  7. if [ `echo "$text" | sed -r 's/ +/ /g' | bin/stupidfilter data/c_rbf` = "0.000000" ]
  8. then
  9. echo "Text is likely to be stupid."
  10. fi