Versions in this module Expand all Collapse all v0 v0.3.1 Dec 9, 2023 v0.3.0 Dec 9, 2023 Changes in this version + func Execute() + func NewRouter(data *ServiceData) *mux.Router + func StartWebServer(data *ServiceData) error + type DataProvider interface + GetData func() (*api.Data, error) + GetVocab func() (io.Reader, error) + type Input struct + Text string + type InputArray struct + Words []string + type Output struct + Original []string + PunctIDs []int32 + Punctuated []string + PunctuatedText string + WordIDs []int32 + type Punctuator interface + Process func(data []string) (*api.PResult, error) + type PunctuatorImpl struct + func NewPunctuatorImpl(d DataProvider, tfWrap TFWrap) (*PunctuatorImpl, error) + func (p *PunctuatorImpl) Process(text []string) (*api.PResult, error) + type ServiceData struct + Port int + type SettingsDataProviderImpl struct + func NewSettingsDataProviderImpl(dir string) (*SettingsDataProviderImpl, error) + func (p *SettingsDataProviderImpl) GetData() (*api.Data, error) + func (p *SettingsDataProviderImpl) GetVocab() (io.Reader, error) + type TFWrap interface + Invoke func([]int32) ([]int32, error)