Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzeResult ¶ added in v0.0.2
type Cell ¶ added in v0.0.2
type Cell struct {
Kind string `json:"kind,omitempty"`
RowIndex int `json:"rowIndex"`
ColumnIndex int `json:"columnIndex"`
Content string `json:"content"`
BoundingRegions []struct {
PageNumber int `json:"pageNumber"`
Polygon []float64 `json:"polygon"`
} `json:"boundingRegions"`
Spans []struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"spans"`
RowSpan int `json:"rowSpan,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is Forms Recognizer client.
func DocumentAnalysisClient ¶ added in v0.0.2
NewClient creates new Forms Recognizer API client.
func (*Client) Begin_analyze_document ¶
type ClientConfig ¶
type ClientConfig struct {
Endpoint string
APIVersion string
HTTPClient *http.Client
// contains filtered or unexported fields
}
Client is Forms Recognizer client.
func DefaultConfig ¶
func DefaultConfig(credential string, endpoint string, api_version string) ClientConfig
type FormGenResponse ¶
type Page ¶ added in v0.0.2
type Page struct {
PageNumber int `json:"pageNumber"`
Angle float64 `json:"angle"`
Width float64 `json:"width"`
Height float64 `json:"height"`
Unit string `json:"unit"`
Words []struct {
Content string `json:"content"`
Polygon []float64 `json:"polygon"`
Confidence float64 `json:"confidence"`
Span struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"span"`
} `json:"words"`
SelectionMarks []struct {
State string `json:"state"`
Polygon []float64 `json:"polygon"`
Confidence float64 `json:"confidence"`
Span struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"span"`
} `json:"selectionMarks"`
Lines []struct {
Content string `json:"content"`
Polygon []float64 `json:"polygon"`
Spans []struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"spans"`
} `json:"lines"`
Spans []struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"spans"`
Kind string `json:"kind"`
}
type Paragraph ¶ added in v0.0.2
type Paragraph struct {
Spans []struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"spans"`
BoundingRegions []struct {
PageNumber int `json:"pageNumber"`
Polygon []float64 `json:"polygon"`
} `json:"boundingRegions"`
Role string `json:"role,omitempty"`
Content string `json:"content"`
}
type Paragraphs ¶ added in v0.0.2
type Paragraphs []Paragraph
type Table ¶ added in v0.0.2
type Table struct {
RowCount int `json:"rowCount"`
ColumnCount int `json:"columnCount"`
Cells []Cell `json:"cells"`
BoundingRegions []struct {
PageNumber int `json:"pageNumber"`
Polygon []float64 `json:"polygon"`
} `json:"boundingRegions"`
Spans []struct {
Offset int `json:"offset"`
Length int `json:"length"`
} `json:"spans"`
}
Click to show internal directories.
Click to hide internal directories.