Documentation ¶
Overview ¶
Package autocomplete provides methods for interacting directly with auto complete models.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods for interacting directly with auto-complete models.
func (*Client) Complete ¶
Complete takes a phrase and its term components and returns an ordered array of potential completion matches. The terms are used to assist with spelling corrections and fuzzy matching, while the phrase is used as a prefix sequence.
func (*Client) TrainCorpus ¶
TrainCorpus takes an array of terms and uses them to train an autocomplete model for spelling correction (i.e. these terms must correctly spelt).
Click to show internal directories.
Click to hide internal directories.