|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.data.AbstractMWEDesc<IInfMWEDesc.IInfPart>
edu.mit.jmwe.data.InfMWEDesc
public class InfMWEDesc
Default implementation of the IInfMWEDesc
interface.
Nested Class Summary | |
---|---|
static class |
InfMWEDesc.InfMWEDescBuilder
A builder for inflected MWE description objecgts |
protected class |
InfMWEDesc.InfPart
Default implementation of the IInfMWEDesc.IInfPart interface. |
Nested classes/interfaces inherited from class edu.mit.jmwe.data.AbstractMWEDesc |
---|
AbstractMWEDesc.AbstractPart |
Nested classes/interfaces inherited from interface edu.mit.jmwe.data.IInfMWEDesc |
---|
IInfMWEDesc.IInfPart |
Nested classes/interfaces inherited from interface edu.mit.jmwe.data.IMWEDesc |
---|
IMWEDesc.IPart |
Field Summary |
---|
Fields inherited from class edu.mit.jmwe.data.AbstractMWEDesc |
---|
counts |
Fields inherited from interface edu.mit.jmwe.data.IInfMWEDesc |
---|
EXPECTED_COUNT_LENGTH |
Fields inherited from interface edu.mit.jmwe.data.IMWEDesc |
---|
boundaryUnderscores, comma, underscore, underscores |
Constructor Summary | |
---|---|
InfMWEDesc(IRootMWEDesc root,
List<String> parts)
Constructs a new inflected MWE description object from the specified list of parts and root description |
|
InfMWEDesc(IRootMWEDesc root,
List<String> parts,
int... counts)
Constructs a new MWE description object from the list of parts. |
|
InfMWEDesc(IRootMWEDesc root,
String inflectedForm)
Constructs a new MWE description object from the specified root description and inflected form. |
|
InfMWEDesc(IRootMWEDesc root,
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. |
Method Summary | |
---|---|
protected int |
getExpectedCountLength()
Subclasses should implement this method to return the number of counts relating to the MWE's appearance in a reference concordance that are expected in the implementation. |
IMWEDescID |
getID()
Returns the IMWEDescID associated with this description. |
int |
getMarkedPattern()
The number of times this description occurs in the reference concordance being marked as an occurrence of the MWE, while matching one of the known inflection patterns. |
MWEPOS |
getPOS()
Returns the part of speech of this object. |
IRootMWEDesc |
getRootMWEDesc()
Returns the root description of the multi-word expression (MWE). |
protected IInfMWEDesc.IInfPart |
makePart(String form,
int index)
Subclasses should implement this method to construct an IMWEDesc.IPart
given the form and index of a part of an MWE. |
Methods inherited from class edu.mit.jmwe.data.AbstractMWEDesc |
---|
checkCount, compareTo, concatenate, equalsRoots, getCounts, getForm, getMarkedContinuous, getMarkedSplit, getParts, getRoot, getUnmarkedExact, getUnmarkedPattern, isFillerForSlot, isStopWord, splitOnUnderscores, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.mit.jmwe.data.IInfMWEDesc |
---|
getParts |
Methods inherited from interface edu.mit.jmwe.data.IMWEDesc |
---|
getCounts, getMarkedContinuous, getMarkedSplit, getUnmarkedExact, getUnmarkedPattern |
Methods inherited from interface edu.mit.jmwe.data.IHasForm |
---|
getForm |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public InfMWEDesc(IRootMWEDesc root, String inflectedForm)
root
- the root description of the MWEinflectedForm
- A string representing the inflected MWE with its words
separated by underscores
NullPointerException
- if either argument is null
IllegalArgumentException
- if the inflected form does not contain underscorespublic InfMWEDesc(IRootMWEDesc root, String inflectedForm, int... counts)
root
- the root description of the MWEinflectedForm
- A string representing the inflected MWE with its words
separated by underscorescounts
- the counts relating to the MWE's appearance in the reference
concordance.
NullPointerException
- if the root description or inflected form is
null
IllegalArgumentException
- if the inflected form does not contain underscorespublic InfMWEDesc(IRootMWEDesc root, List<String> parts)
root
- the root description of the MWEparts
- A list of parts that comprise the MWE
NullPointerException
- if the list of parts or root is null
IllegalArgumentException
- if the specified list has less than two elements, or any
trimmed string in the list contains an underscore, is empty,
or contains whitespacepublic InfMWEDesc(IRootMWEDesc root, List<String> parts, int... counts)
parts
- the list of parts that will make up this list, may neither be
null
nor empty, and may not contain any
null
s, empty or all whitespace strings, or
strings that contain the underscore character.
NullPointerException
- if the specified list of parts is null
, or
contains a null
IllegalArgumentException
- if the specified list has less than two elements, or any
trimmed string in the list contains an underscore, is empty,
or contains whitespaceMethod Detail |
---|
protected int getExpectedCountLength()
AbstractMWEDesc
getExpectedCountLength
in class AbstractMWEDesc<IInfMWEDesc.IInfPart>
public IMWEDescID getID()
IMWEDesc
getID
in interface IMWEDesc
null
.public MWEPOS getPOS()
IHasMWEPOS
null
.
getPOS
in interface IHasMWEPOS
public IRootMWEDesc getRootMWEDesc()
IInfMWEDesc
getRootMWEDesc
in interface IInfMWEDesc
public int getMarkedPattern()
IInfMWEDesc
getMarkedPattern
in interface IInfMWEDesc
protected IInfMWEDesc.IInfPart makePart(String form, int index)
AbstractMWEDesc
IMWEDesc.IPart
given the form and index of a part of an MWE.
makePart
in class AbstractMWEDesc<IInfMWEDesc.IInfPart>
form
- the text of the partindex
- the index of the part in the MWE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |