stanford_parser

Python interface to the Stanford parser.

The module wrapps the edu.stanford.npl Stanford Parser, which is implemented in Java, using the JPype library.

The StanfordParser class wraps the actual parser, and the parse() function can be used to parse sentences.

Author:Gleb Sizov <sizov@idi.ntnu.no>
class stanford_parser.StanfordParser
Class wrapping the edu.stanford.npl java parser package.
stanford_parser.parse(sentence)
Parses sentence and return POS-tags, parse tree and dependencies.

Previous topic

preprocess

Next topic

freq_representation

This Page