public class PNounShort extends AbstractErrorDetector
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
The ID for this error detector, "edu.mit.jmwe.error.PNounShort"
|
| Modifier | Constructor and Description |
|---|---|
protected |
PNounShort()
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,U extends IMarkedSentence<T>> |
detect(ISentenceResult<T,U> result)
Identifies the multi-word expressions in a unit result that fall under
the specific error class this detector identifies.
|
static PNounShort |
getInstance()
Returns the singleton instance of this class, instantiating if necessary.
|
getIDpublic static final java.lang.String ID
protected PNounShort()
public static PNounShort getInstance()
public <T extends IToken,U extends IMarkedSentence<T>> IErrorResult<T> detect(ISentenceResult<T,U> result)
IErrorDetectorT - the type of tokens contained in the unit.U - 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
unitCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.