0

I would like to differentiate words that spell the SAME way but have different genres in my FreqDist count.

For instance in the sentence:

The dog seemed to dog the turtle.

I would like to have one count for the 'dog' as a noun, one for the 'dog' as a verb, and not two for the word 'dog'.

I thank you for your wise suggestions

Felix
  • 33
  • 1
  • 8

1 Answers1

0

I would take a look into NLTK - Chapter 5 and think about creating part of speech pairs, and then using conditional frequency distributions

AtAFork
  • 376
  • 3
  • 9