service

package
v0.0.0-...-e3c5015 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryBackedStopWordFilter

type RepositoryBackedStopWordFilter struct {
	Repository repository.StopWordSet
	// contains filtered or unexported fields
}

RepositoryBackedStopWordFilter is a stopword filter that loads stopwords from a repository

func NewRepositoryBackedStopWordFilter

func NewRepositoryBackedStopWordFilter(repository repository.StopWordSet) *RepositoryBackedStopWordFilter

NewRepositoryBackedStopWordFilter allocates a new stopword filter that loads stopwords from a repository

func (*RepositoryBackedStopWordFilter) Filter

Filter filters the given stream of tweets using

type StopWordFilter

type StopWordFilter interface {
	Filter(tweets domain.Tweets) domain.Tweets
}

StopWordFilter is a service that filters stopwords from a stream of tweets

Jump to

Keyboard shortcuts

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