read_lefff.sh (224B)
1 #!/bin/bash 2 3 # uses Lefff, http://alpage.inria.fr/~sagot/lefff-en.html 4 5 LEFFF="$1" 6 grep 'cat=v,@W' "$LEFFF" | cut -f 1 | sort | uniq > infinitives.txt 7 grep -E 'cat=nc.*@[fm]?s' "$LEFFF" | cut -f 1 | sort | uniq > nouns.txt 8