[Tutor] swapping list elements based on some criterion

Emad Mohamed emohamed at umail.iu.edu
Tue Oct 11 06:19:31 CEST 2011


On Tue, Oct 11, 2011 at 1:21 AM, Steven D'Aprano <steve at pearwood.info>wrote:

> 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
>
>
> ______________________________**_________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
>

Hi,
I actually used the POS tagger available here to tag the English text.

http://www-tsujii.is.s.u-tokyo.ac.jp/~tsuruoka/postagger/

The NLTK should be worth looking into.

Best,


-- 
Emad Soliman Ali Mohamed
aka Emad Nawfal (*عماد نوفل*)
PhD in Linguistics, Computational Linguistics Track,
Department of Linguistics,
Indiana University, Bloomington
http://jones.ling.indiana.edu/~emadnawfal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111011/c3b25690/attachment.html>


More information about the Tutor mailing list