Reputation: 31
as a newbie with NLTK, I was trying to parse sentence into different phrases (say, NP,VP,ADJP...) and choose the ones that I wanted for further analysis. I chose to use stat_parser, however, it was so slow. Then I found something here (Quick NLTK parse into syntax tree), which shows what I want to do. The problem is I can not install bllip-parser with all methods I can find online (macports etc.). When I tried to make files as I was told in README, it shows the following error:
In file included from best-parses.cc:50:
./popen.h:25:10: fatal error: 'ext/stdio_filebuf.h' file not found
#include <ext/stdio_filebuf.h>
^
1 error generated.
make[1]: *** [best-parses.o] Error 1
make: *** [reranker-runtime] Error 2
Can anyone help me about this error or tell me is there any other better way to do parsing using NLTK? Thanks!
Upvotes: 2
Views: 929
Reputation: 2529
Currently, BLLIP Parser doesn't compile by default on Mac OS X Mavericks. Fortunately, Jim White has a branch of the parser with instructions for how to compile on Mac OS X. Here's a direct download link for his branch.
By the way, I should clarify that BLLIP Parser is separate project from NLTK. The above instructions are just for installing BLLIP Parser. As of version 3.0.2, NLTK provides an interface to BLLIP Parser with the nltk.parse.bllip
module.
Upvotes: 2