Documentation ¶
Overview ¶
Package synonyms provides a builder for filtering and replacing synonyms in a token stream
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is the data structure of a synonyms filter. Use NewFilter to create.
func (*Filter) Filter ¶
func (f *Filter) Filter(incoming *jargon.TokenStream) *jargon.TokenStream
Filter replaces tokens with their canonical terms, based on Stack Overflow tags & synonyms
Click to show internal directories.
Click to hide internal directories.