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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With