forked from mikelewis0/easyccg
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
If left.getLeft().isFunctor() is true than left.getLeft().isNounOrNP() is false, right?
easyccg/src/uk/ac/ed/easyccg/syntax/Combinator.java
Lines 518 to 528 in ad2fad1
| @Override | |
| public boolean canApply(Category left, Category right) | |
| { | |
| if (left.isFunctor() && right.isFunctor() && left.getLeft().isFunctor()) { | |
| Category leftLeft = left.getLeft(); | |
| return right.getRight().matches(leftLeft.getLeft()) && leftLeft.getSlash() == leftSlash && right.getSlash() == rightSlash | |
| && !(english && left.getLeft().isNounOrNP()); // Additional constraint from Steedman (2000) | |
| } else { | |
| return false; | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels