Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotFoundError ¶
type NotFoundError struct {
Word string
}
NotFoundError is an error returned from Partition functions when an input word can not be found.
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type Partition ¶
type Partition struct {
// contains filtered or unexported fields
}
Partition represents an arrangement of words from a word2vec model into a partition of equivalency classes.
func NewPartition ¶
NewPartition returns a Partition instance which is loaded with data from r (assumed to be of the output format from the word2vec command with -classes arg).
func (*Partition) Class ¶
Class returns the internal index used to represent he equivalence class for w.
func (*Partition) EquivClass ¶
EquivClass returns the equivalence class of w as the list of strings which are equivalent to it.
Click to show internal directories.
Click to hide internal directories.