|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.harness.result.error.AbstractErrorDetector
edu.mit.jmwe.harness.result.error.VBDVBN
public class VBDVBN
Finds the two-token MWEs that have the tag sequence VBD_VBN.
Field Summary | |
---|---|
static String |
ID
The ID for this error detector, "edu.mit.jmwe.error.VBDVBN" |
Constructor Summary | |
---|---|
protected |
VBDVBN()
This constructor is marked protected so that this class may be subclassed, but not directly instantiated. |
Method Summary | ||
---|---|---|
|
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
|
isProblem(IMWE<T> mwe)
Determines if the specified MWE is a problem according to this error class. |
Methods inherited from class edu.mit.jmwe.harness.result.error.AbstractErrorDetector |
---|
getID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
Constructor Detail |
---|
protected VBDVBN()
Method Detail |
---|
public static VBDVBN getInstance()
public <T extends IToken,S extends IMarkedSentence<T>> IErrorResult<T> detect(ISentenceResult<T,S> result)
IErrorDetector
T
- 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
unit
public static <T extends IToken> boolean isProblem(IMWE<T> mwe)
T
- the token type of the MWEmwe
- the MWE in question, may not be null
true
if the MWE is a problem; false
otherwise.
NullPointerException
- if the specified mwe is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |