SegToken

class SegToken(var charArray: CharArray, var startOffset: Int, var endOffset: Int, var wordType: Int, var weight: Int)

SmartChineseAnalyzer internal token

Constructors

Link copied to clipboard
constructor(charArray: CharArray, startOffset: Int, endOffset: Int, wordType: Int, weight: Int)

Properties

Link copied to clipboard

Character array containing token text

Link copied to clipboard

end offset into original sentence

Link copied to clipboard
var index: Int

during segmentation, this is used to store the index of the token in the token list table

Link copied to clipboard

start offset into original sentence

Link copied to clipboard
var weight: Int

word frequency

Link copied to clipboard

WordType of the text

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int