If left.getLeft().isFunctor() is true than left.getLeft().isNounOrNP() is false, right?
|
@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; |
|
} |
|
} |
If
left.getLeft().isFunctor()is true thanleft.getLeft().isNounOrNP()is false, right?easyccg/src/uk/ac/ed/easyccg/syntax/Combinator.java
Lines 518 to 528 in ad2fad1