Package net.sf.okapi.steps.tokenization
Class TokensAnnotation
- java.lang.Object
-
- net.sf.okapi.steps.tokenization.TokensAnnotation
-
- All Implemented Interfaces:
Cloneable,IAnnotation
public class TokensAnnotation extends Object implements IAnnotation
Holds a list ofToken
-
-
Constructor Summary
Constructors Constructor Description TokensAnnotation(Tokens tokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTokens(Tokens tokens)TokensgetFilteredList(String... tokenTypes)TokensgetTokens()voidsetTokens(Tokens tokens)StringtoString()Gets a human readable representation of this annotation.
-
-
-
Constructor Detail
-
TokensAnnotation
public TokensAnnotation(Tokens tokens)
-
-
Method Detail
-
setTokens
public void setTokens(Tokens tokens)
-
getTokens
public Tokens getTokens()
-
addTokens
public void addTokens(Tokens tokens)
-
toString
public String toString()
Description copied from interface:IAnnotationGets a human readable representation of this annotation.- Specified by:
toStringin interfaceIAnnotation- Overrides:
toStringin classObject- Returns:
- a human readable representation of this annotation.
-
-