#!/usr/local/bin/perl -w # # kill off brown corpus tags: # *j *m.*a. C*t*a # wc Browncorpus.txt # 51763 1026595 6000607 Browncorpus.txt # grep \* Browncorpus.txt | wc # 3033 83724 496251 # grep -v \* Browncorpus.txt | wc $nonums=1; while(<>) { s/\<[^>]*\>//g ; s/\ / /g ; s/[01-9\.]//g if ($nonums) ; print ; } # usage # striptags.p words2000.htm > Rankdict