edu.mit.jmwe.harness.result.error
Class InflectionPatternError
java.lang.Object
edu.mit.jmwe.harness.result.error.AbstractErrorDetector
edu.mit.jmwe.harness.result.error.InflectionPatternError
- All Implemented Interfaces:
- IHasID, IErrorDetector
public class InflectionPatternError
- extends AbstractErrorDetector
Identifies those multi-word expressions that do not follow the inflection
patterns listed in the InflectionRule
enum. This includes multi-word
expressions that syntactically match a rule, but whose parts do not inflect
according to the rule as well as those expressions that do not match any
rule.
- Since:
- jMWE 1.0.0
- Version:
- $Id: InflectionPatternError.java 615 2011-05-07 00:02:36Z markaf $
- Author:
- N. Kulkarni
Field Summary |
static String |
ID
The ID for this error detector, "edu.mit.jmwe.error.PAT" |
Constructor Summary |
protected |
InflectionPatternError()
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 InflectionPatternError |
getInstance()
Returns the singleton instance of this class, instantiating if necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- The ID for this error detector, "edu.mit.jmwe.error.PAT"
- Since:
- jMWE 1.0.0
- See Also:
- Constant Field Values
InflectionPatternError
protected InflectionPatternError()
- This constructor is marked protected so that this class may be
subclassed, but not directly instantiated.
- Since:
- jMWE 1.0.0
getInstance
public static InflectionPatternError getInstance()
- Returns the singleton instance of this class, instantiating if necessary.
- Returns:
- the singleton instance of this class
- Since:
- jMWE 1.0.0
detect
public <T extends IToken,S extends IMarkedSentence<T>> IErrorResult<T> detect(ISentenceResult<T,S> result)
- Description copied from interface:
IErrorDetector
- Identifies the multi-word expressions in a unit result that fall under
the specific error class this detector identifies.
- Type Parameters:
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.- Parameters:
result
- the sentence result obtained by running an IMWEDetector over a
unit
- Returns:
- an error result containing the MWEs identified by this error
detector
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.