Java

Getting OpenNLP parser to work

I was not able to get OpenNLP parser to work. There were no samples to play with, no command line tools to run. And I don’t even want to talk about documentation. That’s because there was not any. There was an attempt at lame joke (at least that’s the only sense I can make of what.html file), but no actual documentation. Finally, I pinged my research colleague who did get the toolkit working (thanks Scott).

Running Bikel’s parser programmatically

Bikel’s statistical parser is designed to be run from the command line. I need to run it from my own code. The following wrapper seems to do the trick on windows (with your own values for|parserdir| : `Bikel’s statistical parser is designed to be run from the command line. I need to run it from my own code. The following wrapper seems to do the trick on windows (with your own values for|parserdir| :

Duplicating -tagSeparator effect when using Stanford Parser programmatically

I have been using Stanford NLP Parser from command line with -tagSeparator flag to supply it with partially tagged input. As the parser seems to be really bad with date expressions and complex name entities, I need this functionality. Now, I need to wrap-up the parser in my own code to add input/output batching and I discover that this option is not accepted when constructing parser from the code. Despite javadoc saying that LexicalizedParser.

Laying out penn treebank output of Stanford parser

I am trying to use Stanford NLP parser for my research and I need to look at the trees it produces for large, complex sentences. I have found several packages for laying out the output as trees, but they are all seem to be targeted at visualizing smaller sentences, suitable for illustrating a point in the published paper. Sample output of Graphviz layout for Stanford Parser’s output My trees are large.

Struts 2 automagic – language switching

I am looking into Struts 2 and finding its multi-layered defaults somewhat confusing. Specifically, it took forever to fully understand blank demo application that comes bundled with it. Specifically, I could not understand how the example switches between the languages. From the jsp page, it was clear that it was using the parameter request_locale to indicate the language. But then the parameter just disappears. It actually is not mentioned anywhere else in the source code.