Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arrangement ¶
type Arrangements ¶
type Arrangements []Arrangement
type Bigrams ¶
type Bigrams struct {
// contains filtered or unexported fields
}
func (*Bigrams) ScoreForBigram ¶
Get the score of a Bigram. If the Bigram was not found, the score will be 0.
type Candidate ¶
type Candidate struct { P Possibility A Arrangement }
type Candidates ¶
type Candidates struct {
// contains filtered or unexported fields
}
func (*Candidates) Add ¶
func (c *Candidates) Add(other Candidate)
Add another Candidate to the collection.
func (*Candidates) ForPossibility ¶
func (c *Candidates) ForPossibility(p Possibility) Arrangement
Find an Arrangement for a Possibility. If the Possibility was not found, an empty Arrangement will be given.
type Possibilities ¶
type Possibilities []Possibility
type Possibility ¶
type Unigrams ¶
type Unigrams struct {
// contains filtered or unexported fields
}
func (*Unigrams) ScoreForWord ¶
Find the score for a given string. If the string was not found, the score will be 0.
Click to show internal directories.
Click to hide internal directories.