README
¶
Baidu-ai-go-sdk 
基于百度REST API封装的go语言sdk,提供简易友好的接口,让开发变得简单。
Todo list
百度语音
- 语音合成
- 语音识别
视觉技术
文字识别
- 通用文字识别
- 通用文字识别(含位置信息版)
- 通用文字识别(含生僻字版)
- 网络图片文字识别
- 身份证识别
- 银行卡识别
- 驾驶证识别
- 行驶证识别
- 表格文字识别
人脸识别
- 人脸检测
- 人脸对比
- 人脸查找
- 人脸库管理
- 公安身份验证
图像审核
- 图像审核
- GIF色情识别
- 图像审核组合服务接口
- 用户头像审核
图像识别
- 通用图像分析
- 细粒度图像识别
- 定制化图像识别
图像搜索
- 相同图检索
- 相似图检索
- 商品检索
自然语言
语言处理基础技术
- 词法分析
- 依存句法分析
- 词向量标识
- DNN语言模型
- 词义相似度
- 短文本相似度
- 评论观点抽取
- 情感倾向分析
- 中文分词
- 词性标注
理解与交互技术UNIT
- UNIT对话接口
文本审核
- 通用类文本反作弊
LISENCE
the project is licensed under the Apache License 2.0
Documentation
¶
Index ¶
Constants ¶
View Source
const VOICE_AUTH_URL = "https://openapi.baidu.com/oauth/2.0/token"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶ added in v0.2.1
type AuthResponse struct { AccessToken string `json:"access_token"` //要获取的Access Token ExpireIn string `json:"expire_in"` //Access Token的有效期(秒为单位,一般为1个月); RefreshToken string `json:"refresh_token"` //以下参数忽略,暂时不用 Scope string `json:"scope"` SessionKey string `json:"session_key"` SessionSecret string `json:"session_secret"` ERROR string `json:"error"` //错误码;关于错误码的详细信息请参考鉴权认证错误码(http://ai.baidu.com/docs#/Auth/top) ErrorDescription string `json:"error_description"` //错误描述信息,帮助理解和解决发生的错误。 }
type Authorizer ¶
Authorizer 用于设置access_token 可以通过RESTFul api的方式从百度方获取 有效期为一个月,可以存至数据库中然后从数据库中获取
type Client ¶
type Client struct { ClientID string ClientSecret string AccessToken string Authorizer Authorizer }
func (*Client) SetAuther ¶
func (client *Client) SetAuther(auth Authorizer)
type DefaultAuthorizer ¶
type DefaultAuthorizer struct{}
func (DefaultAuthorizer) Authorize ¶
func (da DefaultAuthorizer) Authorize(client *Client) error
Directories
¶
Path | Synopsis |
---|---|
example
|
|
语音处理 利用百度RESTFul API 进行语音及文字的相互转换
|
语音处理 利用百度RESTFul API 进行语音及文字的相互转换 |
Click to show internal directories.
Click to hide internal directories.