clitics

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadClitics

func ReadClitics(fStr string) (map[string]bool, error)

ReadClitics from a file

Types

type Phrases

type Phrases struct {
	// contains filtered or unexported fields
}

Phrases processor

func ReadPhrases

func ReadPhrases(fStr string) (*Phrases, error)

ReadPhrases from a file

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor processes words

func NewProcessor

func NewProcessor(clitics map[string]bool, phrases *Phrases) (*Processor, error)

NewProcessor will instantiate a processor

func (*Processor) Process

func (s *Processor) Process(words []*api.CliticsInput) ([]*api.CliticsOutput, error)

Process process words

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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