Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addresses bug where proc prop shows up without a process #992

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zupon
Copy link
Contributor

@zupon zupon commented Mar 23, 2021

This addresses a bug @bgyori brought up where the SRLCompositionalGrounder will produce a grounding that includes e.g. a theme, and a process property but no process. We should not have properties without the basic slot. This fix looks at the resulting tuple, checks if there is a process property but no process, and if so---and if there is not already a theme process---moves the process property to the theme property slot.

What should we do if there is a process property and no process, but there is already a theme property? Should we just delete the process property?

Let me know what needs changed!

Copy link
Contributor

@BeckySharp BeckySharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This checks for one edge case, but I'd rather deal with it where it originates. Is it the case that this happens when a process is promoted to theme, but the property isn't? Some other situation?

if (tupleThemeProp.grounding.isEmpty && tupleProc.grounding.isEmpty && tupleProcProp.grounding.nonEmpty) {
val newTupleThemeProp = tupleProcProp
val newTupleProcProp = tupleProc
val newPredGrounding = PredicateGrounding(PredicateTuple(tupleTheme, newTupleThemeProp, tupleProc,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tupleTheme here could be empty, right? is that desired (i.e., not checking)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point...this would also give us the situation where we somehow have a theme property but no theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants