[Tutor] swapping list elements based on some criterion

Steven D'Aprano steve at pearwood.info
Tue Oct 11 00:21:24 CEST 2011


Wayne Werner wrote:
> 2011/10/7 Emad Nawfal (عمـ نوفل ـاد) <emadnawfal at gmail.com>
> 
>> I want to re-structure English so that the adjectives appear after the
>> nouns, instead of before.
>> If I have a sentence like:
>>
>> The tall man plays well
>> I need to change it to
>> The man tall plays well
>>
> 
> Others have offered plenty of help, though I noticed that no one mentioned
> the Natural Language Tool Kit (http://www.nltk.org/) which is quite powerful
> if you're playing around with language processing.

I assumed that since the words were already tagged as /N /ADJ etc. that 
the poster was already using NLT.


-- 
Steven



More information about the Tutor mailing list