Documentation ¶
Index ¶
- func DetectLanguage(text string) (langCode string)
- func Keywords(text string, minLen, minWeight, maxCount int, sortByWeight bool) (response []*commons.Keyword)
- func RefineArticle(article *tmodels.CWArticle)
- func SummarizeText(text string, numSentences int) (response string, err error)
- func SummarizeTextFile(filename string, numSentences int) (response string, err error)
- type Producer
- func (instance *Producer) ArticleComplete(article *tmodels.CWArticle, seOptimized bool, optArgument string) (err error)
- func (instance *Producer) ArticleFromCategory(planCategory *tcommons.CWSettingsEditorialPlanCategory) (articles []*tmodels.CWArticle, err error)
- func (instance *Producer) ArticleFromCategoryData(catUid, catName, catDescription string, catHashtags []string, ...) (articles []*tmodels.CWArticle, err error)
- func (instance *Producer) CreateText(argument string) (response string, err error)
- func (instance *Producer) CreateTextSEO(argument string) (response string, err error)
- func (instance *Producer) CreateTitle(argument string) (response string, err error)
- func (instance *Producer) CreateTitleFor(article string) (response string, err error)
- func (instance *Producer) CreateTitles(keywords []string, count int) (rows []string, response string, err error)
- func (instance *Producer) GetKeywords(content string, max int) (response []string, err error)
- func (instance *Producer) ImageGenerate(rawPrompt interface{}, size string) (images []*model.ProducerItem, err error)
- func (instance *Producer) ImageGenerateLarge(prompt string) (images []*model.ProducerItem, err error)
- func (instance *Producer) ImageGenerateMedium(prompt string) (images []*model.ProducerItem, err error)
- func (instance *Producer) ImageGenerateSmall(prompt string) (images []*model.ProducerItem, err error)
- func (instance *Producer) ImageVariate(imgBytes []byte, size string) (images []*model.ProducerItem, err error)
- func (instance *Producer) Refine(article *tmodels.CWArticle) (err error)
- func (instance *Producer) String() string
- func (instance *Producer) Translate(text, langCode string) (response string, err error)
- func (instance *Producer) TranslateCategory(source *tmodels.CWArticleCategory, langCode string) (response *tmodels.CWArticleCategory, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLanguage ¶
func RefineArticle ¶
Types ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func (*Producer) ArticleComplete ¶
func (*Producer) ArticleFromCategory ¶
func (*Producer) ArticleFromCategoryData ¶
func (*Producer) CreateText ¶
func (*Producer) CreateTextSEO ¶
func (*Producer) CreateTitle ¶
func (*Producer) CreateTitleFor ¶
func (*Producer) CreateTitles ¶
func (*Producer) GetKeywords ¶
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 (*Producer) TranslateCategory ¶
func (instance *Producer) TranslateCategory(source *tmodels.CWArticleCategory, langCode string) (response *tmodels.CWArticleCategory, err error)
Click to show internal directories.
Click to hide internal directories.