Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "unique"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UniqueTermFilter ¶
type UniqueTermFilter struct{}
UniqueTermFilter retains only the tokens which mark the first occurence of a term. Tokens whose term appears in a preceding token are dropped.
func NewUniqueTermFilter ¶
func NewUniqueTermFilter() *UniqueTermFilter
func (*UniqueTermFilter) Filter ¶
func (f *UniqueTermFilter) Filter(input analysis.TokenStream) analysis.TokenStream
Click to show internal directories.
Click to hide internal directories.