SegGraph

class SegGraph

Graph representing possible tokens at each start offset in the sentence.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addToken(token: SegToken)

Add a SegToken to the mapping, creating a new mapping at the token's startOffset if one does not exist.

Link copied to clipboard

Get the highest start offset in the map

Link copied to clipboard

Get the list of tokens at the specified start offset

Link copied to clipboard

Returns true if a mapping for the specified start offset exists

Link copied to clipboard

Set the SegToken.index for each token, based upon its order by startOffset.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Return a List of all tokens in the map, ordered by startOffset.