Package | Description |
---|---|
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.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 |
IInfMWEDesc
A description of an inflected form of a multi-word expression (MWE).
|
interface |
IRootMWEDesc
A description of a multi-word expression (MWE).
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMWEDesc<P extends IMWEDesc.IPart>
A base class for MWE descriptions that can be used to construct a description
from some combination of: a surface form, a list of parts, and counts
relating to the MWE's appearance in a reference concordance.
|
class |
InfMWEDesc
Default implementation of the
IInfMWEDesc interface. |
class |
RootMWEDesc
Default implementation of the
IRootMWEDesc interface. |
Modifier and Type | Method and Description |
---|---|
IMWEDesc |
MWE.getEntry() |
IMWEDesc |
IMWE.getEntry()
Gets the MWE description object corresponding to this multi-word
expression.
|
IMWEDesc |
IMWEDesc.IPart.getParent()
Returns the MWE description of which this part is a part.
|
IMWEDesc |
AbstractMWEDesc.AbstractPart.getParent() |
Modifier and Type | Method and Description |
---|---|
int |
AbstractMWEDesc.compareTo(IMWEDesc id) |
static boolean |
AbstractMWEDesc.equalsRoots(IMWEDesc one,
IMWEDesc two)
Returns
true if the root descriptions associated with each
of this MWE descriptions are the same; false otherwise. |
static IRootMWEDesc |
AbstractMWEDesc.getRoot(IMWEDesc desc)
Returns the root mwe description associated with this object.
|
Modifier and Type | Method and Description |
---|---|
IMWEDesc |
MWEBuilder.getEntry()
Returns the multi-word expression description object corresponding to the record.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<? extends IMWEDesc> |
Consecutive.getMWEDescs(IToken token)
Returns all the MWE entries in the index that contain the given token or
one of its stems as a part.
|
Constructor and Description |
---|
MWEBuilder(IMWEDesc entry,
java.util.Comparator<T> comparator)
Constructs an empty record from an
IRootMWEDesc object. |
MWEBuilder(IMWEDesc entry,
java.util.List<T> sentence)
Constructs an empty record from the given MWE description and sentence.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
IndexBuilder.IMutableMWEDesc |
Modifier and Type | Class and Description |
---|---|
static class |
IndexBuilder.MutableInfMWEDesc |
static class |
IndexBuilder.MutableRootMWEDesc
A root MWE description object whose counts can be incremented.
|
Modifier and Type | Method and Description |
---|---|
static <E extends IMWEDesc> |
MWEDescSet.makeUnmodifiable(java.util.Set<E> set)
Returns an unmodifiable view of the given set.
|
static <E extends IMWEDesc> |
MWEDescSet.replaceNull(java.util.Set<E> set)
If the given set is
null , returns the empty set. |
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 |
---|---|
java.util.Set<? extends IMWEDesc> |
IMWEIndex.getAll(java.lang.String part)
Returns a set containing both
IRootMWEDesc and IInfMWEDesc
objects that the given string is a part of. |
Modifier and Type | Method and Description |
---|---|
boolean |
MWEDescSet.add(IMWEDesc o) |
protected void |
InMemoryMWEIndex.insert(java.lang.String key,
IMWEDesc object,
java.util.Map<java.lang.String,IMWEDescSet> map)
Adds the specified object to the set indexed under the specified key in
the given map.
|
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.