edu.mit.jmwe.data
Interface IRootMWEDesc

All Superinterfaces:
Comparable<IMWEDesc>, IHasForm, IHasMWEPOS, IMWEDesc
All Known Implementing Classes:
IndexBuilder.MutableRootMWEDesc, RootMWEDesc

public interface IRootMWEDesc
extends IMWEDesc

A description of a multi-word expression (MWE). Included are the lemma, a list of parts, and part of speech of the multi-word expression.

Since:
jMWE 1.0.0
Version:
$Id: IRootMWEDesc.java 574 2011-05-05 19:43:43Z markaf $
Author:
Nidhi Kulkarni, M.A. Finlayson

Nested Class Summary
static interface IRootMWEDesc.IRootPart
          A part of a root multi-word expression.
 
Nested classes/interfaces inherited from interface edu.mit.jmwe.data.IMWEDesc
IMWEDesc.IPart
 
Field Summary
static int EXPECTED_COUNT_LENGTH
          Expected number of counts associated with an index entry that implements this interface.
 
Fields inherited from interface edu.mit.jmwe.data.IMWEDesc
boundaryUnderscores, comma, underscore, underscores
 
Method Summary
 Map<String,? extends IInfMWEDesc> getInflected()
          Returns an unmodifiable set of MWE descriptions corresponding to the inflected versions of this form.
 List<? extends IRootMWEDesc.IRootPart> getParts()
          Returns an unmodifiable list of parts that comprise the MWE.
 int getUnmarkedInflected()
          Returns the number of times an inflected form of this MWE description occurs in the reference concordance without being marked as an occurrence of the MWE, and without being an exact match to a known inflected form of this root.
 
Methods inherited from interface edu.mit.jmwe.data.IMWEDesc
getCounts, getID, getMarkedContinuous, getMarkedSplit, 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
 

Field Detail

EXPECTED_COUNT_LENGTH

static final int EXPECTED_COUNT_LENGTH
Expected number of counts associated with an index entry that implements this interface.

Since:
jMWE 1.0.0
See Also:
Constant Field Values
Method Detail

getParts

List<? extends IRootMWEDesc.IRootPart> getParts()
Returns an unmodifiable list of parts that comprise the MWE.

Specified by:
getParts in interface IMWEDesc
Returns:
an unmodifiable list of parts that comprise the MWE.
Since:
jMWE 1.0.0

getInflected

Map<String,? extends IInfMWEDesc> getInflected()
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.

Returns:
a possibly null, possibly empty set of inflected MWE descriptions.
Since:
jMWE 1.0.0

getUnmarkedInflected

int getUnmarkedInflected()
Returns the number of times an inflected form of this MWE description occurs in the reference concordance without being marked as an occurrence of the MWE, and without being an exact match to a known inflected form of this root. To be counted as an inflected unmarked occurrence, there must be a continuous run of tokens whose forms or stems match, in order, the forms of the parts (ignoring case) of this MWE description. Will always zero or a positive number.

Returns:
the number of inflected unmarked occurrences of this MWE in the reference concordance.
Since:
jMWE 1.0.0


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.