python

Andre Engels andreengels at gmail.com
Fri May 15 10:15:40 EDT 2009


We may be willing to help you with your homework, but we will not be
doing it for you. Please tell us what you have got (whether it be a
non-working a program, a partial program or just some ideas about what
you might need to do) and what you think is stopping you from getting
further.

2009/5/15  <anica_1069 at hotmail.com>:
> hello, I´m a student of linguistic an I need do this exercises. Can
> anybody help me,please?
> Thanks
>
>
> ◑ Read in some text from a corpus, tokenize it, and print the list of
> all wh-word types that occur. (wh-words in English are used in
> questions, relative clauses and exclamations: who, which, what, and so
> on.) Print them in order. Are any words duplicated in this list,
> because of the presence of case distinctions or punctuation?
>
> ◑ Create a file consisting of words and (made up) frequencies, where
> each line consists of a word, the space character, and a positive
> integer, e.g. fuzzy 53. Read the file into a Python list using open
> (filename).readlines(). Next, break each line into its two fields
> using split(), and convert the number into an integer using int(). The
> result should be a list of the form: [['fuzzy', 53], ...].
> --
> http://mail.python.org/mailman/listinfo/python-list
>





-- 
André Engels, andreengels at gmail.com



More information about the Python-list mailing list