Documentation ¶
Overview ¶
Package token tokenizes data for dupi.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
}
Config describes tokenizer configurations.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default tokenizer config for dupy.
type Tag ¶
type Tag int
Tag represents a value in an enumeration of values to associate with a token.
type TokenizerFunc ¶
TokenizerFunc is the type of a function used for tokenizing document data.
func FromConfig ¶
func FromConfig(cfg *Config) (TokenizerFunc, error)
FromConfig attempts to create a tokenizer function from a configuration.
Click to show internal directories.
Click to hide internal directories.