Class 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 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)