entity

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classification

type Classification struct {
	Text  string
	Label string
}

Classification

func BuildClassification

func BuildClassification(data []byte) (*Classification, error)

BuildClassification builds an entity of Classification struct fulfilling it with data

type ClassificationCreateUpdateParams

type ClassificationCreateUpdateParams struct {
	Label string `url:"label"`
	Text  string `url:"text"`
	Jwt   string `url:"jwt"`
}

ClassificationCreateUpdateParams

type ClassificationDeleteParams

type ClassificationDeleteParams struct {
	Label string `url:"label"`
	Jwt   string `url:"jwt"`
}

ClassificationCreateUpdateParams

type ClassificationOp

type ClassificationOp struct {
	Success bool
}

func BuildClassificationOp

func BuildClassificationOp(data []byte) (*ClassificationOp, error)

BuildClassificationOp builds an entity of ClassificationOp struct fulfilling it with data

type ClassificationParams

type ClassificationParams struct {
	Text string `url:"text"`
	Jwt  string `url:"jwt"`
}

ClassificationParams

type Emotions

type Emotions struct {
	Positive float64
	Negative float64
	Neutral  float64
	Mixed    float64
}

Emotions

func BuildEmotions

func BuildEmotions(data []byte) (*Emotions, error)

BuildEmotions builds an entity of Emotions struct fulfilling it with data

type EmotionsParams

type EmotionsParams struct {
	Text string `url:"text"`
	Jwt  string `url:"jwt"`
}

EmotionsParams

type Entity

type Entity struct {
	Text  string
	Label string
}

type KeyPhrase

type KeyPhrase struct {
	Text        string  `json:"Text"`
	Score       float64 `json:"Score"`
	BeginOffset int64   `json:"BeginOffset"`
	EndOffset   int64   `json:"EndOffset"`
}

type KeyPhraseParams

type KeyPhraseParams struct {
	Text string `url:"text"`
	Lang string `url:"lang"`
	Jwt  string `url:"jwt"`
}

type KeyPhrases

type KeyPhrases struct {
	LanguageCode string      `json:"LanguageCode"`
	KeyPhrases   []KeyPhrase `json:"KeyPhrases"`
}

func BuildKeyPhrases

func BuildKeyPhrases(data []byte) (*KeyPhrases, error)

BuildKeyPhrases builds an entity of KeyPhrases struct fulfilling it with data

type Language

type Language struct {
	LanguageCode string
	Language     string
	Score        float64
}

func BuildLanguage

func BuildLanguage(data []byte) (*Language, error)

BuildLanguage builds an entity of Language struct fulfilling it with data

type LanguageParams

type LanguageParams struct {
	Text string `url:"text"`
	Jwt  string `url:"jwt"`
}

type NamedEntityParams

type NamedEntityParams struct {
	Text string `url:"text"`
	Jwt  string `url:"jwt"`
}

type Ner

type Ner struct {
	EntitiesCount int64
	Entities      []Entity
}

func BuildNer

func BuildNer(data []byte) (*Ner, error)

BuildNer builds an entity of Ner struct fulfilling it with data

Jump to

Keyboard shortcuts

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