Tag Archives: stanford parser

Serializing Stanford Parser Objects.

Recently, I found the need to serialize Stanford Parser objects to a file. Though I was familiar with the concept of serialization, I had never done such a thing in Java before. The following is an example on how to do just that: serializing Stanford Parser Tree objects to a file. The example accomplishes the [...]
Posted in NLP, Programming | Also tagged , | Comments closed

Using the Stanford Parser with Jython.

The following code is a Jython adaptation of the example Java code that comes with the Stanford Parser. I felt like this would be pretty useful to have as a resource because Python doesn’t have a parser that generates grammatical relationships in a sentence, and I wasn’t able to find any example code to help [...]
Posted in NLP, Programming | Also tagged , , | Leave a comment