1

I want a code for tagging idioms in a given sentence or text using NLTK and Python.

3
  • 5
    And I want to read the question. Commented Mar 7, 2011 at 8:59
  • 7
    And If you get this answer your company should pay SO Commented Mar 7, 2011 at 9:06
  • 1
    Do you mean part of speech tagging? Commented Mar 8, 2011 at 14:41

1 Answer 1

1

Depends what you mean by an "idiom". Joe's suggestion of POS tagging is probably a good start - and might be what you are really after. If so, go read "Natural Language Processing with Python" by Bird et al. It is published by O'Reilly but is also available online under a Creative Commons license. This will get you started with POS tagging. It also has a good review of NLTK's abilities. For example, can some "Named Entity Recognition" techniques be adapted to do what you want? Or perhaps what you want is simply too difficult. I suspect the latter is the case (as implied by Rafi) but you will find that out in your journey. Perhaps you'll develop something new during your journey, in which case I hope you give back to the NLTK community.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.