Uses of Interface
edu.mit.jmwe.data.IMWE

Packages that use IMWE
edu.mit.jmwe.data Provides the basic data structures used by the library and their default implementations. 
edu.mit.jmwe.detect Provides MWE detector API, a baseline detector, plus numerous other detector implementations. 
edu.mit.jmwe.detect.score Provides various scoring mechanisms that can be used by subclasses of the FilterByScore and ResolveByScore 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 
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. 
 

Uses of IMWE in edu.mit.jmwe.data
 

Classes in edu.mit.jmwe.data that implement IMWE
 class MWE<T extends IToken>
          Default implementation of the IMWE interface.
 

Methods in edu.mit.jmwe.data with parameters of type IMWE
 int MWEComparator.compare(IMWE<T> one, IMWE<T> two)
           
 int MWEComparator.compare(IMWE<T> one, IMWE<T> two)
           
protected  boolean MWEComparator.earlier(IMWE<T> one, IMWE<T> two)
          Internal method used to determine if one multi-word expression appears in the sentence before another.
protected  boolean MWEComparator.earlier(IMWE<T> one, IMWE<T> two)
          Internal method used to determine if one multi-word expression appears in the sentence before another.
static boolean MWE.equals(IMWE<?> one, IMWE<?> two)
          Returns true if the two MWEs use the same tokens and are assigned the same root entries.
static boolean MWE.equals(IMWE<?> one, IMWE<?> two)
          Returns true if the two MWEs use the same tokens and are assigned the same root entries.
static double MWE.overlap(IMWE<?> one, IMWE<?> two)
          Returns a score which is the ratio of the number of tokens shared between the two MWEs and the total number of unique tokens in both MWEs together.
static double MWE.overlap(IMWE<?> one, IMWE<?> two)
          Returns a score which is the ratio of the number of tokens shared between the two MWEs and the total number of unique tokens in both MWEs together.
 

Uses of IMWE in edu.mit.jmwe.detect
 

Methods in edu.mit.jmwe.detect that return IMWE
static
<T extends IToken>
IMWE<T>
LMLR.longest(IMWE<T> one, IMWE<T> two, Comparator<T> c)
          Compares two MWEs and returns the longest MWE.
 IMWE<T> MWEBuilder.toMWE()
          Converts the tokens in a full record into an IMWE object.
 

Methods in edu.mit.jmwe.detect that return types with arguments of type IMWE
<T extends IToken>
List<IMWE<T>>
StopWords.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
ResolveByScore.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
ProperNouns.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
Perfect.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
NoProperNouns.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
NoInflection.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
LMLR.detect(List<T> s)
           
<T extends IToken>
List<IMWE<T>>
InOrder.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
InflectionPattern.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
InflectionLookup.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
IMWEDetector.detect(List<T> sentence)
          Given a list of tokens, the detector searches for the MWEs in the list.
<T extends IToken>
List<IMWE<T>>
HasMWEDetector.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
FilterByScore.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
Exhaustive.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
Continuous.detect(List<T> sentence)
           
<T extends IToken>
List<IMWE<T>>
Consecutive.detect(List<T> sent)
           
<T extends IToken>
List<IMWE<T>>
CompositeDetector.detect(List<T> sentence)
           
protected
<T extends IToken>
IScorer<IMWE<T>>
SmallestVariance.getScorer(List<T> sentence)
           
protected abstract
<T extends IToken>
IScorer<IMWE<T>>
ResolveByScore.getScorer(List<T> sentence)
          Returns the scoring function for this filter.
protected
<T extends IToken>
IScorer<IMWE<T>>
MoreFrequentAsMWE.getScorer(List<T> sentence)
           
protected
<T extends IToken>
IScorer<IMWE<T>>
Longest.getScorer(List<T> scorer)
           
protected
<T extends IToken>
IScorer<IMWE<T>>
LeskAtLeast.getScorer(List<T> sentence)
           
protected
<T extends IToken>
IScorer<IMWE<T>>
Leftmost.getScorer(List<T> sentence)
           
protected abstract
<T extends IToken>
IScorer<IMWE<T>>
FilterByScore.getScorer(List<T> sentence)
          Returns a scoring function for the specified sentence.
protected
<T extends IToken>
IScorer<IMWE<T>>
ConstrainLength.getScorer(List<T> sentence)
           
 

Methods in edu.mit.jmwe.detect with parameters of type IMWE
protected
<T extends IToken>
boolean
Exhaustive.containsDuplicate(Collection<? extends IMWE<T>> results, IMWE<T> mwe)
          Returns true if the given collection of MWEs already contains a particular MWE.
static
<T extends IToken>
IInfMWEDesc
InflectionLookup.getSurfaceFormDescription(IRootMWEDesc root, IMWE<T> mwe)
          Returns a multi-word expression description with a lemma that is constructed by concatenating the tokens of the MWE exactly as they appear in the sentence with underscores.
<T extends IToken>
String
InflectionRule.getTagPattern(IMWE<T> mwe)
          Concatenates the tags of each token in the MWE, separating each by underscores.
static
<T extends IToken>
boolean
InflectionRule.inflects(T token, IMWE<T> mwe)
          Returns true if a the text of a token from an MWE does not equal the corresponding part lemma.
static
<T extends IToken>
boolean
Continuous.isDiscontinuous(IMWE<T> mwe, List<T> sentence)
          Determines if the specified MWE is continuous, i.e., there are no interstitial tokens inside its boundaries that are not a part of the MWE.
static
<T extends IToken>
boolean
Continuous.isDiscontinuous(IMWE<T> mwe, Map<T,Integer> indexMap)
          Determines if the specified MWE is continuous, i.e., there are no interstitial tokens inside its boundaries that are not a part of the MWE.
static boolean InflectionRule.isInflectedByPattern(IMWE<?> mwe)
          Returns true if and only if (1) the given multi-word expressions syntactically matches a rule listed in the enumeration InflectionRule and (2) parts inflect according to that rule
static boolean InflectionRule.isInflectedByPattern(IMWE<?> mwe, Collection<? extends IInflectionRule> rules)
          Returns true if the specified MWE inflects according to some rule in the specified collection; false otherwise.
static
<T extends IToken>
boolean
InOrder.isOutOfOrder(IMWE<T> mwe)
          Determines if the constituents of the specified MWE are out of order.
<T extends IToken>
boolean
InflectionRule.isValid(IMWE<T> mwe)
           
<T extends IToken>
boolean
IInflectionRule.isValid(IMWE<T> mwe)
          Returns true if this MWE follows the rule; false otherwise.
static
<T extends IToken>
IMWE<T>
LMLR.longest(IMWE<T> one, IMWE<T> two, Comparator<T> c)
          Compares two MWEs and returns the longest MWE.
static
<T extends IToken>
IMWE<T>
LMLR.longest(IMWE<T> one, IMWE<T> two, Comparator<T> c)
          Compares two MWEs and returns the longest MWE.
<T extends IToken>
boolean
InflectionRule.matches(IMWE<T> mwe)
           
<T extends IToken>
boolean
IInflectionRule.matches(IMWE<T> mwe)
          Returns true if the given MWE has the same syntax as this rule.
 

Method parameters in edu.mit.jmwe.detect with type arguments of type IMWE
protected
<T extends IToken>
boolean
Exhaustive.containsDuplicate(Collection<? extends IMWE<T>> results, IMWE<T> mwe)
          Returns true if the given collection of MWEs already contains a particular MWE.
 

Uses of IMWE in edu.mit.jmwe.detect.score
 

Methods in edu.mit.jmwe.detect.score with parameters of type IMWE
 double VarianceScore.score(IMWE<T> mwe)
           
 double StartingIndexScore.score(IMWE<T> mwe)
           
 double LeskScore.score(IMWE<T> mwe)
           
 double LengthScore.score(IMWE<T> mwe)
           
 double FractionAsMWEScore.score(IMWE<T> mwe)
           
 

Uses of IMWE in edu.mit.jmwe.harness
 

Methods in edu.mit.jmwe.harness that return types with arguments of type IMWE
<T extends IToken>
List<IMWE<T>>
IAnswerKey.getAnswers(IMarkedSentence<T> sentence)
          Gets the answer multi-word expressions from the given sentence.
<T extends IToken>
List<IMWE<T>>
ConcordanceAnswerKey.getAnswers(IMarkedSentence<T> sent)
           
<T extends IToken>
List<IMWE<T>>
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>
List<IMWE<T>>
ConcordanceAnswerKey.getContinuousMWEs(IMarkedSentence<T> sent, edu.mit.jsemcor.element.ISentence answer, 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>
List<IMWE<T>>
ConcordanceAnswerKey.getNonContinuousMWEs(IMarkedSentence<T> sent, edu.mit.jsemcor.element.ISentence answer, 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).
protected
<T extends IToken,S extends IMarkedSentence<T>>
List<IMWE<T>>
TestHarness.runDetector(IMWEDetector detector, IResultBuilder<T,S> builder, S sent, List<IMWE<T>> answers)
          Runs the detector over a single sentence, storing the result as an ISentenceResult in the given result builder.
 

Method parameters in edu.mit.jmwe.harness with type arguments of type IMWE
protected
<T extends IToken,S extends IMarkedSentence<T>>
List<IMWE<T>>
TestHarness.runDetector(IMWEDetector detector, IResultBuilder<T,S> builder, S sent, 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>>
void
TestHarness.runDetectors(Map<IMWEDetector,IResultBuilder<T,S>> detectors, S sent, List<IMWE<T>> answers)
          Runs a set of detectors on the specified sentence, comparing the results to the specified answers.
 

Uses of IMWE in edu.mit.jmwe.harness.result
 

Methods in edu.mit.jmwe.harness.result that return types with arguments of type IMWE
 List<IMWE<T>> SentenceResult.getAnswers()
           
 List<IMWE<T>> ISentenceResult.getAnswers()
          Returns the answer multi-word expression in the sentence.
 Map<String,List<IMWE<T>>> IErrorResult.getDetails()
          Returns a Map that stores multi-word expressions under the ID of the error class they belong to.
 Map<String,List<IMWE<T>>> ErrorResult.getDetails()
           
 List<IMWE<T>> SentenceResult.getFalseNegatives()
           
 List<IMWE<T>> ISentenceResult.getFalseNegatives()
          Returns a list of the false negatives.
 List<IMWE<T>> SentenceResult.getFalsePositives()
           
 List<IMWE<T>> ISentenceResult.getFalsePositives()
          Returns a list of the false positives.
 List<IMWE<T>> SentenceResult.getFound()
           
 List<IMWE<T>> ISentenceResult.getFound()
          Returns the multi-word expression found by the detector in the sentence.
 List<IMWE<T>> SentenceResult.getTruePositives()
           
 List<IMWE<T>> ISentenceResult.getTruePositives()
          Returns a list of the true positives.
 

Method parameters in edu.mit.jmwe.harness.result with type arguments of type IMWE
 void TokenResultBuilder.process(List<IMWE<T>> found, List<IMWE<T>> answers)
           
 void TokenResultBuilder.process(List<IMWE<T>> found, List<IMWE<T>> answers)
           
 void MWEResultBuilder.process(List<IMWE<T>> found, List<IMWE<T>> answers)
           
 void MWEResultBuilder.process(List<IMWE<T>> found, List<IMWE<T>> answers)
           
 void IResultBuilder.process(List<IMWE<T>> found, List<IMWE<T>> answers)
          Updates the internal data stored in this builder by comparing the multi-word expressions found by an MWE detector to the answer multi-word expressions.
 void IResultBuilder.process(List<IMWE<T>> found, List<IMWE<T>> answers)
          Updates the internal data stored in this builder by comparing the multi-word expressions found by an MWE detector to the answer multi-word expressions.
 

Constructor parameters in edu.mit.jmwe.harness.result with type arguments of type IMWE
ErrorResult(Map<String,List<IMWE<T>>> details)
          Constructs the error result from a map that stores MWEs under the ID of the error class that they belong to.
ErrorResult(Map<String,List<IMWE<T>>> details, boolean reallocate)
          Constructs the error result from a Map that stores multi-word expressions under the ID of the error class that they belong to.This constructor may or may not allocate a new internal map, depending on the value of the reallocation flag.
ErrorResult(String errorID, List<IMWE<T>> errors)
          Constructs the error result that stores the given multi-word expressions under the given ID of the error class that they belong to.
SentenceResult(List<IMWE<T>> answer, List<IMWE<T>> retrieved, S sentence)
          Constructs a sentence result from a list of answer multi-word expressions and a list of multi-word expressions found by the detector.
SentenceResult(List<IMWE<T>> answer, List<IMWE<T>> retrieved, S sentence)
          Constructs a sentence result from a list of answer multi-word expressions and a list of multi-word expressions found by the detector.
SentenceResult(List<IMWE<T>> answer, List<IMWE<T>> retrieved, S sentence, boolean reallocate)
          Constructs a sentence result from a list of answer multi-word expressions and a list of multi-word expressions found by the detector.
SentenceResult(List<IMWE<T>> answer, List<IMWE<T>> retrieved, S sentence, boolean reallocate)
          Constructs a sentence result from a list of answer multi-word expressions and a list of multi-word expressions found by the detector.
 

Uses of IMWE in edu.mit.jmwe.harness.result.error
 

Methods in edu.mit.jmwe.harness.result.error with parameters of type IMWE
protected static
<T extends IToken>
int
ExtraPrep.findTag(IMWE<T> test, String tag)
          Returns the index of the first token in the MWE with the specified tag.
static
<T extends IToken>
boolean
InterstitialTokens.hasParticle(IMWE<T> mwe, List<T> sentence)
          Returns true if the given MWE contains a token that is a particle and is separated from the previous token in the MWE by one or more non-MWE tokens in the sentence.
static
<T extends IToken>
boolean
VBDVBN.isProblem(IMWE<T> mwe)
          Determines if the specified MWE is a problem according to this error class.
static
<T extends IToken>
boolean
MissingFromIndex.isProblem(IMWE<T> mwe, IMWEIndex index)
          Determines if the specified MWE is a problem, relative to the specified index, according to this error class.
static
<T extends IToken,S extends IMarkedSentence<T>>
boolean
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.
 

Uses of IMWE in edu.mit.jmwe.index
 

Methods in edu.mit.jmwe.index with parameters of type IMWE
protected  boolean IndexBuilder.contains(List<IMWE<IConcordanceToken>> list, IMWE<IConcordanceToken> mwe)
          Whether the specified MWE is contained in the specified list
protected
<T extends IConcordanceToken>
boolean
IndexBuilder.isSplit(IMWE<T> mwe)
          Returns true if this MWE is not continuous - if it has interstitial tokens that are not a part of it; false otherwise.
 

Method parameters in edu.mit.jmwe.index with type arguments of type IMWE
protected  boolean IndexBuilder.contains(List<IMWE<IConcordanceToken>> list, IMWE<IConcordanceToken> mwe)
          Whether the specified MWE is contained in the specified list
 void IndexBuilder.countMarked(List<IMWE<IConcordanceToken>> answers, Map<IMWEDescID,IndexBuilder.MutableRootMWEDesc> index)
          Counts instances of marked MWEs
 void IndexBuilder.countUnmarked(IMWEDetector detector, IConcordanceSentence sent, 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.
<T extends IToken>
void
IndexBuilder.findMissingMWEs(List<IMWE<T>> mwes, Map<IMWEDescID,IndexBuilder.MutableRootMWEDesc> index, Set<IndexBuilder.MutableRootMWEDesc> missing)
          Finds MWEs that are marked in the the specified list, but not in the index.
 



Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.