twriter

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLanguage

func DetectLanguage(text string) (langCode string)

func Keywords

func Keywords(text string, minLen, minWeight, maxCount int, sortByWeight bool) (response []*commons.Keyword)

func RefineArticle

func RefineArticle(article *tmodels.CWArticle)

func SummarizeText

func SummarizeText(text string, numSentences int) (response string, err error)

func SummarizeTextFile

func SummarizeTextFile(filename string, numSentences int) (response string, err error)

Types

type Producer

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

func NewProducer

func NewProducer(mode, root string, events *gg_events.Emitter, args ...interface{}) (instance *Producer, err error)

func (*Producer) ArticleComplete

func (instance *Producer) ArticleComplete(article *tmodels.CWArticle, seOptimized bool, optArgument string) (err error)

func (*Producer) ArticleFromCategory

func (instance *Producer) ArticleFromCategory(planCategory *tcommons.CWSettingsEditorialPlanCategory) (articles []*tmodels.CWArticle, err error)

func (*Producer) ArticleFromCategoryData

func (instance *Producer) ArticleFromCategoryData(catUid, catName, catDescription string, catHashtags []string, title, content string, seo bool) (articles []*tmodels.CWArticle, err error)

func (*Producer) CreateText

func (instance *Producer) CreateText(argument string) (response string, err error)

func (*Producer) CreateTextSEO

func (instance *Producer) CreateTextSEO(argument string) (response string, err error)

func (*Producer) CreateTitle

func (instance *Producer) CreateTitle(argument string) (response string, err error)

func (*Producer) CreateTitleFor

func (instance *Producer) CreateTitleFor(article string) (response string, err error)

func (*Producer) CreateTitles

func (instance *Producer) CreateTitles(keywords []string, count int) (rows []string, response string, err error)

func (*Producer) GetKeywords

func (instance *Producer) GetKeywords(content string, max int) (response []string, err error)

func (*Producer) ImageGenerate

func (instance *Producer) ImageGenerate(rawPrompt interface{}, size string) (images []*model.ProducerItem, err error)

func (*Producer) ImageGenerateLarge

func (instance *Producer) ImageGenerateLarge(prompt string) (images []*model.ProducerItem, err error)

func (*Producer) ImageGenerateMedium

func (instance *Producer) ImageGenerateMedium(prompt string) (images []*model.ProducerItem, err error)

func (*Producer) ImageGenerateSmall

func (instance *Producer) ImageGenerateSmall(prompt string) (images []*model.ProducerItem, err error)

func (*Producer) ImageVariate

func (instance *Producer) ImageVariate(imgBytes []byte, size string) (images []*model.ProducerItem, err error)

func (*Producer) Refine

func (instance *Producer) Refine(article *tmodels.CWArticle) (err error)

func (*Producer) String

func (instance *Producer) String() string

func (*Producer) Translate

func (instance *Producer) Translate(text, langCode string) (response string, err error)

func (*Producer) TranslateCategory

func (instance *Producer) TranslateCategory(source *tmodels.CWArticleCategory, langCode string) (response *tmodels.CWArticleCategory, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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