edu.mit.jmwe.index
Class IndexBuilder.MutableRootMWEDesc

java.lang.Object
  extended by edu.mit.jmwe.data.AbstractMWEDesc<IRootMWEDesc.IRootPart>
      extended by edu.mit.jmwe.data.RootMWEDesc
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.mit.jmwe.data.RootMWEDesc
RootMWEDesc.Part
 
Nested classes/interfaces inherited from class edu.mit.jmwe.data.AbstractMWEDesc
AbstractMWEDesc.AbstractPart
 
Nested classes/interfaces inherited from interface edu.mit.jmwe.data.IMWEDesc
IMWEDesc.IPart
 
Nested classes/interfaces inherited from interface edu.mit.jmwe.data.IRootMWEDesc
IRootMWEDesc.IRootPart
 
Field Summary
 
Fields inherited from class edu.mit.jmwe.data.AbstractMWEDesc
counts
 
Fields inherited from interface edu.mit.jmwe.data.IMWEDesc
boundaryUnderscores, comma, underscore, underscores
 
Fields inherited from interface edu.mit.jmwe.data.IRootMWEDesc
EXPECTED_COUNT_LENGTH
 
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
 
Method Summary
 Map<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()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.mit.jmwe.data.IMWEDesc
getCounts, getID, getMarkedContinuous, getMarkedSplit, getParts, getUnmarkedExact, getUnmarkedPattern
 
Methods inherited from interface edu.mit.jmwe.data.IHasForm
getForm
 
Methods inherited from interface edu.mit.jmwe.data.IHasMWEPOS
getPOS
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.mit.jmwe.data.IRootMWEDesc
getParts
 

Constructor Detail

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 underscores
pos - 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
Method Detail

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.