Search code examples
stanford-nlpsemantic-analysis

Does the Stanford NLP Parser have methods for semantic role labelling?


I'm trying to find the semantic labels of english sentences. I am using the Stanford NLP parser. Does it have methods for this?

I was going through the documentation but the closest thing I could find was:

CoreAnnotations.SemanticWordAnnotation
CoreAnnotations.SemanticTagAnnotation

Solution

  • No, we currently don't have a semantic role labeling (SRL) system in CoreNLP.

    Unless you already have a system that explicitly requires semantic role labels, I would recommend taking a look at the Universal Dependencies representation. Despite the fact that this representation is primarily a syntactic representation, it also encodes a lot semantics and works just as well as SRL for many semantic tasks.

    If this alternative does not work for you, then there also exist several SRL systems from other research groups, e.g. the SRL system from UIUC.