Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorporateReputation ¶
type CorporateReputation struct { Request InputLanguage string `validate:"required,oneof=auto en es fr it pt ca"` Text string `validate:"-"` Model *string `validate:"omitempty,oneof=CorporateReputation"` Focus *string `validate:"-"` Filter *string `validate:"-"` RelaxedTypography *string `validate:"omitempty,oneof=y u n"` }
func (*CorporateReputation) ToMultipartForm ¶
func (c *CorporateReputation) ToMultipartForm() (multipartform.MultipartForm, error)
func (*CorporateReputation) Validate ¶
func (c *CorporateReputation) Validate() error
type DeepCategorization ¶
type DeepCategorization struct { Request // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` Model string `validate:"-"` Verbose *string `validate:"omitempty,oneof=y n"` Popolarity *string `validate:"omitempty,oneof=y n"` UserDictionary *string `validate:"-"` }
func (*DeepCategorization) ToMultipartForm ¶
func (d *DeepCategorization) ToMultipartForm() (multipartform.MultipartForm, error)
func (*DeepCategorization) Validate ¶
func (d *DeepCategorization) Validate() error
type DocumentStructure ¶
type DocumentStructure struct { Request // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` }
func (*DocumentStructure) ToMultipartForm ¶
func (d *DocumentStructure) ToMultipartForm() (multipartform.MultipartForm, error)
func (*DocumentStructure) Validate ¶
func (d *DocumentStructure) Validate() error
type LanguageIdentification ¶
type LanguageIdentification struct { Request // The following tow fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` }
func (*LanguageIdentification) ToMultipartForm ¶
func (l *LanguageIdentification) ToMultipartForm() (multipartform.MultipartForm, error)
func (*LanguageIdentification) Validate ¶
func (l *LanguageIdentification) Validate() error
type Parser ¶
type Parser struct { Request InputLanguage string `validate:"required,oneof=auto en es fr it pt ca"` OutputLanguage *string `validate:"omitempty,oneof=auto en es fr it pt ca"` // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` Verbose *string `validate:"omitempty,oneof=y n"` TextFormat *string `validate:"omitempty,oneof=plain markup"` UnknownWords *string `validate:"omitempty,oneof=y n"` RelaxedTypography *string `validate:"omitempty,oneof=y u n"` DisambiguationApplied *string `validate:"omitempty,oneof=n m s"` SemanticDisambiguationGrouping *string `validate:"omitempty,oneof=n g t l"` DisambiguationContext *string `validate:"-"` UserDictionary *string `validate:"-"` TopicTypes *string `validate:"-"` ShowSubtopics *string `validate:"omitempty,oneof=y n"` TimeReference *string `validate:"-"` SentimentModel *string `validate:"omitempty,oneof=general"` ExpandGlobalPolarity *string `validate:"omitempty,oneof=y n"` // contains filtered or unexported fields }
func (*Parser) SetImageOutputFormat ¶ added in v1.1.0
func (p *Parser) SetImageOutputFormat()
func (*Parser) ToMultipartForm ¶
func (p *Parser) ToMultipartForm() (multipartform.MultipartForm, error)
type Sentiment ¶
type Sentiment struct { Request InputLanguage string `validate:"required,oneof=auto en es fr it pt ca"` OutputLanguage *string `validate:"omitempty,oneof=auto en es fr it pt ca"` // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` TextFormat *string `validate:"omitempty,oneof=plain markup"` Model *string `validate:"omitempty,oneof=general"` Verbose *string `validate:"omitempty,oneof=y n"` ExpandGlobalPolarity *string `validate:"omitempty,oneof=y n"` ReliableText *string `validate:"omitempty,oneof=y u n"` UnknownWords *string `validate:"omitempty,oneof=y n"` DisambiguationApplied *string `validate:"omitempty,oneof=n m s"` SemanticDisambiguationGrouping *string `validate:"omitempty,oneof=n g t l"` DisambiguationContext *string `validate:"-"` UserDictionary *string `validate:"-"` }
func (*Sentiment) ToMultipartForm ¶
func (s *Sentiment) ToMultipartForm() (multipartform.MultipartForm, error)
type Summarization ¶
type Summarization struct { Request InputLanguage *string `validate:"omitempty,oneof=auto en es fr it pt ca"` // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` // The following two fields are mutually exclusive Sentences string `validate:"omitempty,numeric"` Limit string `validate:"omitempty,numeric"` }
func (*Summarization) ToMultipartForm ¶
func (s *Summarization) ToMultipartForm() (multipartform.MultipartForm, error)
func (*Summarization) Validate ¶
func (s *Summarization) Validate() error
type TextClassification ¶
type TextClassification struct { Request // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` Model string `validate:"-"` Verbose *string `validate:"omitempty,oneof=y n"` Title *string `validate:"-"` Abstract *string `validate:"-"` CategoriesFilter *string `validate:"-"` ExpandHierarchy *string `validate:"omitempty,oneof=n p a"` }
func (*TextClassification) ToMultipartForm ¶
func (t *TextClassification) ToMultipartForm() (multipartform.MultipartForm, error)
func (*TextClassification) Validate ¶
func (t *TextClassification) Validate() error
type TextClustering ¶
type TextClustering struct { Request InputLanguage string `validate:"required,oneof=auto en es fr it pt ca da sv no fi zh ru ar"` Text string `validate:"-"` ID *string `validate:"-"` Mode *string `validate:"omitempty,oneof=tm dg"` StopWords *string `validate:"-"` }
func (*TextClustering) ToMultipartForm ¶
func (t *TextClustering) ToMultipartForm() (multipartform.MultipartForm, error)
func (*TextClustering) Validate ¶
func (t *TextClustering) Validate() error
type TopicsExtraction ¶
type TopicsExtraction struct { Request InputLanguage string `validate:"required,oneof=auto en es fr it pt ca"` OutputLanguage *string `validate:"omitempty,oneof=auto en es fr it pt ca"` // The following three fields are mutually exclusive Text string `validate:"-"` URL string `validate:"omitempty,url"` Document string `validate:"-"` TextFormat *string `validate:"omitempty,oneof=plain markup"` TopicTypes *string `validate:"-"` UnknownWords *string `validate:"omitempty,oneof=y n"` RelaxedTypography *string `validate:"omitempty,oneof=y u n"` UserDictionary *string `validate:"-"` ShowSubtopics *string `validate:"omitempty,oneof=y n"` DisambiguationApplied *string `validate:"omitempty,oneof=n m s"` SemanticDisambiguationGrouping *string `validate:"omitempty,oneof=n g t l"` DisambiguationContext *string `validate:"-"` TimeReference *string `validate:"-"` }
func (*TopicsExtraction) ToMultipartForm ¶
func (t *TopicsExtraction) ToMultipartForm() (multipartform.MultipartForm, error)
func (*TopicsExtraction) Validate ¶
func (t *TopicsExtraction) Validate() error
Click to show internal directories.
Click to hide internal directories.