Documentation
¶
Index ¶
- type ASRConfig
- type ASROutput
- type ASROutputChunk
- type ASRRequest
- type ASRResponse
- type AnnotationPayload
- type AnnotationWithAudioData
- type Chunk
- type ListFiles
- type MatchingPage
- type PagePayload
- type QueryPayload
- type QueryRequest
- type QueryResult
- type SplitRequestPayload
- type Status
- type TransChunk
- type UnlockPayload
- type ValIssue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASROutput ¶
type ASROutput struct {
Chunks []ASROutputChunk
}
type ASRRequest ¶
type ASRResponse ¶
type AnnotationPayload ¶
type AnnotationPayload struct { SubProj string `json:"sub_proj"` Page PagePayload `json:"page,omitempty"` Chunks []TransChunk `json:"chunks"` Labels []string `json:"labels,omitempty"` CurrentStatus Status `json:"current_status,omitempty"` StatusHistory []Status `json:"status_history,omitempty"` Comment string `json:"comment,omitempty"` Index int64 `json:"index,omitempty"` }
type AnnotationWithAudioData ¶
type AnnotationWithAudioData struct { AnnotationPayload Chunk // Base64Audio is a base64 string representation of the audio Base64Audio string `json:"base64audio,omitempty"` FileType string `json:"file_type"` Offset int64 `json:"offset"` }
func (AnnotationWithAudioData) PrettyMarshal ¶
func (aa AnnotationWithAudioData) PrettyMarshal() ([]byte, error)
type MatchingPage ¶
type MatchingPage struct { MatchingChunks []int `json:"matching_chunks"` Page AnnotationPayload `json:"page"` }
type PagePayload ¶
type QueryPayload ¶
type QueryPayload struct { //ClientID string `json:"client_id"` //UserName string `json:"user_name"` Request QueryRequest `json:"request"` StepSize int64 `json:"step_size"` RequestIndex string `json:"request_index"` CurrID string `json:"curr_id"` Context int64 `json:"context,omitempty"` }
QueryPayload holds criteria used to search in the database
type QueryRequest ¶
type QueryRequest struct { PageStatus string `json:"page_status,omitempty"` Status string `json:"status,omitempty"` AudioFile string `json:"audio_file,omitempty"` Source string `json:"source,omitempty"` TransRE string `json:"trans_re,omitempty"` ValidationIssue ValIssue `json:"validation_issue,omitempty"` }
type QueryResult ¶
type QueryResult struct {
MatchingPages []MatchingPage `json:"matching_pages"`
}
type SplitRequestPayload ¶
type TransChunk ¶
type UnlockPayload ¶
Click to show internal directories.
Click to hide internal directories.