Package | Description |
---|---|
edu.mit.jmwe.data |
Provides the basic data structures used by the library and their default implementations.
|
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 | Class and Description |
---|---|
class |
MWEDescID
Default implementation of
IMWEDescID . |
Modifier and Type | Method and Description |
---|---|
IMWEDescID |
RootMWEDesc.getID() |
IMWEDescID |
InfMWEDesc.getID() |
IMWEDescID |
IMWEDesc.getID()
Returns the IMWEDescID associated with this description.
|
IMWEDescID |
MWEDescID.getRootID() |
IMWEDescID |
IMWEDescID.getRootID()
Returns the root ID of this decription ID.
|
Modifier and Type | Method and Description |
---|---|
int |
MWEDescID.compareTo(IMWEDescID id) |
static java.lang.String |
MWEDescID.toString(IMWEDescID id)
Returns the String representation of the given id.
|
static void |
MWEDescID.toString(IMWEDescID id,
java.lang.Appendable buf)
Returns the String representation of the given id as: form_POS/infform
|
Constructor and Description |
---|
MWEDescID(IMWEDescID rootID,
java.lang.String infForm)
Constructs this description ID from the MWE's root ID and inflected form.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<IMWEDescID,? extends IRootMWEDesc> |
MWEIndex.createData() |
protected abstract java.util.Map<IMWEDescID,? extends IRootMWEDesc> |
InMemoryMWEIndex.createData() |
static java.util.Map<IMWEDescID,IRootMWEDesc> |
InMemoryMWEIndex.createData(java.lang.Iterable<java.lang.String> descStrs)
Utility method that assembles a MWE index data map from a list of
multi-word expression string descriptions.
|
static java.util.Map<IMWEDescID,IRootMWEDesc> |
InMemoryMWEIndex.createData(java.io.Reader r)
Utility method that assembles a MWE index data map from a stream of
characters that contains a whitespace-delimited list of multi-word
expressions.
|
java.util.Map<IMWEDescID,IndexBuilder.MutableRootMWEDesc> |
IndexBuilder.extractMWEs(edu.mit.jwi.IDictionary dict)
Retrieves multi-word expressions from the specified
IDictionary
object and returns them as a map. |
Modifier and Type | Method and Description |
---|---|
IMWEDesc |
InMemoryMWEIndex.get(IMWEDescID id) |
IMWEDesc |
IMWEIndex.get(IMWEDescID id)
Returns the MWE description for the specified ID, or
null if
this index does not contain said description. |
Modifier and Type | Method and Description |
---|---|
void |
IndexBuilder.countMarked(java.util.List<IMWE<IConcordanceToken>> answers,
java.util.Map<IMWEDescID,IndexBuilder.MutableRootMWEDesc> index)
Counts instances of marked MWEs
|
protected java.util.Map<java.lang.String,? extends IMWEDescSet> |
InMemoryMWEIndex.createIndex(java.util.Map<IMWEDescID,? extends IRootMWEDesc> data)
Uses the given map of description IDs to root descriptions in order to
create the index.
|
<T extends IToken> |
IndexBuilder.findMissingMWEs(java.util.List<IMWE<T>> mwes,
java.util.Map<IMWEDescID,IndexBuilder.MutableRootMWEDesc> index,
java.util.Set<IndexBuilder.MutableRootMWEDesc> missing)
Finds MWEs that are marked in the the specified list, but not in the
index.
|
void |
IndexBuilder.printTotals(java.util.Map<IMWEDescID,IndexBuilder.MutableRootMWEDesc> entries)
Sums all the counts of the MWEs in the given map and prints the totals.
|
Constructor and Description |
---|
MWEIndex(java.util.Map<IMWEDescID,? extends IRootMWEDesc> rootDescs)
Constructs the index from a map of IMWEDescIDs to IRootMWEDescs.
|
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.