Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCantOpen is returned by NewExtractor when a language model file can't // be loaded. ErrCantOpen = errors.New("Unable to open model file") // ErrMemory occurs when underlying C structs cannot be allocated. ErrMemory = errors.New("Could not allocate memory") )
Functions ¶
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor detects entities based on a language model file.
func NewExtractor ¶
NewExtractor returns an Extractor given the path to a language model.
Click to show internal directories.
Click to hide internal directories.