Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
In the docs for advanced noun phrase chunkers,
ConllExtractoris called on a string, like this:However, on Python 2.7, calling
blob.noun_phraseson this object raises an exception. The underlying issue is that ConllExtractor depends on thePatternTagger.tag()method, which throws anAttributeErrorwhen given astr, as illustrated in this minimal example:Specifying Unicode works properly: