normalize

package
v0.0.0-...-7354109 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewNormalizer

func NewNormalizer(audio *AudioNormalizer, url *URLNormalizer, db db.Store) (*normalizer, error)

NewNormalizer creates a new normalizer.

Types

type AudioNormalizer

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

func NewAudioNormalizer

func NewAudioNormalizer(client python.PythonClient) (*AudioNormalizer, error)

func (*AudioNormalizer) Normalize

func (s *AudioNormalizer) Normalize(fileName string) (transcript string, err error)

type Normalizer

type Normalizer interface {
	NormalizeText(data string) (normalized string, err error)
	NormalizeURL(url string) (normalized, page string, err error)
	NormalizeFile(file, contentType string) (normalized string, err error)
}

Normalizer is an interface for normalizing data into text.

type URLNormalizer

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

func NewURLNormalizer

func NewURLNormalizer(client python.PythonClient, scraper scrape.Scraper, db db.Store) (*URLNormalizer, error)

func (*URLNormalizer) Normalize

func (s *URLNormalizer) Normalize(url string) (string, string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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