Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnglishPreset = "en" NoPreset = "none" )
Variables ¶
View Source
var Presets = map[string][]string{ EnglishPreset: { "a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with", }, NoPreset: {}, }
Functions ¶
This section is empty.
Types ¶
type Detector ¶
func NewDetectorFromConfig ¶
func NewDetectorFromConfig(config models.StopwordConfig) (*Detector, error)
func NewDetectorFromPreset ¶
func (*Detector) IsStopword ¶
func (*Detector) SetAdditions ¶
func (*Detector) SetRemovals ¶
type StopwordDetector ¶
Click to show internal directories.
Click to hide internal directories.