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) <[email protected]>

> 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 <[email protected]>
>
> 2010/3/28 Shurui Liu (Aaron Liu) <[email protected]>:
>> > 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
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to