ccg2lambda icon indicating copy to clipboard operation
ccg2lambda copied to clipboard

predicate-argument extractor

Open siebeniris opened this issue 5 years ago • 1 comments

Hi, do you have a integrated predicate-argument extractor? Or is there any way to write it easily?

siebeniris avatar Jul 04 '19 13:07 siebeniris

Hi, I think it is possible to write a code to traverse the output logical form of ccg2lambda and collect predicates and their arguments, but no one has tired that yet.

If what you are interested in is so called semantic role labels, how about using EasySRL (https://github.com/uwnlp/EasySRL), which is optimized for that specific task?

By the way, there are scripts to convert the logical formula to ones in other formats, e.g. DRS. You may be able to modify them to obtain what you are expecting... https://github.com/mynlp/ccg2lambda/blob/master/scripts/nltk2drs.py

masashi-y avatar Jul 09 '19 04:07 masashi-y