Documentation
¶
Index ¶
- Variables
- func Analyze(ctx context.Context, text string) (nlapi.AnalyzeResponse, error)
- func FindRelation(ctx context.Context, nl nlapi.AnalyzeDocument) error
- func GetAuthToken() (string, error)
- func HateSpeech(ctx context.Context, text string) (hatespeech.HateSpeechDetectResponse, error)
- func Pii(ctx context.Context, text string) (pii.Response, error)
- func RefreshToken() error
- type BearerToken
Constants ¶
This section is empty.
Variables ¶
View Source
var EAIPass = os.Getenv("EAI_PASS")
View Source
var EAIUser = os.Getenv("EAI_USER")
View Source
var HateSpeechClient *hatespeech.Client
View Source
var NLApiClient *nlapi.Client
View Source
var PiiClient *pii.Client
View Source
var Token = BearerToken{}
Functions ¶
func FindRelation ¶
func FindRelation(ctx context.Context, nl nlapi.AnalyzeDocument) error
func GetAuthToken ¶
func HateSpeech ¶
func HateSpeech(ctx context.Context, text string) (hatespeech.HateSpeechDetectResponse, error)
func RefreshToken ¶
func RefreshToken() error
Types ¶
type BearerToken ¶
Click to show internal directories.
Click to hide internal directories.