[Tutor] swapping list elements based on some criterion

Wayne Werner waynejwerner at gmail.com
Mon Oct 10 21:28:57 CEST 2011


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.

HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111010/b15f85a1/attachment.html>


More information about the Tutor mailing list