punctuation

package
v0.0.0-...-920bcd1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Punctuator

type Punctuator interface {
	Punctuate(words []string) (*Response, error)
}

Punctuator server call wrapper

type Request

type Request struct {
	Text string `json:"text"`
}

Request is punctuation service json input

type RequestArray

type RequestArray struct {
	Words []string `json:"input"`
}

RequestArray is punctuation service json input

type Response

type Response struct {
	Original       []string `json:"original"`
	Punctuated     []string `json:"punctuated"`
	PunctuatedText string   `json:"punctuatedText"`
}

Response is json result

type Wrapper

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

Wrapper is punctuate url wrapper

func NewWrapper

func NewWrapper(url string) *Wrapper

NewWrapper creates instance

func (*Wrapper) Punctuate

func (p *Wrapper) Punctuate(words []string) (*Response, error)

Punctuate invokes word punctuate service

Jump to

Keyboard shortcuts

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