edu.mit.jmwe.index
Class IndexBuilder.MutableRootMWEDesc
java.lang.Object
edu.mit.jmwe.data.AbstractMWEDesc<IRootMWEDesc.IRootPart>
edu.mit.jmwe.data.RootMWEDesc
edu.mit.jmwe.index.IndexBuilder.MutableRootMWEDesc
- All Implemented Interfaces:
- IHasForm, IHasMWEPOS, IMWEDesc, IRootMWEDesc, IndexBuilder.IMutableMWEDesc, Comparable<IMWEDesc>
- Enclosing class:
- IndexBuilder
public static class IndexBuilder.MutableRootMWEDesc
- extends RootMWEDesc
- implements IndexBuilder.IMutableMWEDesc
A root MWE description object whose counts can be incremented.
- Since:
- jMWE 1.0.0
- Version:
- 1.612, 06 May 2011
- Author:
- markaf
Constructor Summary |
IndexBuilder.MutableRootMWEDesc(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 |
Methods inherited from class edu.mit.jmwe.data.RootMWEDesc |
equals, getExpectedCountLength, getID, getPOS, getUnmarkedInflected, hashCode, makePart, parse, parseCounts, toString, toString, toString |
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 |
IndexBuilder.MutableRootMWEDesc
public IndexBuilder.MutableRootMWEDesc(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
- Parameters:
surfaceForm
- A string representing the MWE with its words separated by
underscorespos
- The part of speech object representing the part of speech
of the MWE
- Throws:
NullPointerException
- if either argument is null
IllegalArgumentException
- if the surface form does not contain underscores
incrementMarkedContinuous
public void incrementMarkedContinuous()
- Specified by:
incrementMarkedContinuous
in interface IndexBuilder.IMutableMWEDesc
incrementMarkedSplit
public void incrementMarkedSplit()
- Specified by:
incrementMarkedSplit
in interface IndexBuilder.IMutableMWEDesc
incrementUnmarkedExact
public void incrementUnmarkedExact()
- Specified by:
incrementUnmarkedExact
in interface IndexBuilder.IMutableMWEDesc
incrementUnmarkedPattern
public void incrementUnmarkedPattern()
- Specified by:
incrementUnmarkedPattern
in interface IndexBuilder.IMutableMWEDesc
incrementUnmarkedInflected
public void incrementUnmarkedInflected()
getInflected
public Map<String,IndexBuilder.MutableInfMWEDesc> getInflected()
- Description copied from interface:
IRootMWEDesc
- Returns an unmodifiable set of MWE descriptions corresponding to the
inflected versions of this form. If the method returns an empty set, this
means that the expression cannot be inflected. If the method returns
null
, this means the no inflected forms have yet been
assigned.
- Specified by:
getInflected
in interface IRootMWEDesc
- Overrides:
getInflected
in class RootMWEDesc
- Returns:
- a possibly
null
, possibly empty set of inflected MWE
descriptions.
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.