com.aliasi.coref.matchers
Class GenderKiller
java.lang.Object
com.aliasi.coref.matchers.GenderKiller
- All Implemented Interfaces:
- Killer
public class GenderKiller
- extends Object
- implements Killer
Implements a killing function that defeats a match of a mention
against a mention chain with an incompatible gender.
- Since:
- LingPipe1.0
- Version:
- 1.0
- Author:
- Bob Carpenter
|
Constructor Summary |
GenderKiller()
Construct a new gender killer. |
|
Method Summary |
boolean |
kill(Mention mention,
MentionChain chain)
Returns true if the specified mention and
mention chain have incompatible genders. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenderKiller
public GenderKiller()
- Construct a new gender killer.
kill
public boolean kill(Mention mention,
MentionChain chain)
- Returns
true if the specified mention and
mention chain have incompatible genders. Genders are
incompatible if they are both non-null, but not equals.
- Specified by:
kill in interface Killer
- Parameters:
mention - Mention to test.chain - Mention chain to test.
- Returns:
true if the specified mention and
chain have incompatible genders.