Skip to content

vfa-baovd/fptai-sdk-go

Repository files navigation

fptai-sdk-go

FPT.AI SDK for the Go programming language

Usage

$ go get github.com/fpt-corp/fptai-sdk-go

Example

package main

import (
    "github.com/fpt-corp/fptai-sdk-go"
)

func main() {
    client := fptai.NewClient("your_token")
    ...
}

FPTAI CLI

SDK comes with a handy CLI tool that helps you import training data and evaluate.

$ export GOPATH=$(pwd)
$ export PATH=$PATH:$GOPATH/bin
$ go get github.com/fpt-corp/fptai-sdk-go/cmd/fptai
$ fptai help
$ fptai train -t intent -i train.csv -token your_token
$ fptai test -t intent -i test.csv -token your_token

training.csv and test.csv file must be a CSV file and in following format:

intent_name1, intent utterance 1
intent_name1, intent utterance 2
intent_name2, intent utterance 3
intent_name1, intent utterance 4
...

About

FPT.AI SDK for the Go programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages