wordnet

package
v0.0.0-...-4c1406a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SynonymsForWord

func SynonymsForWord(word string) []string

SynonymsForWord returns the synonyms of a given word.

func Tokenize

func Tokenize(sentence string) []string

Tokenize is a relatively naive sentence tokenizer TODO further normalize

Types

type Synsets

type Synsets struct {
	Index map[string][]uint64
	Data  map[uint64][]string
}

Synsets contains maps from string to byte offset, and byte offset to tokens

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL