public class VBDVBN extends AbstractErrorDetector
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
The ID for this error detector, "edu.mit.jmwe.error.VBDVBN"
|
| Modifier | Constructor and Description |
|---|---|
protected |
VBDVBN()
This constructor is marked protected so that this class may be
subclassed, but not directly instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IToken,S extends IMarkedSentence<T>> |
detect(ISentenceResult<T,S> result)
Identifies the multi-word expressions in a unit result that fall under
the specific error class this detector identifies.
|
static VBDVBN |
getInstance()
Returns the singleton instance of this class, instantiating if necessary.
|
static <T extends IToken> |
isProblem(IMWE<T> mwe)
Determines if the specified MWE is a problem according to this error
class.
|
getIDpublic static final java.lang.String ID
protected VBDVBN()
public static VBDVBN getInstance()
public <T extends IToken,S extends IMarkedSentence<T>> IErrorResult<T> detect(ISentenceResult<T,S> result)
IErrorDetectorT - the type of tokens contained in the unit.S - the type of marked sentence whose results are stored. Is
parameterized by tokens of type T.result - the sentence result obtained by running an IMWEDetector over a
unitpublic static <T extends IToken> boolean isProblem(IMWE<T> mwe)
T - the token type of the MWEmwe - the MWE in question, may not be nulltrue if the MWE is a problem; false
otherwise.java.lang.NullPointerException - if the specified mwe is nullCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.