Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cat document | cut -d ';' -f 13 | tr '[:upper:]' '[:lower:]' | tr '[:punct:]' ' ' | tr ' ' '\n' | sort | uniq | ./stemmer > stems.txt
cat document | cut ';' -f 13 | tr '[:upper:]' '[:lower:]' | tr '[:punct:]' ' ' | tr ' ' '\n' | sort | uniq > words.txt
cat words.txt | awk '{print "["$0"]"}' | tr '[' '"' | tr ']' '"'
paste words.txt stems.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.