Package | Description |
---|---|
edu.mit.jmwe.data.concordance |
Provides interfaces and classes for accessing data taken Semcor-formatted concordances, useful for benchmarking detectors.
|
edu.mit.jmwe.harness |
Provides testing harness infrastructure
|
edu.mit.jmwe.harness.result |
Provides objects that encapsulate the results of a test harness run
|
edu.mit.jmwe.harness.result.error |
Provides error detectors to evaluate the results of a test harness run
|
Modifier and Type | Interface and Description |
---|---|
interface |
IConcordanceSentence
A sentence drawn from the Semcor corpus.
|
Modifier and Type | Class and Description |
---|---|
class |
ConcordanceSentence
Default implementation of
ISemcorSentence |
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.
|
<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.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. |
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 | Method and Description |
---|---|
<T extends IToken> |
IAnswerKey.getAnswers(IMarkedSentence<T> sentence)
Gets the answer multi-word expressions from the given sentence.
|
<T extends IToken> |
ConcordanceAnswerKey.getAnswers(IMarkedSentence<T> sent) |
<T extends IToken> |
ConcordanceAnswerKey.getAnswers(IMarkedSentence<T> sent,
edu.mit.jsemcor.element.ISentence answers)
Extracts a set of MWE answers from a sentence and its corresponding
answer sentence.
|
protected <T extends IToken> |
ConcordanceAnswerKey.getContinuousMWEs(IMarkedSentence<T> sent,
edu.mit.jsemcor.element.ISentence answer,
java.util.Set<edu.mit.jsemcor.element.IWordform> used)
Gets the multi-word expressions from the given sentence that are marked
as single tokens.
|
protected <T extends IToken> |
ConcordanceAnswerKey.getNonContinuousMWEs(IMarkedSentence<T> sent,
edu.mit.jsemcor.element.ISentence answer,
java.util.Set<edu.mit.jsemcor.element.IWordform> used)
Gets the multi-word expressions from the given sentence that are
non-contiguous (e.g., have a distance value not equal to zero).
|
static edu.mit.jsemcor.element.ISentence |
ConcordanceAnswerKey.getSentence(java.util.Map<java.lang.String,edu.mit.jsemcor.main.IConcordance> concords,
IMarkedSentence<?> sent)
Returns the concordance sentence that corresponds to the specified marked
sentence
|
Modifier and Type | Interface and Description |
---|---|
interface |
IOverallResult<T extends IToken,S extends IMarkedSentence<T>>
Contains results collected from running a test harness over a group of
IMarkedSentence objects. |
interface |
IResultBuilder<T extends IToken,S extends IMarkedSentence<T>>
Classes implementing this interface build an
IOverallResult object. |
interface |
ISentenceResult<T extends IToken,S extends IMarkedSentence<T>>
Contains results for one
IMarkedSentence object. |
class |
MWEResult<T extends IToken,S extends IMarkedSentence<T>>
Default implementation of
IOverallResult interface. |
class |
MWEResultBuilder<T extends IToken,S extends IMarkedSentence<T>>
Builds an
MWEResult by processing the data in ISentenceResult
objects. |
class |
SentenceResult<T extends IToken,S extends IMarkedSentence<T>>
Default implementation of the
ISentenceResult interface. |
class |
TokenResultBuilder<T extends IToken,U extends IMarkedSentence<T>>
A result builder that keeps track of token-level results.
|
Modifier and Type | Method and Description |
---|---|
static <T extends IToken,S extends IMarkedSentence<T>> |
SentenceResult.printTable(java.lang.StringBuilder sb,
ISentenceResult<T,S> result,
java.util.Formatter f)
Prints a table of the correct, false negative and false positive
expressions found by the detector in columns.
|
static <T extends IToken,S extends IMarkedSentence<T>> |
SentenceResult.toString(ISentenceResult<T,S> result,
S sentence,
boolean table)
Creates a graphical representation of the multi-word expressions found by
the detector for a given sentence.
|
static <T extends IToken,U extends IMarkedSentence<T>> |
SentenceResult.toString(ISentenceResult<T,U> result,
U sentence)
Creates a graphical representation of the multi-word expressions found by
the detector for a given sentence.
|
Modifier and Type | Method and Description |
---|---|
<T extends IToken,S extends IMarkedSentence<T>> |
VBDVBN.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
UntaggedPNoun.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
MissingFromIndex.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
InflectionPatternError.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
InflectionError.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
IErrorDetector.detect(ISentenceResult<T,S> result)
Identifies the multi-word expressions in a unit result that fall under
the specific error class this detector identifies.
|
<T extends IToken,S extends IMarkedSentence<T>> |
ExtraPrep.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
ExtraPOS.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
DetectorDisagreement.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
CompositeErrorDetector.detect(ISentenceResult<T,S> result) |
<T extends IToken,S extends IMarkedSentence<T>> |
AllStopWords.detect(ISentenceResult<T,S> result) |
<T extends IToken,U extends IMarkedSentence<T>> |
WrongPOS.detect(ISentenceResult<T,U> result) |
<T extends IToken,U extends IMarkedSentence<T>> |
PNounShort.detect(ISentenceResult<T,U> result) |
<T extends IToken,U extends IMarkedSentence<T>> |
PNounLong.detect(ISentenceResult<T,U> result) |
<T extends IToken,U extends IMarkedSentence<T>> |
OutOfOrder.detect(ISentenceResult<T,U> result) |
<T extends IToken,U extends IMarkedSentence<T>> |
InterstitialTokens.detect(ISentenceResult<T,U> result) |
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.
|
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.