Compromise: FEATURE REQUEST: Semantic Role Labeler OR Shallow Semantic Parser

Created on 27 May 2017  路  2Comments  路  Source: spencermountain/compromise

Are there any plans to implement an SRL in compromise?

grammar hmmm yesss

Most helpful comment

@spencermountain Well I didn't know that ( doc.match ) was there... and yes its pretty nice. However an actual SRL would help with parsing sentences without the developer having any foreknowledge of its grammatical structure. For instance if I want to know the Subject-Verb-Object of a user-supplied sentence.

For the meantime I'm eye'ing node-nltools lightweight SRL and speakeasy classify method. Please take a look at them and see how best we could pull them together as one powerful function into compromise (my beloved NLP tool) :)

All 2 comments

hi ohenepee, yeah I'd like to see something like this happen too. This was one of the things i was thinking about when I wrote the match syntax this winter.

writing rules, or sentence-role templates in compromise is kinda nice:

doc.match('#Noun was #PastTense by #Noun').tag('#Recipient was #Action by #Actor')
///... and so on

i started to do a little, basic 'clause tagging' here, but you can see it's not very fancy, or well-informed at all.

what are you looking to achieve? happy to help

@spencermountain Well I didn't know that ( doc.match ) was there... and yes its pretty nice. However an actual SRL would help with parsing sentences without the developer having any foreknowledge of its grammatical structure. For instance if I want to know the Subject-Verb-Object of a user-supplied sentence.

For the meantime I'm eye'ing node-nltools lightweight SRL and speakeasy classify method. Please take a look at them and see how best we could pull them together as one powerful function into compromise (my beloved NLP tool) :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DominoTree picture DominoTree  路  5Comments

zzj0402 picture zzj0402  路  4Comments

charles-toller picture charles-toller  路  3Comments

douglance picture douglance  路  4Comments

MarkHerhold picture MarkHerhold  路  5Comments