This preview shows page 1. Sign up to view the full content.
Unformatted text preview: # word total count words += len(line.split()) filename = sys.argv ratio = float(words)/float(sentences) print "test:", words, lines, sentences print " Average Words per Line:" print "Text 1 ", ratio print filename...
View Full Document
This note was uploaded on 09/06/2009 for the course LING 571 taught by Professor Staff during the Fall '08 term at San Diego State.
- Fall '08