You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is fixed by this change in nltk/ccg/logic.py. I'm not clear enough about
the chart design to say if the change has any unwelcome consequences. This constructs
a closed type raiser, applies it to the input semantics, and normalizes.
This demonstrates the problem and a solution using https://github.com/MatsRooth/nltk/blob/develop/nltk/ccg/prescoped.py and https://github.com/MatsRooth/nltk/blob/develop/nltk/ccg/logic.py.
Lexicon
Derivation for 'somebody admires everybody' obtained with ApplicationRuleSet
The semantics is the expected one.
Derivation for 'somebody admires everybody' obtained with ForwardTypeRaiseRule + ForwardApplication. The result has scrambled scopes.
Derivation for 'Justin admires Justin' obtained with ForwardTypeRaiseRule + ForwardApplication.
The result is ill-formed, and a free F appears.
The problem is fixed by this change in nltk/ccg/logic.py. I'm not clear enough about
the chart design to say if the change has any unwelcome consequences. This constructs
a closed type raiser, applies it to the input semantics, and normalizes.
Derivation for 'somebody admires everybody' obtained with ForwardTypeRaiseRule + ForwardApplication.
Derivation for 'Justin admires Justin' obtained with ForwardTypeRaiseRule + ForwardApplication.
The text was updated successfully, but these errors were encountered: