Package | Description |
---|---|
edu.mit.jmwe.data |
Provides the basic data structures used by the library and their default 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.index |
Provides the MWE index interfaces and default implementations, which allow one to look up an MWE given one of its parts.
|
edu.mit.jmwe.util |
Provides utility classes used by many classes across the library
|
Modifier and Type | Method and Description |
---|---|
static MWEPOS |
MWEPOS.fromChar(char identifier)
This convenience method allows retrieval of the
MWEPOS object
given the part of speech character. |
MWEPOS |
RootMWEDesc.getPOS() |
MWEPOS |
MWEDescID.getPOS() |
MWEPOS |
InfMWEDesc.getPOS() |
MWEPOS |
IHasMWEPOS.getPOS()
Returns the part of speech of this object.
|
static MWEPOS |
MWEPOS.toMWEPOS(java.lang.String tag)
This convenience method allows retrieval of the
MWEPOS object
given the part of speech tag as a String. |
static MWEPOS |
MWEPOS.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MWEPOS[] |
MWEPOS.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
MWEDescID(java.lang.String rootForm,
MWEPOS pos)
Constructs this description ID from the MWE's root (non inflected) form
and part of speech.
|
RootMWEDesc(java.util.List<java.lang.String> parts,
MWEPOS pos)
Constructs a new MWE description object from the specified list of parts
and part of speech, that has no inflected forms
|
RootMWEDesc(java.util.List<java.lang.String> parts,
MWEPOS pos,
java.util.Collection<? extends InfMWEDesc.InfMWEDescBuilder> inflectedForms,
int... counts)
Constructs a new MWE description object from the specified list of parts,
inflected forms, part of speech, and counts relating to the MWE's
appearance in the reference concordance.
|
RootMWEDesc(java.lang.String surfaceForm,
MWEPOS pos)
Constructs a new MWE description object from the specified surface form
and part of speech, that has no inflected forms
|
RootMWEDesc(java.lang.String surfaceForm,
MWEPOS pos,
java.util.Collection<? extends InfMWEDesc.InfMWEDescBuilder> inflectedForms,
int... counts)
Constructs a new MWE description object from the specified surface form,
inflected forms, part of speech, and counts relating to the MWE's
appearance in the reference concordance.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
LeskScore.getGlosses(java.lang.String lemma,
MWEPOS pos)
Returns a list of the glosses of a word or MWE by looking up its lemma
and part of speech in the dictionary.
|
Modifier and Type | Method and Description |
---|---|
protected MWEPOS |
ConcordanceAnswerKey.disambiguatePOS(java.util.List<edu.mit.jsemcor.element.IWordform> mwe)
Attempts to disambiguate the part of speech of a multi-expression that
does not have a semantic tag and whose parts are labeled with different
part of speech tags.
|
protected MWEPOS |
ConcordanceAnswerKey.getMWEPOS(java.lang.String lexSense)
Given the lexical sense of a word form, extracts the one digit decimal
integer representing the synset type of the sense and returns the
corresponding part of speech.
|
Modifier and Type | Field and Description |
---|---|
java.util.Map<MWEPOS,java.util.concurrent.atomic.AtomicInteger> |
MWEResultBuilder.answerData |
java.util.Map<MWEPOS,java.util.concurrent.atomic.AtomicInteger> |
MWEResultBuilder.correctData |
java.util.Map<MWEPOS,java.util.concurrent.atomic.AtomicInteger> |
MWEResultBuilder.foundData |
java.util.Map<MWEPOS,AtomicDouble<T,S>> |
MWEResultBuilder.partialScores |
Modifier and Type | Method and Description |
---|---|
java.util.Map<MWEPOS,java.lang.Integer> |
MWEResult.getAnswerData() |
java.util.Map<MWEPOS,java.lang.Integer> |
IOverallResult.getAnswerData()
Returns a map that stores the number of answer multi-word expressions for
each part of speech.
|
java.util.Map<MWEPOS,java.lang.Integer> |
MWEResult.getCorrectData() |
java.util.Map<MWEPOS,java.lang.Integer> |
IOverallResult.getCorrectData()
Returns a map that stores the number of multi-word expressions correctly
found by the detector for each part of speech.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getF1Scores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getF1Scores()
Returns a map that stores the f1 measures of the detector for each part
of speech.
|
java.util.Map<MWEPOS,java.lang.Integer> |
MWEResult.getFoundData() |
java.util.Map<MWEPOS,java.lang.Integer> |
IOverallResult.getFoundData()
Returns a map that stores the number of multi-word expressions found by
the detector for each part of speech.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getPartialF1Scores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getPartialF1Scores()
Returns a map that stores the f1 measure of the detector for each part of
speech after adding the partial credit to its correct score.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getPartialPrecisionScores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getPartialPrecisionScores()
Returns a map that stores the precision of the detector for each part of
speech after adding the partial credit to its correct score.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getPartialRecallScores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getPartialRecallScores()
Returns a map that stores the recall of the detector for
each part of speech after adding the partial credit to its correct score.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getPartialScores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getPartialScores()
Returns a map that stores the partial credit for the partially correct
multi-word expressions found by the detector for each part of speech.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getPrecisionScores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getPrecisionScores()
Returns a map that stores the precision of the detector for
each part of speech.
|
java.util.Map<MWEPOS,java.lang.Double> |
MWEResult.getRecallScores() |
java.util.Map<MWEPOS,java.lang.Double> |
IOverallResult.getRecallScores()
Returns a map that stores the recall of the detector for each part of
speech.
|
protected java.util.Map<MWEPOS,AtomicDouble<T,S>> |
MWEResultBuilder.initDoubleMap()
Provides a new, empty map for double values.
|
protected java.util.Map<MWEPOS,java.util.concurrent.atomic.AtomicInteger> |
MWEResultBuilder.initIntegerMap()
Provides a new map for integer values.
|
protected java.util.Map<MWEPOS,java.lang.Double> |
MWEResultBuilder.toDblMap(java.util.Map<MWEPOS,AtomicDouble<T,S>> map)
Converts a map of AtomicDoubles to a map of Doubles.
|
protected java.util.Map<MWEPOS,java.lang.Integer> |
MWEResultBuilder.toIntMap(java.util.Map<MWEPOS,java.util.concurrent.atomic.AtomicInteger> map)
Converts a map of AtomicIntegers to a map of Integers.
|
Modifier and Type | Method and Description |
---|---|
protected double |
MWEResult.calcPartialPrecision(MWEPOS pos)
Calculates the precision over the specified part of speech, taking into
account partial credit for the specified MWE part of speech.
|
protected double |
MWEResult.calcPartialRecall(MWEPOS pos)
Calculates the recall over the specified part of speech, taking into
account partial credit for the specified MWE part of speech.
|
protected double |
MWEResult.calcPrecision(MWEPOS pos)
Calculates the precision over the specified parts of speech, or all parts of
speech if the specified part of speech is
null |
protected double |
MWEResult.calcRecall(MWEPOS pos)
Calculates the recall over the specified parts of speech, or all parts of
speech if the specified part of speech is
null |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<MWEPOS,java.lang.Double> |
MWEResultBuilder.toDblMap(java.util.Map<MWEPOS,AtomicDouble<T,S>> map)
Converts a map of AtomicDoubles to a map of Doubles.
|
protected java.util.Map<MWEPOS,java.lang.Integer> |
MWEResultBuilder.toIntMap(java.util.Map<MWEPOS,java.util.concurrent.atomic.AtomicInteger> map)
Converts a map of AtomicIntegers to a map of Integers.
|
Constructor and Description |
---|
MWEResult(java.util.Map<MWEPOS,java.lang.Integer> answer,
java.util.Map<MWEPOS,java.lang.Integer> found,
java.util.Map<MWEPOS,java.lang.Integer> correct,
java.util.Map<MWEPOS,java.lang.Double> partial,
java.util.Map<java.lang.String,ISentenceResult<T,S>> detailed)
Constructs the result from the answer, found and correct data, and the
precision, recall and partial credit scores.
|
MWEResult(java.util.Map<MWEPOS,java.lang.Integer> answer,
java.util.Map<MWEPOS,java.lang.Integer> found,
java.util.Map<MWEPOS,java.lang.Integer> correct,
java.util.Map<MWEPOS,java.lang.Double> partial,
java.util.Map<java.lang.String,ISentenceResult<T,S>> detailed)
Constructs the result from the answer, found and correct data, and the
precision, recall and partial credit scores.
|
MWEResult(java.util.Map<MWEPOS,java.lang.Integer> answer,
java.util.Map<MWEPOS,java.lang.Integer> found,
java.util.Map<MWEPOS,java.lang.Integer> correct,
java.util.Map<MWEPOS,java.lang.Double> partial,
java.util.Map<java.lang.String,ISentenceResult<T,S>> detailed)
Constructs the result from the answer, found and correct data, and the
precision, recall and partial credit scores.
|
MWEResult(java.util.Map<MWEPOS,java.lang.Integer> answer,
java.util.Map<MWEPOS,java.lang.Integer> found,
java.util.Map<MWEPOS,java.lang.Integer> correct,
java.util.Map<MWEPOS,java.lang.Double> partial,
java.util.Map<java.lang.String,ISentenceResult<T,S>> detailed)
Constructs the result from the answer, found and correct data, and the
precision, recall and partial credit scores.
|
Modifier and Type | Method and Description |
---|---|
static MWEPOS |
IndexBuilder.toMWEPOS(edu.mit.jsemcor.element.ISemanticTag tag)
Translates the JSemcor
ISemanticTag to a jMWE MWEPOS
object. |
Modifier and Type | Method and Description |
---|---|
IInfMWEDesc |
InMemoryMWEIndex.getInflectedMWEDesc(java.lang.String lemma,
MWEPOS pos,
java.lang.String inflected) |
IInfMWEDesc |
IMWEIndex.getInflectedMWEDesc(java.lang.String lemma,
MWEPOS pos,
java.lang.String inflected)
Returns the inflected MWE description for the specified root lemma, part
of speech, and inflected form, or
null if this index does
not contain said description. |
IRootMWEDesc |
InMemoryMWEIndex.getRootMWEDesc(java.lang.String lemma,
MWEPOS pos) |
IRootMWEDesc |
IMWEIndex.getRootMWEDesc(java.lang.String lemma,
MWEPOS pos)
Returns the root MWE description for the specified lemma and part of
speech, or
null if this index does not contain said
description. |
Constructor and Description |
---|
MutableRootMWEDesc(java.lang.String surfaceForm,
MWEPOS pos)
Constructs the mutable root description that has no inflected forms
with the given surface form and pos, initialized with zero for all 5
counts
|
Modifier and Type | Method and Description |
---|---|
static MWEPOS |
JWIPOS.toMWEPOS(edu.mit.jwi.item.POS pos)
Translates a JWI
POS object into a jMWE MWEPOS object. |
Modifier and Type | Method and Description |
---|---|
static edu.mit.jwi.item.POS |
JWIPOS.toPOS(MWEPOS pos)
Translates a jMWE
MWEPOS object into a JWI POS object. |
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.