edu.mit.jmwe.data.concordance
Interface IConcordanceToken

All Superinterfaces:
IHasForm, IToken
All Known Implementing Classes:
ConcordanceTagger.TaggerToken, ConcordanceToken

public interface IConcordanceToken
extends IToken

A token from a Semcor sentence.

Since:
jMWE 1.0.0
Version:
$Id: IConcordanceToken.java 619 2011-05-08 20:21:37Z markaf $
Author:
M.A. Finlayson

Method Summary
 int getPartNumber()
          Returns the index of the part in the Semcor token from which this part was extracted.
 int getTokenNumber()
          Returns the index of the token in the Semcor sentence from which it was extracted.
 
Methods inherited from interface edu.mit.jmwe.data.IToken
getStems, getTag
 
Methods inherited from interface edu.mit.jmwe.data.IHasForm
getForm
 

Method Detail

getTokenNumber

int getTokenNumber()
Returns the index of the token in the Semcor sentence from which it was extracted.

Returns:
the token number of the token in the Semcor sentence from which it was extracted.
Since:
jMWE 1.0.0

getPartNumber

int getPartNumber()
Returns the index of the part in the Semcor token from which this part was extracted. This number will be greater than zero only if the token was originally a part of a multi-word expression in Semcor.

Returns:
the index of the part in the Semcor token from which this part was extracted.
Since:
jMWE 1.0.0


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