Class BabelTokenId

    • Constructor Detail

      • BabelTokenId

        public BabelTokenId​(int s,
                            int e,
                            BabelSynsetID id,
                            String word)
        Creates a new instance of a BabelTokenId
        Parameters:
        s - the start position
        e - the end position
        id - the id of the BabelSynset
        word - the word being annotated
    • Method Detail

      • getID

        public BabelSynsetID getID()
        Returns the BabelSynset id
        Returns:
        the BabelSynsetID
      • getStart

        public int getStart()
        Gets the start index of the token
        Returns:
        the first integer
      • getEnd

        public int getEnd()
        Gets the end index of the token
        Returns:
        the second integer
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object