Class CompositeToken
- java.lang.Object
-
- de.julielab.genemapper.composites.CompositeToken
-
- All Implemented Interfaces:
Serializable
public class CompositeToken extends Object implements Serializable
This class represents the individual tokens of the composite gene mention tokenization. Note that this tokenization can perfectly by applied to a non-composite mention, e.g. "IL2" would have the tokens "IL" and "2".- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeToken(String text, int begin, int end, boolean leftWs, boolean rightWs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBegin()intgetEnd()chargetTag()StringgetText()booleanisLeftWs()booleanisPlural()booleanisRightWs()voidsetPlural(boolean plural)voidsetRightWs(boolean rightWs)voidsetTag(char tag)StringtoString()
-
-
-
Constructor Detail
-
CompositeToken
public CompositeToken(String text, int begin, int end, boolean leftWs, boolean rightWs)
-
-
Method Detail
-
getTag
public char getTag()
-
setTag
public void setTag(char tag)
-
isLeftWs
public boolean isLeftWs()
-
isRightWs
public boolean isRightWs()
-
setRightWs
public void setRightWs(boolean rightWs)
-
getText
public String getText()
-
getBegin
public int getBegin()
-
getEnd
public int getEnd()
-
isPlural
public boolean isPlural()
- Returns:
- Whether or not this token ends in a plural-indicating PoS token.
-
setPlural
public void setPlural(boolean plural)
-
-