O0h, look at me! My field is so ill-defined I can subscribe to any of dozens of contradictory models and still be taken seriously.


NLTK part of speech concordance

try nltk.app.concordance() after importing nltk. It is a nice demo of POS patterns. you can search for all N N N tag sequences in for example brown corpus. I tried ADV ADJ N. part of the result were:

nationally/ADV famous/ADJ trade/N
commercially/ADV successful/ADJ musicals/N
ultimately/ADV fruitless/ADJ search/N
entirely/ADV happy/ADJ book/N
endlessly/ADV provocative/ADJ film/N
only/ADV unoccupied/ADJ kitchen/N

2 comments:

  1. it would be helpful if you could also share your codes

    ReplyDelete
  2. nothin serious, just type these:

    import nltk
    try nltk.app.concordance()

    ReplyDelete