Brill Tagger Demo Broken
See original GitHub issueI noticed that in the book (section 6, example 6.1), the suggested code is: nltk.tag.brill.demo()
When I run this I get the following error: AttributeError: module 'nltk.tag.brill' has no attribute 'demo'
Am I missing something?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Brill tagger - Wikipedia
The Brill tagger is an inductive method for part-of-speech tagging. It was described and invented by Eric Brill in his 1993 PhD thesis....
Read more >NLP | Brill Tagger - GeeksforGeeks
BrillTagger class is a transformation-based tagger. It is not a subclass of SequentialBackoffTagger. Moreover, it uses a series of rules to ...
Read more >Example 6.1 (code_brill_demo.py) - NLTK
... import demo as brill_demo >>> brill_demo.demo() Training Brill tagger on ... changed incorrect -> correct o x k...
Read more >What is a brill tagger in nltk - ProjectPro
Let us first import the necessary libraries. We'll import brill, brill_trainer, DefaultTagger and treebank from nltk.tag and nltk.corpus ...
Read more >Natural Language Processing Module
Brill's tagger is one of the best rule-based tagging systems. ... For example, the word rat can be assigned the tag NN (noun,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

What @campionfellin did worked. Thanks!
Maybe the book should instead of
nltk.tag.brill.demo()be:Hey, I am not getting this error, using python v2.7.10. What version are you using? This is my output:
and so on…