Package | Description |
---|---|
edu.mit.jmwe.detect |
Provides MWE detector API, a baseline detector, plus numerous other detector implementations.
|
edu.mit.jmwe.harness |
Provides testing harness infrastructure
|
edu.mit.jmwe.harness.result.error |
Provides error detectors to evaluate the results of a test harness run
|
edu.mit.jmwe.index |
Provides the MWE index interfaces and default implementations, which allow one to look up an MWE given one of its parts.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IMWEDetectorFilter
An interface for MWE detectors that act as filters for other MWE detectors
|
interface |
IMWEDetectorResolver
An interface for MWE detectors that resolve conflicts between identified MWEs
from other detectors.
|
Modifier and Type | Class and Description |
---|---|
class |
Baseline
A baseline implementation of the
IMWEDetector interface. |
class |
CompositeDetector
A detector composed of multiple simpler detectors.
|
class |
Consecutive
Detector that uses an index to detect the MWEs whose parts appear
continuously in the sentence.
|
class |
ConstrainLength
A detector filter that constrains MWEs by length.
|
class |
Continuous
A detector that filters the results of its backing detector to return only
those MWEs whose parts are continuous in the sentence.
|
class |
Exhaustive
Implements an exhaustive algorithm that detects all possible non-stop-word
MWEs in a sentence, including MWEs that are out of order or discontinuous.
|
class |
FilterByScore
Removes all MWEs from the wrapped detector's results whose score is
"no good", where "no good" is implementation dependent.
|
class |
InflectionLookup
Uses a given MWE detector to find multi-word expressions in a sentence but
discards inflected multi-word expressions whose form is not listed as a valid
inflected form by its associated
IMWEDesc . |
class |
InflectionPattern
Uses a given
IMWEDetector to find multi-word expressions in a
sentence but discards inflected multi-word expressions if the inflected form
does not correspond to an inflection pattern give by a set of inflection
rules. |
class |
InOrder
Filters the output of a given MWE detector, removing those MWEs whose parts
appear do not appear in the sentence in the same order as they appear in the MWE description.
|
class |
Leftmost
A resolver that chooses the leftmost MWE.
|
class |
LeskAtLeast
A filter detector that throws out MWEs whose lesk score is less than some value.
|
class |
LMLR
Stands for "Longest Match, Left to Right".
|
class |
Longest
A detector resolver that chooses the longest MWEs in a set of conflicts.
|
class |
MoreFrequentAsMWE
Filters the results of its backing detector to include only those MWEs whose
parts, in a continuous run of tokens, are more often marked as an MWE than as
individual tokens.
|
class |
NoInflection
A detector that filters the results of its backing detector to return only
those MWEs that are not inflected.
|
class |
NoProperNouns
A detector that filters all proper noun MWEs from the results of its backing detector.
|
class |
Perfect
A detector that finds all of the MWEs in a sentence by using an answer key.
|
class |
ProperNouns
Detects the proper nouns in an ISentence.
|
class |
ResolveByScore
Abstract base class for MWE detector resolvers that use a simple score to
resolve conflicts.
|
class |
SmallestVariance
A detector resolver that chooses the MWE with the smallest variance.
|
class |
StopWords
Uses the exhaustive strategy specified in
Exhaustive to find the MWEs
that consist entirely of stop words in a sentence. |
class |
TrulyExhaustive
Returns a composite detector backed by the
Exhaustive and
StopWords detection strategies. |
Modifier and Type | Method and Description |
---|---|
IMWEDetector |
CompositeDetector.get(int index) |
IMWEDetector |
IHasMWEDetector.getWrappedDetector()
Returns the MWE detector associated with this contraint detector.
|
IMWEDetector |
HasMWEDetector.getWrappedDetector() |
Constructor and Description |
---|
CompositeDetector(IMWEDetector... ds)
Constructs a composite detector from an array of detectors.
|
ConstrainLength(IMWEDetector detector,
int length,
boolean isMaxLength)
Construct a new filter on top of the specified detector
|
Continuous(IMWEDetector d)
Constructs the detector from the given backing detector.
|
FilterByScore(IMWEDetector detector)
Constructs a new MWE detector constraint that wraps the specified MWE Detector.
|
HasMWEDetector(IMWEDetector detector)
Constructs a new MWE detector constraint that wraps the specified MWE Detector.
|
InflectionLookup(IMWEDetector d)
Constructs the detector from the given backing detector.
|
InflectionPattern(IMWEDetector d)
Constructs the detector from the given backing detector.
|
InOrder(IMWEDetector d)
Constructs the detector from the given backing detector.
|
Leftmost(IMWEDetector detector)
Constructs a new resolver that wraps the specified detector
|
LeskAtLeast(IMWEDetector detector,
edu.mit.jwi.IDictionary dict,
int minScore)
Constructs a new filter that filters out MWEs whose lesk score is not at
least some value.
|
LMLR(IMWEDetector detector)
Constructs the detector from the backing detector.
|
Longest(IMWEDetector detector)
Constructs a new instance of this detector.
|
MoreFrequentAsMWE(IMWEDetector detector)
Constructs the detector from the given backing detector.
|
NoInflection(IMWEDetector detector)
Constructs the detector from the given backing detector.
|
NoProperNouns(IMWEDetector detector)
Constructs the detector from the given backing detector.
|
ResolveByScore(IMWEDetector detector,
boolean chooseLargest)
Constructs a new MWE detector constraint that wraps the specified MWE
Detector.
|
SmallestVariance(IMWEDetector detector)
A new resolver that wraps the specified detector.
|
Constructor and Description |
---|
CompositeDetector(java.util.List<? extends IMWEDetector> ds)
Constructs a composite detector from a list of detectors.
|
Modifier and Type | Method and Description |
---|---|
<T extends IToken,S extends IMarkedSentence<T>> |
TestHarness.run(IMWEDetector detector,
IResultBuilder<T,S> result,
java.util.Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb) |
<T extends IToken,S extends IMarkedSentence<T>> |
ITestHarness.run(IMWEDetector detector,
IResultBuilder<T,S> results,
java.util.Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb)
Runs the detector in the test harness and stores the results in the
provided result builder.
|
protected <T extends IToken,S extends IMarkedSentence<T>> |
TestHarness.runDetector(IMWEDetector detector,
IResultBuilder<T,S> builder,
S sent,
java.util.List<IMWE<T>> answers)
Runs the detector over a single sentence, storing the result as an
ISentenceResult in the given result builder. |
Modifier and Type | Method and Description |
---|---|
<T extends IToken,S extends IMarkedSentence<T>> |
TestHarness.run(java.util.Map<IMWEDetector,IResultBuilder<T,S>> detectors,
java.util.Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb) |
<T extends IToken,S extends IMarkedSentence<T>> |
ITestHarness.run(java.util.Map<IMWEDetector,IResultBuilder<T,S>> detectors,
java.util.Iterator<S> itr,
IAnswerKey answers,
IProgressBar pb)
Runs the detectors in the test harness and stores the results in the
associated result builder.
|
protected <T extends IToken,S extends IMarkedSentence<T>> |
TestHarness.runDetectors(java.util.Map<IMWEDetector,IResultBuilder<T,S>> detectors,
S sent,
java.util.List<IMWE<T>> answers)
Runs a set of detectors on the specified sentence, comparing the results
to the specified answers.
|
Modifier and Type | Field and Description |
---|---|
protected IMWEDetector |
DetectorDisagreement.d |
Modifier and Type | Method and Description |
---|---|
IMWEDetector |
DetectorDisagreement.getDetector()
Returns the MWE detector for this error detector.
|
Modifier and Type | Method and Description |
---|---|
static <T extends IToken,S extends IMarkedSentence<T>> |
DetectorDisagreement.isProblem(IMWE<T> mwe,
ISentenceResult<T,S> result,
IMWEDetector detector)
Determines if the specified MWE is a problem relative to the specified
sentence according to this error class.
|
Constructor and Description |
---|
DetectorDisagreement(IMWEDetector d)
Constructs a new error detector that uses the specified MWE detector for
backing.
|
Modifier and Type | Method and Description |
---|---|
protected IMWEDetector |
IndexBuilder.getUmarkedDetector(IMWEIndex index)
Creates a detector that can be used to find sequences of tokens
(inflected or not) that match an MWE description, but are not marked as
an MWE.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexBuilder.countUnmarked(IMWEDetector detector,
IConcordanceSentence sent,
java.util.List<IMWE<IConcordanceToken>> answers)
Counts the number of MWEs that are detected by the specified detected,
but not marked in the answer set as being MWEs.
|
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.