Versions in this module Expand all Collapse all v1 v1.1.4 Sep 7, 2022 Changes in this version + func UserAgent() string + func Version() string + type BaseClient struct + Endpoint string + func New(endpoint string) BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + func (client BaseClient) DetectLanguage(ctx context.Context, showStats *bool, languageBatchInput *LanguageBatchInput) (result LanguageBatchResult, err error) + func (client BaseClient) DetectLanguagePreparer(ctx context.Context, showStats *bool, languageBatchInput *LanguageBatchInput) (*http.Request, error) + func (client BaseClient) DetectLanguageResponder(resp *http.Response) (result LanguageBatchResult, err error) + func (client BaseClient) DetectLanguageSender(req *http.Request) (*http.Response, error) + func (client BaseClient) Entities(ctx context.Context, showStats *bool, ...) (result EntitiesBatchResult, err error) + func (client BaseClient) EntitiesPreparer(ctx context.Context, showStats *bool, ...) (*http.Request, error) + func (client BaseClient) EntitiesResponder(resp *http.Response) (result EntitiesBatchResult, err error) + func (client BaseClient) EntitiesSender(req *http.Request) (*http.Response, error) + func (client BaseClient) KeyPhrases(ctx context.Context, showStats *bool, ...) (result KeyPhraseBatchResult, err error) + func (client BaseClient) KeyPhrasesPreparer(ctx context.Context, showStats *bool, ...) (*http.Request, error) + func (client BaseClient) KeyPhrasesResponder(resp *http.Response) (result KeyPhraseBatchResult, err error) + func (client BaseClient) KeyPhrasesSender(req *http.Request) (*http.Response, error) + func (client BaseClient) Sentiment(ctx context.Context, showStats *bool, ...) (result SentimentBatchResult, err error) + func (client BaseClient) SentimentPreparer(ctx context.Context, showStats *bool, ...) (*http.Request, error) + func (client BaseClient) SentimentResponder(resp *http.Response) (result SentimentBatchResult, err error) + func (client BaseClient) SentimentSender(req *http.Request) (*http.Response, error) + type DetectedLanguage struct + Iso6391Name *string + Name *string + Score *float64 + type DocumentStatistics struct + CharactersCount *int32 + TransactionsCount *int32 + type EntitiesBatchResult struct + Documents *[]EntitiesBatchResultItem + Errors *[]ErrorRecord + Statistics *RequestStatistics + func (ebr EntitiesBatchResult) MarshalJSON() ([]byte, error) + type EntitiesBatchResultItem struct + Entities *[]EntityRecord + ID *string + Statistics *DocumentStatistics + func (ebri EntitiesBatchResultItem) MarshalJSON() ([]byte, error) + type EntityRecord struct + BingID *string + Matches *[]MatchRecord + Name *string + SubType *string + Type *string + WikipediaID *string + WikipediaLanguage *string + WikipediaURL *string + func (er EntityRecord) MarshalJSON() ([]byte, error) + type ErrorRecord struct + ID *string + Message *string + type ErrorResponse struct + Code *string + InnerError *InternalError + Message *string + Target *string + type InternalError struct + Code *string + InnerError *InternalError + Message *string + type KeyPhraseBatchResult struct + Documents *[]KeyPhraseBatchResultItem + Errors *[]ErrorRecord + Statistics *RequestStatistics + func (kpbr KeyPhraseBatchResult) MarshalJSON() ([]byte, error) + type KeyPhraseBatchResultItem struct + ID *string + KeyPhrases *[]string + Statistics *DocumentStatistics + func (kpbri KeyPhraseBatchResultItem) MarshalJSON() ([]byte, error) + type LanguageBatchInput struct + Documents *[]LanguageInput + type LanguageBatchResult struct + Documents *[]LanguageBatchResultItem + Errors *[]ErrorRecord + Statistics *RequestStatistics + func (lbr LanguageBatchResult) MarshalJSON() ([]byte, error) + type LanguageBatchResultItem struct + DetectedLanguages *[]DetectedLanguage + ID *string + Statistics *DocumentStatistics + type LanguageInput struct + CountryHint *string + ID *string + Text *string + type MatchRecord struct + EntityTypeScore *float64 + Length *int32 + Offset *int32 + Text *string + WikipediaScore *float64 + type MultiLanguageBatchInput struct + Documents *[]MultiLanguageInput + type MultiLanguageInput struct + ID *string + Language *string + Text *string + type RequestStatistics struct + DocumentsCount *int32 + ErroneousDocumentsCount *int32 + TransactionsCount *int64 + ValidDocumentsCount *int32 + type SentimentBatchResult struct + Documents *[]SentimentBatchResultItem + Errors *[]ErrorRecord + Statistics *RequestStatistics + func (sbr SentimentBatchResult) MarshalJSON() ([]byte, error) + type SentimentBatchResultItem struct + ID *string + Score *float64 + Statistics *DocumentStatistics