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 | Class and Description |
---|---|
class |
RootMWEDesc
Default implementation of the
IRootMWEDesc interface. |
Modifier and Type | Method and Description |
---|---|
IRootMWEDesc |
RootMWEDesc.Part.getParent() |
IRootMWEDesc |
IRootMWEDesc.IRootPart.getParent()
Returns the MWE description of which this part is a part.
|
static IRootMWEDesc |
AbstractMWEDesc.getRoot(IMWEDesc desc)
Returns the root mwe description associated with this object.
|
IRootMWEDesc |
InfMWEDesc.getRootMWEDesc() |
IRootMWEDesc |
IInfMWEDesc.getRootMWEDesc()
Returns the root description of the multi-word expression (MWE).
|
static IRootMWEDesc |
RootMWEDesc.parse(java.lang.String descStr)
Parses the given description string into a root mwe description object.
|
Modifier and Type | Method and Description |
---|---|
InfMWEDesc |
InfMWEDesc.InfMWEDescBuilder.toInfMWEDesc(IRootMWEDesc root)
Constructs an inflected MWE description from the root description of
the MWE.
|
static java.lang.String |
RootMWEDesc.toString(IRootMWEDesc mweDesc)
Returns the String representation of the given description.
|
static void |
RootMWEDesc.toString(IRootMWEDesc root,
java.lang.Appendable buf)
Returns the String representation of the given description as:
|
Constructor and Description |
---|
InfMWEDesc(IRootMWEDesc root,
java.util.List<java.lang.String> parts)
Constructs a new inflected MWE description object from the specified list
of parts and root description
|
InfMWEDesc(IRootMWEDesc root,
java.util.List<java.lang.String> parts,
int... counts)
Constructs a new MWE description object from the list of parts.
|
InfMWEDesc(IRootMWEDesc root,
java.lang.String inflectedForm)
Constructs a new MWE description object from the specified root
description and inflected form.
|
InfMWEDesc(IRootMWEDesc root,
java.lang.String inflectedForm,
int... counts)
Constructs a new inflected MWE description object from the specified
inflected form, root description, and counts relating to the MWE's
appearance in the reference concordance.
|
Modifier and Type | Method and Description |
---|---|
static <T extends IToken> |
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.
|
Modifier and Type | Class and Description |
---|---|
static class |
IndexBuilder.MutableRootMWEDesc
A root MWE description object whose counts can be incremented.
|
Modifier and Type | Method and 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. |
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.Set<? extends IRootMWEDesc> |
InMemoryMWEIndex.get(java.lang.String part) |
java.util.Set<? extends IRootMWEDesc> |
IMWEIndex.get(java.lang.String part)
Returns a set of
IRootMWEDesc objects whose MWEs contain the
specified part. |
java.util.Iterator<IRootMWEDesc> |
InMemoryMWEIndex.getRootIterator() |
java.util.Iterator<IRootMWEDesc> |
IMWEIndex.getRootIterator()
Returns an iterator that will iterate over all root MWE descriptions in
the index, in order.
|
java.util.Set<IRootMWEDesc> |
MWEDescSet.getRootMWEDescs() |
java.util.Set<IRootMWEDesc> |
IMWEDescSet.getRootMWEDescs()
Returns the set of root MWE desc objects contained herein.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
MutableInfMWEDesc(IRootMWEDesc root,
java.lang.String inflectedForm)
Constructs a new MWE description object from the specified root
description and inflected form, initialized to zero for all counts.
|
Constructor and Description |
---|
MWEDescSet(java.util.Set<IRootMWEDesc> rootDescs,
java.util.Set<IInfMWEDesc> infDescs)
Creates a new mutable MWE desc set that contains the specified elements
|
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.