edu.mit.jmwe.data
Interface IMWE<T extends IToken>

Type Parameters:
T - type of IToken objects that form the multi-word expression
All Superinterfaces:
IHasForm
All Known Implementing Classes:
MWE

public interface IMWE<T extends IToken>
extends IHasForm

A multi-word expression found in a list of tokens.

Since:
jMWE 1.0.0
Version:
$Id: IMWE.java 639 2011-09-26 21:03:51Z markaf $
Author:
M.A. Finlayson, N. Kulkarni

Method Summary
 IMWEDesc getEntry()
          Gets the MWE description object corresponding to this multi-word expression.
 Map<T,IMWEDesc.IPart> getPartMap()
          Gets the mapping from tokens to parts in this multi-word expression.
 List<T> getTokens()
          Gets the list of tokens identified as comprising the multi-word expression.
 boolean isInflected()
          Returns true if this MWE is inflected relative to its associated MWE description; false otherwise.
 
Methods inherited from interface edu.mit.jmwe.data.IHasForm
getForm
 

Method Detail

getTokens

List<T> getTokens()
Gets the list of tokens identified as comprising the multi-word expression. The order of the tokens should correspond to the order of the words in the multi-word expression. This method should never return null or an empty list.

Returns:
the non-null, non-empty list of tokens that comprise the multi-word expression.
Since:
jMWE 1.0.0

getEntry

IMWEDesc getEntry()
Gets the MWE description object corresponding to this multi-word expression. Useful for retrieving the the lemma, list of parts, and part of speech of the multi-word expression. This method should never return null.

Returns:
the non-null MWE description corresponding to the multi-word expression represented by this object.
Since:
jMWE 1.0.0

getPartMap

Map<T,IMWEDesc.IPart> getPartMap()
Gets the mapping from tokens to parts in this multi-word expression. Useful when determining which token corresponds to which part in the expression, especially when some parts of the expression are repeated or if the tokens are not in the canonical order. This method should never return null. Iteration order of the map should correspond to the order of tokens in the original sentence.

Returns:
the non-null map from tokens to parts in this MWE object
Since:
jMWE 1.0.0

isInflected

boolean isInflected()
Returns true if this MWE is inflected relative to its associated MWE description; false otherwise.

Returns:
true if this MWE is inflected relative to its associated MWE description; false otherwise.
Since:
jMWE 1.0.0


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