public static class IndexBuilder.MutableRootMWEDesc extends RootMWEDesc implements IndexBuilder.IMutableMWEDesc
RootMWEDesc.Part
AbstractMWEDesc.AbstractPart
IMWEDesc.IPart
IRootMWEDesc.IRootPart
counts
boundaryUnderscores, comma, underscore, underscores
EXPECTED_COUNT_LENGTH
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 |
---|---|
java.util.Map<java.lang.String,IndexBuilder.MutableInfMWEDesc> |
getInflected()
Returns an unmodifiable set of MWE descriptions corresponding to the
inflected versions of this form.
|
void |
incrementMarkedContinuous() |
void |
incrementMarkedSplit() |
void |
incrementUnmarkedExact() |
void |
incrementUnmarkedInflected() |
void |
incrementUnmarkedPattern() |
equals, getExpectedCountLength, getID, getPOS, getUnmarkedInflected, hashCode, makePart, parse, parseCounts, toString, toString, toString
checkCount, compareTo, concatenate, equalsRoots, getCounts, getForm, getMarkedContinuous, getMarkedSplit, getParts, getRoot, getUnmarkedExact, getUnmarkedPattern, isFillerForSlot, isStopWord, splitOnUnderscores, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCounts, getID, getMarkedContinuous, getMarkedSplit, getParts, getUnmarkedExact, getUnmarkedPattern
getPOS
getParts
public MutableRootMWEDesc(java.lang.String surfaceForm, MWEPOS pos)
surfaceForm
- A string representing the MWE with its words separated by
underscorespos
- The part of speech object representing the part of speech
of the MWEjava.lang.NullPointerException
- if either argument is null
java.lang.IllegalArgumentException
- if the surface form does not contain underscorespublic void incrementMarkedContinuous()
incrementMarkedContinuous
in interface IndexBuilder.IMutableMWEDesc
public void incrementMarkedSplit()
incrementMarkedSplit
in interface IndexBuilder.IMutableMWEDesc
public void incrementUnmarkedExact()
incrementUnmarkedExact
in interface IndexBuilder.IMutableMWEDesc
public void incrementUnmarkedPattern()
incrementUnmarkedPattern
in interface IndexBuilder.IMutableMWEDesc
public void incrementUnmarkedInflected()
public java.util.Map<java.lang.String,IndexBuilder.MutableInfMWEDesc> getInflected()
IRootMWEDesc
null
, this means the no inflected forms have yet been
assigned.getInflected
in interface IRootMWEDesc
getInflected
in class RootMWEDesc
null
, possibly empty set of inflected MWE
descriptions.Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.