[Tutor] ask
Shurui Liu (Aaron Liu)
shurui91 at gmail.com
Sun Mar 28 20:02:47 CEST 2010
I came out with a transigent answer: save the right text file*(storyAmer.txt
*) at the right place /cset1100py/assign19/
storyAmer.txt. Then I just add a command after the command which picked out
wrong words.
I wanna add
text_file = open("storyAmer.txt", "r")
But I don't know how to add its path in parentheses.
What do u think?
2010/3/28 Shurui Liu (Aaron Liu) <shurui91 at gmail.com>
> I came out with a transigent answer: save the right text file*
> (storyAmer.txt*) at the right place /cset1100py/assign19/storyAmer.txt.
> Then I just add a command after the command which picked out wrong words.
>
> I wanna add
> text_file = open("storyAmer.txt", "r")
> But I don't know how to add its path in parentheses.
>
> What do u think?
>
> 2010/3/28 C M Caine <cmcaine at googlemail.com>
>
> 2010/3/28 Shurui Liu (Aaron Liu) <shurui91 at gmail.com>:
>> > You know what, I just don't understand this line:
>> >
>> the name of the file containing the translated output is storyAmer.txt and it is to located.
>> >
>> > I don't know what kind of translated output he need. I guess:
>> >
>> > the name of the file containing the translated output is storyAmer.txt
>> and
>> > it is to located in a subdirectory off your cset1100pyassign19, that is
>> > ./cset1100py/assign19/storyAmer.txt directory named
>> >
>> > What kind of translated output do you want?
>> >
>> > (1) A list of wrong words and a list of right words, like this:
>> >
>> > Wrong words in the text are: ......
>> >
>> > Right words should be: ......
>> >
>> >
>> >
>> > OR
>> >
>> >
>> >
>> > (2) The content of the text but has already been translated, like this:
>>
>> I think he wants (2).
>>
>> (1) is a fairly trivial task and involves no real processing.
>>
>
>
>
> --
> Shurui Liu (Aaron Liu)
> Computer Science & Engineering Technology
> University of Toledo
>
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100328/4bd0bd57/attachment-0001.html>
More information about the Tutor
mailing list