comparecomplyv1

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package comparecomplyv1 : Operations and models for the CompareComplyV1 service

Index

Constants

View Source
const (
	Attribute_Type_Currency     = "Currency"
	Attribute_Type_Datetime     = "DateTime"
	Attribute_Type_Location     = "Location"
	Attribute_Type_Organization = "Organization"
	Attribute_Type_Person       = "Person"
)

Constants associated with the Attribute.Type property. The type of attribute. Possible values are `Currency`, `DateTime`, `Location`, `Organization`, and `Person`.

View Source
const (
	BatchStatus_Function_ElementClassification = "element_classification"
	BatchStatus_Function_HTMLConversion        = "html_conversion"
	BatchStatus_Function_Tables                = "tables"
)

Constants associated with the BatchStatus.Function property. The method to be run against the documents. Possible values are `html_conversion`, `element_classification`, and `tables`.

View Source
const (
	Category_Label_Amendments           = "Amendments"
	Category_Label_AssetUse             = "Asset Use"
	Category_Label_Assignments          = "Assignments"
	Category_Label_Audits               = "Audits"
	Category_Label_BusinessContinuity   = "Business Continuity"
	Category_Label_Communication        = "Communication"
	Category_Label_Confidentiality      = "Confidentiality"
	Category_Label_Deliverables         = "Deliverables"
	Category_Label_Delivery             = "Delivery"
	Category_Label_DisputeResolution    = "Dispute Resolution"
	Category_Label_ForceMajeure         = "Force Majeure"
	Category_Label_Indemnification      = "Indemnification"
	Category_Label_Insurance            = "Insurance"
	Category_Label_IntellectualProperty = "Intellectual Property"
	Category_Label_Liability            = "Liability"
	Category_Label_PaymentTermsBilling  = "Payment Terms & Billing"
	Category_Label_PricingTaxes         = "Pricing & Taxes"
	Category_Label_Privacy              = "Privacy"
	Category_Label_Responsibilities     = "Responsibilities"
	Category_Label_SafetyAndSecurity    = "Safety and Security"
	Category_Label_ScopeOfWork          = "Scope of Work"
	Category_Label_Subcontracts         = "Subcontracts"
	Category_Label_TermTermination      = "Term & Termination"
	Category_Label_Warranties           = "Warranties"
)

Constants associated with the Category.Label property. The category of the associated element.

View Source
const (
	ClassifyElementsOptions_ModelID_Contracts = "contracts"
	ClassifyElementsOptions_ModelID_Tables    = "tables"
)

Constants associated with the ClassifyElementsOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	CompareDocumentsOptions_ModelID_Contracts = "contracts"
	CompareDocumentsOptions_ModelID_Tables    = "tables"
)

Constants associated with the CompareDocumentsOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	ConvertToHTMLOptions_ModelID_Contracts = "contracts"
	ConvertToHTMLOptions_ModelID_Tables    = "tables"
)

Constants associated with the ConvertToHTMLOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	CreateBatchOptions_Function_ElementClassification = "element_classification"
	CreateBatchOptions_Function_HTMLConversion        = "html_conversion"
	CreateBatchOptions_Function_Tables                = "tables"
)

Constants associated with the CreateBatchOptions.Function property. The Compare and Comply method to run across the submitted input documents.

View Source
const (
	CreateBatchOptions_ModelID_Contracts = "contracts"
	CreateBatchOptions_ModelID_Tables    = "tables"
)

Constants associated with the CreateBatchOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	DeleteFeedbackOptions_ModelID_Contracts = "contracts"
	DeleteFeedbackOptions_ModelID_Tables    = "tables"
)

Constants associated with the DeleteFeedbackOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	ExtractTablesOptions_ModelID_Contracts = "contracts"
	ExtractTablesOptions_ModelID_Tables    = "tables"
)

Constants associated with the ExtractTablesOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	GetFeedbackOptions_ModelID_Contracts = "contracts"
	GetFeedbackOptions_ModelID_Tables    = "tables"
)

Constants associated with the GetFeedbackOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	OriginalLabelsOut_Modification_Added      = "added"
	OriginalLabelsOut_Modification_NotChanged = "not_changed"
	OriginalLabelsOut_Modification_Removed    = "removed"
)

Constants associated with the OriginalLabelsOut.Modification property. A string identifying the type of modification the feedback entry in the `updated_labels` array. Possible values are `added`, `not_changed`, and `removed`.

View Source
const (
	UpdateBatchOptions_Action_Cancel = "cancel"
	UpdateBatchOptions_Action_Rescan = "rescan"
)

Constants associated with the UpdateBatchOptions.Action property. The action you want to perform on the specified batch-processing request.

View Source
const (
	UpdateBatchOptions_ModelID_Contracts = "contracts"
	UpdateBatchOptions_ModelID_Tables    = "tables"
)

Constants associated with the UpdateBatchOptions.ModelID property. The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests.

View Source
const (
	UpdatedLabelsOut_Modification_Added      = "added"
	UpdatedLabelsOut_Modification_NotChanged = "not_changed"
	UpdatedLabelsOut_Modification_Removed    = "removed"
)

Constants associated with the UpdatedLabelsOut.Modification property. The type of modification the feedback entry in the `updated_labels` array. Possible values are `added`, `not_changed`, and `removed`.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFeedbackOptions

type AddFeedbackOptions struct {

	// An optional string identifying the user.
	UserID *string `json:"user_id,omitempty"`

	// An optional comment on or description of the feedback.
	Comment *string `json:"comment,omitempty"`

	// Feedback data for submission.
	FeedbackData *FeedbackDataInput `json:"feedback_data" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

AddFeedbackOptions : The addFeedback options.

func (*AddFeedbackOptions) SetComment

func (options *AddFeedbackOptions) SetComment(comment string) *AddFeedbackOptions

SetComment : Allow user to set Comment

func (*AddFeedbackOptions) SetFeedbackData

func (options *AddFeedbackOptions) SetFeedbackData(feedbackData *FeedbackDataInput) *AddFeedbackOptions

SetFeedbackData : Allow user to set FeedbackData

func (*AddFeedbackOptions) SetHeaders

func (options *AddFeedbackOptions) SetHeaders(param map[string]string) *AddFeedbackOptions

SetHeaders : Allow user to set Headers

func (*AddFeedbackOptions) SetUserID

func (options *AddFeedbackOptions) SetUserID(userID string) *AddFeedbackOptions

SetUserID : Allow user to set UserID

type Address

type Address struct {

	// A string listing the address.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`
}

Address : A party's address.

type AlignedElement

type AlignedElement struct {

	// Identifies two elements that semantically align between the compared documents.
	ElementPair []ElementPair `json:"element_pair,omitempty"`

	// Specifies whether the text is identical.
	IdenticalText *bool `json:"identical_text,omitempty"`

	// Indicates that the elements aligned are contractual clauses of significance.
	SignificantElements *bool `json:"significant_elements,omitempty"`

	// One or more hashed values that you can send to IBM to provide feedback or receive support.
	ProvenanceIds []string `json:"provenance_ids,omitempty"`
}

AlignedElement : AlignedElement struct

type Attribute

type Attribute struct {

	// The type of attribute. Possible values are `Currency`, `DateTime`, `Location`, `Organization`, and `Person`.
	Type *string `json:"type,omitempty"`

	// The text associated with the attribute.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`
}

Attribute : List of document attributes.

type BatchStatus

type BatchStatus struct {

	// The method to be run against the documents. Possible values are `html_conversion`, `element_classification`, and
	// `tables`.
	Function *string `json:"function,omitempty"`

	// The geographical location of the Cloud Object Storage input bucket as listed on the **Endpoint** tab of your COS
	// instance; for example, `us-geo`, `eu-geo`, or `ap-geo`.
	InputBucketLocation *string `json:"input_bucket_location,omitempty"`

	// The name of the Cloud Object Storage input bucket.
	InputBucketName *string `json:"input_bucket_name,omitempty"`

	// The geographical location of the Cloud Object Storage output bucket as listed on the **Endpoint** tab of your COS
	// instance; for example, `us-geo`, `eu-geo`, or `ap-geo`.
	OutputBucketLocation *string `json:"output_bucket_location,omitempty"`

	// The name of the Cloud Object Storage output bucket.
	OutputBucketName *string `json:"output_bucket_name,omitempty"`

	// The unique identifier for the batch request.
	BatchID *string `json:"batch_id,omitempty"`

	// Document counts.
	DocumentCounts *DocCounts `json:"document_counts,omitempty"`

	// The status of the batch request.
	Status *string `json:"status,omitempty"`

	// The creation time of the batch request.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The time of the most recent update to the batch request.
	Updated *strfmt.DateTime `json:"updated,omitempty"`
}

BatchStatus : The batch-request status.

type Batches

type Batches struct {

	// A list of the status of all batch requests.
	Batches []BatchStatus `json:"batches,omitempty"`
}

Batches : The results of a successful `GET /v1/batches` request.

type BodyCells

type BodyCells struct {

	// A string value in the format `columnHeader-x-y`, where `x` and `y` are the begin and end offsets of this column
	// header cell in the input document.
	CellID *string `json:"cell_id,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// The textual contents of this cell from the input document without associated markup content.
	Text *string `json:"text,omitempty"`

	// The `begin` index of this cell's `row` location in the current table.
	RowIndexBegin *int64 `json:"row_index_begin,omitempty"`

	// The `end` index of this cell's `row` location in the current table.
	RowIndexEnd *int64 `json:"row_index_end,omitempty"`

	// The `begin` index of this cell's `column` location in the current table.
	ColumnIndexBegin *int64 `json:"column_index_begin,omitempty"`

	// The `end` index of this cell's `column` location in the current table.
	ColumnIndexEnd *int64 `json:"column_index_end,omitempty"`

	RowHeaderIds []RowHeaderIds `json:"row_header_ids,omitempty"`

	RowHeaderTexts []RowHeaderTexts `json:"row_header_texts,omitempty"`

	RowHeaderTextsNormalized []RowHeaderTextsNormalized `json:"row_header_texts_normalized,omitempty"`

	ColumnHeaderIds []ColumnHeaderIds `json:"column_header_ids,omitempty"`

	ColumnHeaderTexts []ColumnHeaderTexts `json:"column_header_texts,omitempty"`

	ColumnHeaderTextsNormalized []ColumnHeaderTextsNormalized `json:"column_header_texts_normalized,omitempty"`
}

BodyCells : Cells that are not table header, column header, or row header cells.

type Category

type Category struct {

	// The category of the associated element.
	Label *string `json:"label,omitempty"`

	// One or more hashed values that you can send to IBM to provide feedback or receive support.
	ProvenanceIds []string `json:"provenance_ids,omitempty"`
}

Category : Information defining an element's subject matter.

type ClassifyElementsOptions

type ClassifyElementsOptions struct {

	// The file to classify.
	File *os.File `json:"file" validate:"required"`

	// The filename for file.
	Filename *string `json:"filename,omitempty"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
	FileContentType *string `json:"file_content_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ClassifyElementsOptions : The classifyElements options.

func (*ClassifyElementsOptions) SetFile

func (options *ClassifyElementsOptions) SetFile(file *os.File) *ClassifyElementsOptions

SetFile : Allow user to set File

func (*ClassifyElementsOptions) SetFileContentType

func (options *ClassifyElementsOptions) SetFileContentType(fileContentType string) *ClassifyElementsOptions

SetFileContentType : Allow user to set FileContentType

func (*ClassifyElementsOptions) SetFilename

func (options *ClassifyElementsOptions) SetFilename(filename string) *ClassifyElementsOptions

SetFilename : Allow user to set Filename

func (*ClassifyElementsOptions) SetHeaders

func (options *ClassifyElementsOptions) SetHeaders(param map[string]string) *ClassifyElementsOptions

SetHeaders : Allow user to set Headers

func (*ClassifyElementsOptions) SetModelID

func (options *ClassifyElementsOptions) SetModelID(modelID string) *ClassifyElementsOptions

SetModelID : Allow user to set ModelID

type ClassifyReturn

type ClassifyReturn struct {

	// Basic information about the input document.
	Document *Document `json:"document,omitempty"`

	// The analysis model used to classify the input document. For the `/v1/element_classification` method, the only valid
	// value is `contracts`.
	ModelID *string `json:"model_id,omitempty"`

	// The version of the analysis model identified by the value of the `model_id` key.
	ModelVersion *string `json:"model_version,omitempty"`

	// Document elements identified by the service.
	Elements []Element `json:"elements,omitempty"`

	// Definition of tables identified in the input document.
	Tables []Tables `json:"tables,omitempty"`

	// The structure of the input document.
	DocumentStructure *DocStructure `json:"document_structure,omitempty"`

	// Definitions of the parties identified in the input document.
	Parties []Parties `json:"parties,omitempty"`

	// The effective dates of the input document.
	EffectiveDates []EffectiveDates `json:"effective_dates,omitempty"`

	// The monetary amounts identified in the input document.
	ContractAmounts []ContractAmts `json:"contract_amounts,omitempty"`

	// The input document's termination dates.
	TerminationDates []TerminationDates `json:"termination_dates,omitempty"`
}

ClassifyReturn : The analysis of objects returned by the `/v1/element_classification` method.

type ColumnHeaderIds

type ColumnHeaderIds struct {

	// The `id` value of a column header.
	ID *string `json:"id,omitempty"`
}

ColumnHeaderIds : An array of values, each being the `id` value of a column header that is applicable to the current cell.

type ColumnHeaderTexts

type ColumnHeaderTexts struct {

	// The `text` value of a column header.
	Text *string `json:"text,omitempty"`
}

ColumnHeaderTexts : An array of values, each being the `text` value of a column header that is applicable to the current cell.

type ColumnHeaderTextsNormalized

type ColumnHeaderTextsNormalized struct {

	// The normalized version of a column header text.
	TextNormalized *string `json:"text_normalized,omitempty"`
}

ColumnHeaderTextsNormalized : If you provide customization input, the normalized version of the column header texts according to the customization; otherwise, the same value as `column_header_texts`.

type ColumnHeaders

type ColumnHeaders struct {

	// A string value in the format `columnHeader-x-y`, where `x` and `y` are the begin and end offsets of this column
	// header cell in the input document.
	CellID *string `json:"cell_id,omitempty"`

	// The location of the column header cell in the current table as defined by its `begin` and `end` offsets,
	// respectfully, in the input document.
	Location interface{} `json:"location,omitempty"`

	// The textual contents of this cell from the input document without associated markup content.
	Text *string `json:"text,omitempty"`

	// If you provide customization input, the normalized version of the cell text according to the customization;
	// otherwise, the same value as `text`.
	TextNormalized *string `json:"text_normalized,omitempty"`

	// The `begin` index of this cell's `row` location in the current table.
	RowIndexBegin *int64 `json:"row_index_begin,omitempty"`

	// The `end` index of this cell's `row` location in the current table.
	RowIndexEnd *int64 `json:"row_index_end,omitempty"`

	// The `begin` index of this cell's `column` location in the current table.
	ColumnIndexBegin *int64 `json:"column_index_begin,omitempty"`

	// The `end` index of this cell's `column` location in the current table.
	ColumnIndexEnd *int64 `json:"column_index_end,omitempty"`
}

ColumnHeaders : Column-level cells, each applicable as a header to other cells in the same column as itself, of the current table.

type CompareComplyV1

type CompareComplyV1 struct {
	Service *core.WatsonService
}

CompareComplyV1 : IBM Watson™ Compare and Comply analyzes governing documents to provide details about critical aspects of the documents.

Version: V1 See: http://www.ibm.com/watson/developercloud/compare-comply.html

func NewCompareComplyV1

func NewCompareComplyV1(options *CompareComplyV1Options) (*CompareComplyV1, error)

NewCompareComplyV1 : Instantiate CompareComplyV1

func (*CompareComplyV1) AddFeedback

func (compareComply *CompareComplyV1) AddFeedback(addFeedbackOptions *AddFeedbackOptions) (*core.DetailedResponse, error)

AddFeedback : Add feedback Adds feedback in the form of _labels_ from a subject-matter expert (SME) to a governing document. **Important:** Feedback is not immediately incorporated into the training model, nor is it guaranteed to be incorporated at a later date. Instead, submitted feedback is used to suggest future updates to the training model.

func (*CompareComplyV1) ClassifyElements

func (compareComply *CompareComplyV1) ClassifyElements(classifyElementsOptions *ClassifyElementsOptions) (*core.DetailedResponse, error)

ClassifyElements : Classify the elements of a document Uploads a file. The response includes an analysis of the document's structural and semantic elements.

func (*CompareComplyV1) CompareDocuments

func (compareComply *CompareComplyV1) CompareDocuments(compareDocumentsOptions *CompareDocumentsOptions) (*core.DetailedResponse, error)

CompareDocuments : Compare two documents Uploads two input files. The response includes JSON comparing the two documents. Uploaded files must be in the same file format.

func (*CompareComplyV1) ConvertToHTML

func (compareComply *CompareComplyV1) ConvertToHTML(convertToHTMLOptions *ConvertToHTMLOptions) (*core.DetailedResponse, error)

ConvertToHTML : Convert file to HTML Uploads an input file. The response includes an HTML version of the document.

func (*CompareComplyV1) CreateBatch

func (compareComply *CompareComplyV1) CreateBatch(createBatchOptions *CreateBatchOptions) (*core.DetailedResponse, error)

CreateBatch : Submit a batch-processing request Run Compare and Comply methods over a collection of input documents. **Important:** Batch processing requires the use of the [IBM Cloud Object Storage service](https://console.bluemix.net/docs/services/cloud-object-storage/about-cos.html#about-ibm-cloud-object-storage). The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using batch processing](https://console.bluemix.net/docs/services/compare-comply/batching.html#before-you-batch).

func (*CompareComplyV1) DeleteFeedback

func (compareComply *CompareComplyV1) DeleteFeedback(deleteFeedbackOptions *DeleteFeedbackOptions) (*core.DetailedResponse, error)

DeleteFeedback : Deletes a specified feedback entry

func (*CompareComplyV1) ExtractTables

func (compareComply *CompareComplyV1) ExtractTables(extractTablesOptions *ExtractTablesOptions) (*core.DetailedResponse, error)

ExtractTables : Extract a document's tables Uploads a file. The response includes an analysis of the document's tables.

func (*CompareComplyV1) GetAddFeedbackResult

func (compareComply *CompareComplyV1) GetAddFeedbackResult(response *core.DetailedResponse) *FeedbackReturn

GetAddFeedbackResult : Retrieve result of AddFeedback operation

func (*CompareComplyV1) GetBatch

func (compareComply *CompareComplyV1) GetBatch(getBatchOptions *GetBatchOptions) (*core.DetailedResponse, error)

GetBatch : Gets information about a specific batch-processing request Gets information about a batch-processing request with a specified ID.

func (*CompareComplyV1) GetClassifyElementsResult

func (compareComply *CompareComplyV1) GetClassifyElementsResult(response *core.DetailedResponse) *ClassifyReturn

GetClassifyElementsResult : Retrieve result of ClassifyElements operation

func (*CompareComplyV1) GetCompareDocumentsResult

func (compareComply *CompareComplyV1) GetCompareDocumentsResult(response *core.DetailedResponse) *CompareReturn

GetCompareDocumentsResult : Retrieve result of CompareDocuments operation

func (*CompareComplyV1) GetConvertToHTMLResult

func (compareComply *CompareComplyV1) GetConvertToHTMLResult(response *core.DetailedResponse) *HTMLReturn

GetConvertToHTMLResult : Retrieve result of ConvertToHTML operation

func (*CompareComplyV1) GetCreateBatchResult

func (compareComply *CompareComplyV1) GetCreateBatchResult(response *core.DetailedResponse) *BatchStatus

GetCreateBatchResult : Retrieve result of CreateBatch operation

func (*CompareComplyV1) GetDeleteFeedbackResult

func (compareComply *CompareComplyV1) GetDeleteFeedbackResult(response *core.DetailedResponse) *FeedbackDeleted

GetDeleteFeedbackResult : Retrieve result of DeleteFeedback operation

func (*CompareComplyV1) GetExtractTablesResult

func (compareComply *CompareComplyV1) GetExtractTablesResult(response *core.DetailedResponse) *TableReturn

GetExtractTablesResult : Retrieve result of ExtractTables operation

func (*CompareComplyV1) GetFeedback

func (compareComply *CompareComplyV1) GetFeedback(getFeedbackOptions *GetFeedbackOptions) (*core.DetailedResponse, error)

GetFeedback : List a specified feedback entry

func (*CompareComplyV1) GetGetBatchResult

func (compareComply *CompareComplyV1) GetGetBatchResult(response *core.DetailedResponse) *BatchStatus

GetGetBatchResult : Retrieve result of GetBatch operation

func (*CompareComplyV1) GetGetFeedbackResult

func (compareComply *CompareComplyV1) GetGetFeedbackResult(response *core.DetailedResponse) *GetFeedback

GetGetFeedbackResult : Retrieve result of GetFeedback operation

func (*CompareComplyV1) GetListBatchesResult

func (compareComply *CompareComplyV1) GetListBatchesResult(response *core.DetailedResponse) *Batches

GetListBatchesResult : Retrieve result of ListBatches operation

func (*CompareComplyV1) GetListFeedbackResult

func (compareComply *CompareComplyV1) GetListFeedbackResult(response *core.DetailedResponse) *FeedbackList

GetListFeedbackResult : Retrieve result of ListFeedback operation

func (*CompareComplyV1) GetUpdateBatchResult

func (compareComply *CompareComplyV1) GetUpdateBatchResult(response *core.DetailedResponse) *BatchStatus

GetUpdateBatchResult : Retrieve result of UpdateBatch operation

func (*CompareComplyV1) ListBatches

func (compareComply *CompareComplyV1) ListBatches(listBatchesOptions *ListBatchesOptions) (*core.DetailedResponse, error)

ListBatches : Gets the list of submitted batch-processing jobs Gets the list of batch-processing jobs submitted by users.

func (*CompareComplyV1) ListFeedback

func (compareComply *CompareComplyV1) ListFeedback(listFeedbackOptions *ListFeedbackOptions) (*core.DetailedResponse, error)

ListFeedback : List the feedback in documents

func (*CompareComplyV1) NewAddFeedbackOptions

func (compareComply *CompareComplyV1) NewAddFeedbackOptions(feedbackData *FeedbackDataInput) *AddFeedbackOptions

NewAddFeedbackOptions : Instantiate AddFeedbackOptions

func (*CompareComplyV1) NewClassifyElementsOptions

func (compareComply *CompareComplyV1) NewClassifyElementsOptions(file *os.File) *ClassifyElementsOptions

NewClassifyElementsOptions : Instantiate ClassifyElementsOptions

func (*CompareComplyV1) NewCompareDocumentsOptions

func (compareComply *CompareComplyV1) NewCompareDocumentsOptions(file1 *os.File, file2 *os.File) *CompareDocumentsOptions

NewCompareDocumentsOptions : Instantiate CompareDocumentsOptions

func (*CompareComplyV1) NewConvertToHTMLOptions

func (compareComply *CompareComplyV1) NewConvertToHTMLOptions(file *os.File, filename string) *ConvertToHTMLOptions

NewConvertToHTMLOptions : Instantiate ConvertToHTMLOptions

func (*CompareComplyV1) NewCreateBatchOptions

func (compareComply *CompareComplyV1) NewCreateBatchOptions(function string, inputCredentialsFile *os.File, inputBucketLocation string, inputBucketName string, outputCredentialsFile *os.File, outputBucketLocation string, outputBucketName string) *CreateBatchOptions

NewCreateBatchOptions : Instantiate CreateBatchOptions

func (*CompareComplyV1) NewDeleteFeedbackOptions

func (compareComply *CompareComplyV1) NewDeleteFeedbackOptions(feedbackID string) *DeleteFeedbackOptions

NewDeleteFeedbackOptions : Instantiate DeleteFeedbackOptions

func (*CompareComplyV1) NewExtractTablesOptions

func (compareComply *CompareComplyV1) NewExtractTablesOptions(file *os.File) *ExtractTablesOptions

NewExtractTablesOptions : Instantiate ExtractTablesOptions

func (*CompareComplyV1) NewGetBatchOptions

func (compareComply *CompareComplyV1) NewGetBatchOptions(batchID string) *GetBatchOptions

NewGetBatchOptions : Instantiate GetBatchOptions

func (*CompareComplyV1) NewGetFeedbackOptions

func (compareComply *CompareComplyV1) NewGetFeedbackOptions(feedbackID string) *GetFeedbackOptions

NewGetFeedbackOptions : Instantiate GetFeedbackOptions

func (*CompareComplyV1) NewListBatchesOptions

func (compareComply *CompareComplyV1) NewListBatchesOptions() *ListBatchesOptions

NewListBatchesOptions : Instantiate ListBatchesOptions

func (*CompareComplyV1) NewListFeedbackOptions

func (compareComply *CompareComplyV1) NewListFeedbackOptions() *ListFeedbackOptions

NewListFeedbackOptions : Instantiate ListFeedbackOptions

func (*CompareComplyV1) NewUpdateBatchOptions

func (compareComply *CompareComplyV1) NewUpdateBatchOptions(batchID string, action string) *UpdateBatchOptions

NewUpdateBatchOptions : Instantiate UpdateBatchOptions

func (*CompareComplyV1) UpdateBatch

func (compareComply *CompareComplyV1) UpdateBatch(updateBatchOptions *UpdateBatchOptions) (*core.DetailedResponse, error)

UpdateBatch : Updates a pending or active batch-processing request Updates a pending or active batch-processing request. You can rescan the input bucket to check for new documents or cancel a request.

type CompareComplyV1Options

type CompareComplyV1Options struct {
	Version        string
	URL            string
	IAMApiKey      string
	IAMAccessToken string
	IAMURL         string
}

CompareComplyV1Options : Service options

type CompareDocumentsOptions

type CompareDocumentsOptions struct {

	// The first file to compare.
	File1 *os.File `json:"file_1" validate:"required"`

	// The filename for file1.
	File1Filename *string `json:"file_1_filename,omitempty"`

	// The second file to compare.
	File2 *os.File `json:"file_2" validate:"required"`

	// The filename for file2.
	File2Filename *string `json:"file_2_filename,omitempty"`

	// A text label for the first file.
	File1Label *string `json:"file_1_label,omitempty"`

	// A text label for the second file.
	File2Label *string `json:"file_2_label,omitempty"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// The content type of file1. Values for this parameter can be obtained from the HttpMediaType class.
	File1ContentType *string `json:"file_1_content_type,omitempty"`

	// The content type of file2. Values for this parameter can be obtained from the HttpMediaType class.
	File2ContentType *string `json:"file_2_content_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CompareDocumentsOptions : The compareDocuments options.

func (*CompareDocumentsOptions) SetFile1

func (options *CompareDocumentsOptions) SetFile1(file1 *os.File) *CompareDocumentsOptions

SetFile1 : Allow user to set File1

func (*CompareDocumentsOptions) SetFile1ContentType

func (options *CompareDocumentsOptions) SetFile1ContentType(file1ContentType string) *CompareDocumentsOptions

SetFile1ContentType : Allow user to set File1ContentType

func (*CompareDocumentsOptions) SetFile1Filename

func (options *CompareDocumentsOptions) SetFile1Filename(file1Filename string) *CompareDocumentsOptions

SetFile1Filename : Allow user to set File1Filename

func (*CompareDocumentsOptions) SetFile1Label

func (options *CompareDocumentsOptions) SetFile1Label(file1Label string) *CompareDocumentsOptions

SetFile1Label : Allow user to set File1Label

func (*CompareDocumentsOptions) SetFile2

func (options *CompareDocumentsOptions) SetFile2(file2 *os.File) *CompareDocumentsOptions

SetFile2 : Allow user to set File2

func (*CompareDocumentsOptions) SetFile2ContentType

func (options *CompareDocumentsOptions) SetFile2ContentType(file2ContentType string) *CompareDocumentsOptions

SetFile2ContentType : Allow user to set File2ContentType

func (*CompareDocumentsOptions) SetFile2Filename

func (options *CompareDocumentsOptions) SetFile2Filename(file2Filename string) *CompareDocumentsOptions

SetFile2Filename : Allow user to set File2Filename

func (*CompareDocumentsOptions) SetFile2Label

func (options *CompareDocumentsOptions) SetFile2Label(file2Label string) *CompareDocumentsOptions

SetFile2Label : Allow user to set File2Label

func (*CompareDocumentsOptions) SetHeaders

func (options *CompareDocumentsOptions) SetHeaders(param map[string]string) *CompareDocumentsOptions

SetHeaders : Allow user to set Headers

func (*CompareDocumentsOptions) SetModelID

func (options *CompareDocumentsOptions) SetModelID(modelID string) *CompareDocumentsOptions

SetModelID : Allow user to set ModelID

type CompareReturn

type CompareReturn struct {

	// Information about the documents being compared.
	Documents []Document `json:"documents,omitempty"`

	// A list of pairs of elements that semantically align between the compared documents.
	AlignedElements []AlignedElement `json:"aligned_elements,omitempty"`

	// A list of elements that do not semantically align between the compared documents.
	UnalignedElements []UnalignedElement `json:"unaligned_elements,omitempty"`

	// The analysis model used to classify the input document. For the `/v1/element_classification` method, the only valid
	// value is `contracts`.
	ModelID *string `json:"model_id,omitempty"`

	// The version of the analysis model identified by the value of the `model_id` key.
	ModelVersion *string `json:"model_version,omitempty"`
}

CompareReturn : The comparison of the two submitted documents.

type Contact

type Contact struct {

	// A string listing the name of the contact.
	Name *string `json:"name,omitempty"`

	// A string listing the role of the contact.
	Role *string `json:"role,omitempty"`
}

Contact : A contact.

type ContractAmts

type ContractAmts struct {

	// The monetary amount.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`
}

ContractAmts : A monetary amount identified in the input document.

type ConvertToHTMLOptions

type ConvertToHTMLOptions struct {

	// The file to convert.
	File *os.File `json:"file" validate:"required"`

	// The filename for file.
	Filename *string `json:"filename" validate:"required"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
	FileContentType *string `json:"file_content_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ConvertToHTMLOptions : The convertToHtml options.

func (*ConvertToHTMLOptions) SetFile

func (options *ConvertToHTMLOptions) SetFile(file *os.File) *ConvertToHTMLOptions

SetFile : Allow user to set File

func (*ConvertToHTMLOptions) SetFileContentType

func (options *ConvertToHTMLOptions) SetFileContentType(fileContentType string) *ConvertToHTMLOptions

SetFileContentType : Allow user to set FileContentType

func (*ConvertToHTMLOptions) SetFilename

func (options *ConvertToHTMLOptions) SetFilename(filename string) *ConvertToHTMLOptions

SetFilename : Allow user to set Filename

func (*ConvertToHTMLOptions) SetHeaders

func (options *ConvertToHTMLOptions) SetHeaders(param map[string]string) *ConvertToHTMLOptions

SetHeaders : Allow user to set Headers

func (*ConvertToHTMLOptions) SetModelID

func (options *ConvertToHTMLOptions) SetModelID(modelID string) *ConvertToHTMLOptions

SetModelID : Allow user to set ModelID

type CreateBatchOptions

type CreateBatchOptions struct {

	// The Compare and Comply method to run across the submitted input documents.
	Function *string `json:"function" validate:"required"`

	// A JSON file containing the input Cloud Object Storage credentials. At a minimum, the credentials must enable `READ`
	// permissions on the bucket defined by the `input_bucket_name` parameter.
	InputCredentialsFile *os.File `json:"input_credentials_file" validate:"required"`

	// The filename for inputCredentialsFile.
	InputCredentialsFilename *string `json:"input_credentials_filename,omitempty"`

	// The geographical location of the Cloud Object Storage input bucket as listed on the **Endpoint** tab of your Cloud
	// Object Storage instance; for example, `us-geo`, `eu-geo`, or `ap-geo`.
	InputBucketLocation *string `json:"input_bucket_location" validate:"required"`

	// The name of the Cloud Object Storage input bucket.
	InputBucketName *string `json:"input_bucket_name" validate:"required"`

	// A JSON file that lists the Cloud Object Storage output credentials. At a minimum, the credentials must enable `READ`
	// and `WRITE` permissions on the bucket defined by the `output_bucket_name` parameter.
	OutputCredentialsFile *os.File `json:"output_credentials_file" validate:"required"`

	// The filename for outputCredentialsFile.
	OutputCredentialsFilename *string `json:"output_credentials_filename,omitempty"`

	// The geographical location of the Cloud Object Storage output bucket as listed on the **Endpoint** tab of your Cloud
	// Object Storage instance; for example, `us-geo`, `eu-geo`, or `ap-geo`.
	OutputBucketLocation *string `json:"output_bucket_location" validate:"required"`

	// The name of the Cloud Object Storage output bucket.
	OutputBucketName *string `json:"output_bucket_name" validate:"required"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateBatchOptions : The createBatch options.

func (*CreateBatchOptions) SetFunction

func (options *CreateBatchOptions) SetFunction(function string) *CreateBatchOptions

SetFunction : Allow user to set Function

func (*CreateBatchOptions) SetHeaders

func (options *CreateBatchOptions) SetHeaders(param map[string]string) *CreateBatchOptions

SetHeaders : Allow user to set Headers

func (*CreateBatchOptions) SetInputBucketLocation

func (options *CreateBatchOptions) SetInputBucketLocation(inputBucketLocation string) *CreateBatchOptions

SetInputBucketLocation : Allow user to set InputBucketLocation

func (*CreateBatchOptions) SetInputBucketName

func (options *CreateBatchOptions) SetInputBucketName(inputBucketName string) *CreateBatchOptions

SetInputBucketName : Allow user to set InputBucketName

func (*CreateBatchOptions) SetInputCredentialsFile

func (options *CreateBatchOptions) SetInputCredentialsFile(inputCredentialsFile *os.File) *CreateBatchOptions

SetInputCredentialsFile : Allow user to set InputCredentialsFile

func (*CreateBatchOptions) SetInputCredentialsFilename

func (options *CreateBatchOptions) SetInputCredentialsFilename(inputCredentialsFilename string) *CreateBatchOptions

SetInputCredentialsFilename : Allow user to set InputCredentialsFilename

func (*CreateBatchOptions) SetModelID

func (options *CreateBatchOptions) SetModelID(modelID string) *CreateBatchOptions

SetModelID : Allow user to set ModelID

func (*CreateBatchOptions) SetOutputBucketLocation

func (options *CreateBatchOptions) SetOutputBucketLocation(outputBucketLocation string) *CreateBatchOptions

SetOutputBucketLocation : Allow user to set OutputBucketLocation

func (*CreateBatchOptions) SetOutputBucketName

func (options *CreateBatchOptions) SetOutputBucketName(outputBucketName string) *CreateBatchOptions

SetOutputBucketName : Allow user to set OutputBucketName

func (*CreateBatchOptions) SetOutputCredentialsFile

func (options *CreateBatchOptions) SetOutputCredentialsFile(outputCredentialsFile *os.File) *CreateBatchOptions

SetOutputCredentialsFile : Allow user to set OutputCredentialsFile

func (*CreateBatchOptions) SetOutputCredentialsFilename

func (options *CreateBatchOptions) SetOutputCredentialsFilename(outputCredentialsFilename string) *CreateBatchOptions

SetOutputCredentialsFilename : Allow user to set OutputCredentialsFilename

type DeleteFeedbackOptions

type DeleteFeedbackOptions struct {

	// An string that specifies the feedback entry to be deleted from the document.
	FeedbackID *string `json:"feedback_id" validate:"required"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteFeedbackOptions : The deleteFeedback options.

func (*DeleteFeedbackOptions) SetFeedbackID

func (options *DeleteFeedbackOptions) SetFeedbackID(feedbackID string) *DeleteFeedbackOptions

SetFeedbackID : Allow user to set FeedbackID

func (*DeleteFeedbackOptions) SetHeaders

func (options *DeleteFeedbackOptions) SetHeaders(param map[string]string) *DeleteFeedbackOptions

SetHeaders : Allow user to set Headers

func (*DeleteFeedbackOptions) SetModelID

func (options *DeleteFeedbackOptions) SetModelID(modelID string) *DeleteFeedbackOptions

SetModelID : Allow user to set ModelID

type DocCounts

type DocCounts struct {

	// Total number of documents.
	Total *int64 `json:"total,omitempty"`

	// Number of pending documents.
	Pending *int64 `json:"pending,omitempty"`

	// Number of documents successfully processed.
	Successful *int64 `json:"successful,omitempty"`

	// Number of documents not successfully processed.
	Failed *int64 `json:"failed,omitempty"`
}

DocCounts : Document counts.

type DocInfo

type DocInfo struct {

	// The full text of the parsed document in HTML format.
	HTML *string `json:"html,omitempty"`

	// The title of the parsed document. If the service did not detect a title, the value of this element is `null`.
	Title *string `json:"title,omitempty"`

	// The MD5 hash of the input document.
	Hash *string `json:"hash,omitempty"`
}

DocInfo : Information about the parsed input document.

type DocStructure

type DocStructure struct {

	// An array containing one object per section or subsection identified in the input document.
	SectionTitles []SectionTitles `json:"section_titles,omitempty"`

	// An array containing one object per section or subsection, in parallel with the `section_titles` array, that details
	// the leading sentences in the corresponding section or subsection.
	LeadingSentences []LeadingSentence `json:"leading_sentences,omitempty"`
}

DocStructure : The structure of the input document.

type Document

type Document struct {

	// Document title, if detected.
	Title *string `json:"title,omitempty"`

	// The input document converted into HTML format.
	HTML *string `json:"html,omitempty"`

	// The MD5 hash value of the input document.
	Hash *string `json:"hash,omitempty"`

	// The label applied to the input document with the calling method's `file1_label` or `file2_label` value.
	Label *string `json:"label,omitempty"`
}

Document : Basic information about the input document.

type EffectiveDates

type EffectiveDates struct {

	// The effective date, listed as a string.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`
}

EffectiveDates : An effective date.

type Element

type Element struct {

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// The text of the element.
	Text *string `json:"text,omitempty"`

	// Description of the action specified by the element  and whom it affects.
	Types []TypeLabel `json:"types,omitempty"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories,omitempty"`

	// List of document attributes.
	Attributes []Attribute `json:"attributes,omitempty"`
}

Element : A component part of the document.

type ElementLocations

type ElementLocations struct {

	// An integer that indicates the starting position of the element in the input document.
	Begin *int64 `json:"begin,omitempty"`

	// An integer that indicates the ending position of the element in the input document.
	End *int64 `json:"end,omitempty"`
}

ElementLocations : A list of `begin` and `end` indexes that indicate the locations of the elements in the input document.

type ElementPair

type ElementPair struct {

	// The label of the document (that is, the value of either the `file_1_label` or `file_2_label` parameters) in which
	// the element occurs.
	DocumentLabel *string `json:"document_label,omitempty"`

	// The text of the element.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// Description of the action specified by the element  and whom it affects.
	Types []TypeLabel `json:"types,omitempty"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories,omitempty"`

	// List of document attributes.
	Attributes []Attribute `json:"attributes,omitempty"`
}

ElementPair : Details of semantically aligned elements.

type ExtractTablesOptions

type ExtractTablesOptions struct {

	// The file on which to run table extraction.
	File *os.File `json:"file" validate:"required"`

	// The filename for file.
	Filename *string `json:"filename,omitempty"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
	FileContentType *string `json:"file_content_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ExtractTablesOptions : The extractTables options.

func (*ExtractTablesOptions) SetFile

func (options *ExtractTablesOptions) SetFile(file *os.File) *ExtractTablesOptions

SetFile : Allow user to set File

func (*ExtractTablesOptions) SetFileContentType

func (options *ExtractTablesOptions) SetFileContentType(fileContentType string) *ExtractTablesOptions

SetFileContentType : Allow user to set FileContentType

func (*ExtractTablesOptions) SetFilename

func (options *ExtractTablesOptions) SetFilename(filename string) *ExtractTablesOptions

SetFilename : Allow user to set Filename

func (*ExtractTablesOptions) SetHeaders

func (options *ExtractTablesOptions) SetHeaders(param map[string]string) *ExtractTablesOptions

SetHeaders : Allow user to set Headers

func (*ExtractTablesOptions) SetModelID

func (options *ExtractTablesOptions) SetModelID(modelID string) *ExtractTablesOptions

SetModelID : Allow user to set ModelID

type FeedbackDataInput

type FeedbackDataInput struct {

	// The type of feedback. The only permitted value is `element_classification`.
	FeedbackType *string `json:"feedback_type" validate:"required"`

	// Brief information about the input document.
	Document *ShortDoc `json:"document,omitempty"`

	// An optional string identifying the model ID. The only permitted value is `contracts`.
	ModelID *string `json:"model_id,omitempty"`

	// An optional string identifying the version of the model used.
	ModelVersion *string `json:"model_version,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location" validate:"required"`

	// The text on which to submit feedback.
	Text *string `json:"text" validate:"required"`

	// The original labeling from the input document, without the submitted feedback.
	OriginalLabels *OriginalLabelsIn `json:"original_labels" validate:"required"`

	// The updated labeling from the input document, accounting for the submitted feedback.
	UpdatedLabels *UpdatedLabelsIn `json:"updated_labels" validate:"required"`
}

FeedbackDataInput : Feedback data for submission.

type FeedbackDataOutput

type FeedbackDataOutput struct {

	// A string identifying the user adding the feedback. The only permitted value is `element_classification`.
	FeedbackType *string `json:"feedback_type,omitempty"`

	// Brief information about the input document.
	Document *ShortDoc `json:"document,omitempty"`

	// An optional string identifying the model ID. The only permitted value is `contracts`.
	ModelID *string `json:"model_id,omitempty"`

	// An optional string identifying the version of the model used.
	ModelVersion *string `json:"model_version,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// The text to which the feedback applies.
	Text *string `json:"text,omitempty"`

	// The original labeling from the input document, without the submitted feedback.
	OriginalLabels *OriginalLabelsOut `json:"original_labels,omitempty"`

	// The updated labeling from the input document, accounting for the submitted feedback.
	UpdatedLabels *UpdatedLabelsOut `json:"updated_labels,omitempty"`

	// Pagination details, if required by the length of the output.
	Pagination *Pagination `json:"pagination,omitempty"`
}

FeedbackDataOutput : Information returned from the `POST /v1/feedback` method.

type FeedbackDeleted

type FeedbackDeleted struct {

	// HTTP return code.
	Status *int64 `json:"status,omitempty"`

	// Status message returned from the service.
	Message *string `json:"message,omitempty"`
}

FeedbackDeleted : The status and message of the deletion request.

type FeedbackList

type FeedbackList struct {

	// A list of all feedback for the document.
	Feedback []GetFeedback `json:"feedback,omitempty"`
}

FeedbackList : The results of a successful `GET /v1/feedback` request.

type FeedbackReturn

type FeedbackReturn struct {

	// The unique ID of the feedback object.
	FeedbackID *string `json:"feedback_id,omitempty"`

	// An optional string identifying the person submitting feedback.
	UserID *string `json:"user_id,omitempty"`

	// An optional comment from the person submitting the feedback.
	Comment *string `json:"comment,omitempty"`

	// Timestamp listing the creation time of the feedback submission.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// Information returned from the `POST /v1/feedback` method.
	FeedbackData *FeedbackDataOutput `json:"feedback_data,omitempty"`
}

FeedbackReturn : Information about the document and the submitted feedback.

type GetBatchOptions

type GetBatchOptions struct {

	// The ID of the batch-processing request whose information you want to retrieve.
	BatchID *string `json:"batch_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetBatchOptions : The getBatch options.

func (*GetBatchOptions) SetBatchID

func (options *GetBatchOptions) SetBatchID(batchID string) *GetBatchOptions

SetBatchID : Allow user to set BatchID

func (*GetBatchOptions) SetHeaders

func (options *GetBatchOptions) SetHeaders(param map[string]string) *GetBatchOptions

SetHeaders : Allow user to set Headers

type GetFeedback

type GetFeedback struct {

	// A string uniquely identifying the feedback entry.
	FeedbackID *string `json:"feedback_id,omitempty"`

	// A timestamp identifying the creation time of the feedback entry.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// A string containing the user's comment about the feedback entry.
	Comment *string `json:"comment,omitempty"`

	// Information returned from the `POST /v1/feedback` method.
	FeedbackData *FeedbackDataOutput `json:"feedback_data,omitempty"`
}

GetFeedback : The results of a single feedback query.

type GetFeedbackOptions

type GetFeedbackOptions struct {

	// An string that specifies the feedback entry to be included in the output.
	FeedbackID *string `json:"feedback_id" validate:"required"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetFeedbackOptions : The getFeedback options.

func (*GetFeedbackOptions) SetFeedbackID

func (options *GetFeedbackOptions) SetFeedbackID(feedbackID string) *GetFeedbackOptions

SetFeedbackID : Allow user to set FeedbackID

func (*GetFeedbackOptions) SetHeaders

func (options *GetFeedbackOptions) SetHeaders(param map[string]string) *GetFeedbackOptions

SetHeaders : Allow user to set Headers

func (*GetFeedbackOptions) SetModelID

func (options *GetFeedbackOptions) SetModelID(modelID string) *GetFeedbackOptions

SetModelID : Allow user to set ModelID

type HTMLReturn

type HTMLReturn struct {

	// The number of pages in the input document.
	NumPages *string `json:"num_pages,omitempty"`

	// The author of the input document, if identified.
	Author *string `json:"author,omitempty"`

	// The publication date of the input document, if identified.
	PublicationDate *string `json:"publication_date,omitempty"`

	// The title of the input document, if identified.
	Title *string `json:"title,omitempty"`

	// The HTML version of the input document.
	HTML *string `json:"html,omitempty"`
}

HTMLReturn : The HTML converted from an input document.

type Label

type Label struct {

	// The identified `nature` of the element.
	Nature *string `json:"nature" validate:"required"`

	// The identified `party` of the element.
	Party *string `json:"party" validate:"required"`
}

Label : A pair of `nature` and `party` objects. The `nature` object identifies the effect of the element on the identified `party`, and the `party` object identifies the affected party.

type LeadingSentence

type LeadingSentence struct {

	// The text of the leading sentence.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// An array of `location` objects listing the locations of detected leading sentences.
	ElementLocations []ElementLocations `json:"element_locations,omitempty"`
}

LeadingSentence : The leading sentences in a section or subsection of the input document.

type ListBatchesOptions

type ListBatchesOptions struct {

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListBatchesOptions : The listBatches options.

func (*ListBatchesOptions) SetHeaders

func (options *ListBatchesOptions) SetHeaders(param map[string]string) *ListBatchesOptions

SetHeaders : Allow user to set Headers

type ListFeedbackOptions

type ListFeedbackOptions struct {

	// An optional string that filters the output to include only feedback with the specified feedback type. The only
	// permitted value is `element_classification`.
	FeedbackType *string `json:"feedback_type,omitempty"`

	// An optional string in the format `YYYY-MM-DD` that filters the output to include only feedback that was added before
	// the specified date.
	Before *strfmt.Date `json:"before,omitempty"`

	// An optional string in the format `YYYY-MM-DD` that filters the output to include only feedback that was added after
	// the specified date.
	After *strfmt.Date `json:"after,omitempty"`

	// An optional string that filters the output to include only feedback from the document with the specified
	// `document_title`.
	DocumentTitle *string `json:"document_title,omitempty"`

	// An optional string that filters the output to include only feedback with the specified `model_id`. The only
	// permitted value is `contracts`.
	ModelID *string `json:"model_id,omitempty"`

	// An optional string that filters the output to include only feedback with the specified `model_version`.
	ModelVersion *string `json:"model_version,omitempty"`

	// An optional string in the form of a comma-separated list of categories. If this is specified, the service filters
	// the output to include only feedback that has at least one category from the list removed.
	CategoryRemoved *string `json:"category_removed,omitempty"`

	// An optional string in the form of a comma-separated list of categories. If this is specified, the service filters
	// the output to include only feedback that has at least one category from the list added.
	CategoryAdded *string `json:"category_added,omitempty"`

	// An optional string in the form of a comma-separated list of categories. If this is specified, the service filters
	// the output to include only feedback that has at least one category from the list unchanged.
	CategoryNotChanged *string `json:"category_not_changed,omitempty"`

	// An optional string of comma-separated `nature`:`party` pairs. If this is specified, the service filters the output
	// to include only feedback that has at least one `nature`:`party` pair from the list removed.
	TypeRemoved *string `json:"type_removed,omitempty"`

	// An optional string of comma-separated `nature`:`party` pairs. If this is specified, the service filters the output
	// to include only feedback that has at least one `nature`:`party` pair from the list removed.
	TypeAdded *string `json:"type_added,omitempty"`

	// An optional string of comma-separated `nature`:`party` pairs. If this is specified, the service filters the output
	// to include only feedback that has at least one `nature`:`party` pair from the list unchanged.
	TypeNotChanged *string `json:"type_not_changed,omitempty"`

	// An optional integer specifying the number of documents that you want the service to return.
	PageLimit *int64 `json:"page_limit,omitempty"`

	// An optional string that returns the set of documents after the previous set. Use this parameter with the
	// `page_limit` parameter.
	Cursor *string `json:"cursor,omitempty"`

	// An optional comma-separated list of fields in the document to sort on. You can optionally specify the sort direction
	// by prefixing the value of the field with `-` for descending order or `+` for ascending order (the default).
	// Currently permitted sorting fields are `created`, `user_id`, and `document_title`.
	Sort *string `json:"sort,omitempty"`

	// An optional boolean value. If specified as `true`, the `pagination` object in the output includes a value called
	// `total` that gives the total count of feedback created.
	IncludeTotal *bool `json:"include_total,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListFeedbackOptions : The listFeedback options.

func (*ListFeedbackOptions) SetAfter

func (options *ListFeedbackOptions) SetAfter(after *strfmt.Date) *ListFeedbackOptions

SetAfter : Allow user to set After

func (*ListFeedbackOptions) SetBefore

func (options *ListFeedbackOptions) SetBefore(before *strfmt.Date) *ListFeedbackOptions

SetBefore : Allow user to set Before

func (*ListFeedbackOptions) SetCategoryAdded

func (options *ListFeedbackOptions) SetCategoryAdded(categoryAdded string) *ListFeedbackOptions

SetCategoryAdded : Allow user to set CategoryAdded

func (*ListFeedbackOptions) SetCategoryNotChanged

func (options *ListFeedbackOptions) SetCategoryNotChanged(categoryNotChanged string) *ListFeedbackOptions

SetCategoryNotChanged : Allow user to set CategoryNotChanged

func (*ListFeedbackOptions) SetCategoryRemoved

func (options *ListFeedbackOptions) SetCategoryRemoved(categoryRemoved string) *ListFeedbackOptions

SetCategoryRemoved : Allow user to set CategoryRemoved

func (*ListFeedbackOptions) SetCursor

func (options *ListFeedbackOptions) SetCursor(cursor string) *ListFeedbackOptions

SetCursor : Allow user to set Cursor

func (*ListFeedbackOptions) SetDocumentTitle

func (options *ListFeedbackOptions) SetDocumentTitle(documentTitle string) *ListFeedbackOptions

SetDocumentTitle : Allow user to set DocumentTitle

func (*ListFeedbackOptions) SetFeedbackType

func (options *ListFeedbackOptions) SetFeedbackType(feedbackType string) *ListFeedbackOptions

SetFeedbackType : Allow user to set FeedbackType

func (*ListFeedbackOptions) SetHeaders

func (options *ListFeedbackOptions) SetHeaders(param map[string]string) *ListFeedbackOptions

SetHeaders : Allow user to set Headers

func (*ListFeedbackOptions) SetIncludeTotal

func (options *ListFeedbackOptions) SetIncludeTotal(includeTotal bool) *ListFeedbackOptions

SetIncludeTotal : Allow user to set IncludeTotal

func (*ListFeedbackOptions) SetModelID

func (options *ListFeedbackOptions) SetModelID(modelID string) *ListFeedbackOptions

SetModelID : Allow user to set ModelID

func (*ListFeedbackOptions) SetModelVersion

func (options *ListFeedbackOptions) SetModelVersion(modelVersion string) *ListFeedbackOptions

SetModelVersion : Allow user to set ModelVersion

func (*ListFeedbackOptions) SetPageLimit

func (options *ListFeedbackOptions) SetPageLimit(pageLimit int64) *ListFeedbackOptions

SetPageLimit : Allow user to set PageLimit

func (*ListFeedbackOptions) SetSort

func (options *ListFeedbackOptions) SetSort(sort string) *ListFeedbackOptions

SetSort : Allow user to set Sort

func (*ListFeedbackOptions) SetTypeAdded

func (options *ListFeedbackOptions) SetTypeAdded(typeAdded string) *ListFeedbackOptions

SetTypeAdded : Allow user to set TypeAdded

func (*ListFeedbackOptions) SetTypeNotChanged

func (options *ListFeedbackOptions) SetTypeNotChanged(typeNotChanged string) *ListFeedbackOptions

SetTypeNotChanged : Allow user to set TypeNotChanged

func (*ListFeedbackOptions) SetTypeRemoved

func (options *ListFeedbackOptions) SetTypeRemoved(typeRemoved string) *ListFeedbackOptions

SetTypeRemoved : Allow user to set TypeRemoved

type Location

type Location struct {

	// The element's `begin` index.
	Begin *int64 `json:"begin" validate:"required"`

	// The element's `end` index.
	End *int64 `json:"end" validate:"required"`
}

Location : The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.

type OriginalLabelsIn

type OriginalLabelsIn struct {

	// Description of the action specified by the element and whom it affects.
	Types []TypeLabel `json:"types" validate:"required"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories" validate:"required"`
}

OriginalLabelsIn : The original labeling from the input document, without the submitted feedback.

type OriginalLabelsOut

type OriginalLabelsOut struct {

	// Description of the action specified by the element and whom it affects.
	Types []TypeLabel `json:"types,omitempty"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories,omitempty"`

	// A string identifying the type of modification the feedback entry in the `updated_labels` array. Possible values are
	// `added`, `not_changed`, and `removed`.
	Modification *string `json:"modification,omitempty"`
}

OriginalLabelsOut : The original labeling from the input document, without the submitted feedback.

type Pagination

type Pagination struct {

	// A token identifying the current page of results.
	RefreshCursor *string `json:"refresh_cursor,omitempty"`

	// A token identifying the next page of results.
	NextCursor *string `json:"next_cursor,omitempty"`

	// The URL that returns the current page of results.
	RefreshURL *string `json:"refresh_url,omitempty"`

	// The URL that returns the next page of results.
	NextURL *string `json:"next_url,omitempty"`

	// Reserved for future use.
	Total *int64 `json:"total,omitempty"`
}

Pagination : Pagination details, if required by the length of the output.

type Parties

type Parties struct {

	// A string identifying the party.
	Party *string `json:"party,omitempty"`

	// A string identifying the party's role.
	Role *string `json:"role,omitempty"`

	// List of the party's address or addresses.
	Addresses []Address `json:"addresses,omitempty"`

	// List of the names and roles of contacts identified in the input document.
	Contacts []Contact `json:"contacts,omitempty"`
}

Parties : A party and its corresponding role, including address and contact information if identified.

type RowHeaderIds

type RowHeaderIds struct {

	// The `id` values of a row header.
	ID *string `json:"id,omitempty"`
}

RowHeaderIds : An array of values, each being the `id` value of a row header that is applicable to this body cell.

type RowHeaderTexts

type RowHeaderTexts struct {

	// The `text` value of a row header.
	Text *string `json:"text,omitempty"`
}

RowHeaderTexts : An array of values, each being the `text` value of a row header that is applicable to this body cell.

type RowHeaderTextsNormalized

type RowHeaderTextsNormalized struct {

	// The normalized version of a row header text.
	TextNormalized *string `json:"text_normalized,omitempty"`
}

RowHeaderTextsNormalized : If you provide customization input, the normalized version of the row header texts according to the customization; otherwise, the same value as `row_header_texts`.

type RowHeaders

type RowHeaders struct {

	// A string value in the format `rowHeader-x-y`, where `x` and `y` are the begin and end offsets of this row header
	// cell in the input document.
	CellID *string `json:"cell_id,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// The textual contents of this cell from the input document without associated markup content.
	Text *string `json:"text,omitempty"`

	// If you provide customization input, the normalized version of the cell text according to the customization;
	// otherwise, the same value as `text`.
	TextNormalized *string `json:"text_normalized,omitempty"`

	// The `begin` index of this cell's `row` location in the current table.
	RowIndexBegin *int64 `json:"row_index_begin,omitempty"`

	// The `end` index of this cell's `row` location in the current table.
	RowIndexEnd *int64 `json:"row_index_end,omitempty"`

	// The `begin` index of this cell's `column` location in the current table.
	ColumnIndexBegin *int64 `json:"column_index_begin,omitempty"`

	// The `end` index of this cell's `column` location in the current table.
	ColumnIndexEnd *int64 `json:"column_index_end,omitempty"`
}

RowHeaders : Row-level cells, each applicable as a header to other cells in the same row as itself, of the current table.

type SectionTitle

type SectionTitle struct {

	// The text of the section title, if identified.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`
}

SectionTitle : The table's section title, if identified.

type SectionTitles

type SectionTitles struct {

	// The text of the section title, if identified.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// An integer indicating the level at which the section is located in the input document. For example, `1` represents a
	// top-level section, `2` represents a subsection within the level `1` section, and so forth.
	Level *int64 `json:"level,omitempty"`

	// An array of `location` objects listing the locations of detected leading sentences.
	ElementLocations []ElementLocations `json:"element_locations,omitempty"`
}

SectionTitles : An array containing one object per section or subsection detected in the input document. Sections and subsections are not nested; instead, they are flattened out and can be placed back in order by using the `begin` and `end` values of the element and the `level` value of the section.

type ShortDoc

type ShortDoc struct {

	// The title of the input document, if identified.
	Title *string `json:"title,omitempty"`

	// The MD5 hash of the input document.
	Hash *string `json:"hash,omitempty"`
}

ShortDoc : Brief information about the input document.

type TableHeaders

type TableHeaders struct {

	// String value in the format `tableHeader-x-y` where `x` and `y` are the `begin` and `end` offsets, respectfully, of
	// the cell value in the input document.
	CellID *string `json:"cell_id,omitempty"`

	// The location of the table header cell in the current table as defined by its `begin` and `end` offsets,
	// respectfully, in the input document.
	Location interface{} `json:"location,omitempty"`

	// The textual contents of the cell from the input document without associated markup content.
	Text *string `json:"text,omitempty"`

	// The `begin` index of this cell's `row` location in the current table.
	RowIndexBegin *int64 `json:"row_index_begin,omitempty"`

	// The `end` index of this cell's `row` location in the current table.
	RowIndexEnd *int64 `json:"row_index_end,omitempty"`

	// The `begin` index of this cell's `column` location in the current table.
	ColumnIndexBegin *int64 `json:"column_index_begin,omitempty"`

	// The `end` index of this cell's `column` location in the current table.
	ColumnIndexEnd *int64 `json:"column_index_end,omitempty"`
}

TableHeaders : The contents of the current table's header.

type TableReturn

type TableReturn struct {

	// Information about the parsed input document.
	Document *DocInfo `json:"document,omitempty"`

	// The ID of the model used to extract the table contents. The value for table extraction is `tables`.
	ModelID *string `json:"model_id,omitempty"`

	// The version of the `tables` model ID.
	ModelVersion *string `json:"model_version,omitempty"`

	// Definitions of the tables identified in the input document.
	Tables []Tables `json:"tables,omitempty"`
}

TableReturn : The analysis of the document's tables.

type Tables

type Tables struct {

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// The textual contents of the current table from the input document without associated markup content.
	Text *string `json:"text,omitempty"`

	// The table's section title, if identified.
	SectionTitle *SectionTitle `json:"section_title,omitempty"`

	// An array of table-level cells that apply as headers to all the other cells in the current table.
	TableHeaders []TableHeaders `json:"table_headers,omitempty"`

	// An array of row-level cells, each applicable as a header to other cells in the same row as itself, of the current
	// table.
	RowHeaders []RowHeaders `json:"row_headers,omitempty"`

	// An array of column-level cells, each applicable as a header to other cells in the same column as itself, of the
	// current table.
	ColumnHeaders []ColumnHeaders `json:"column_headers,omitempty"`

	// An array of cells that are neither table header nor column header nor row header cells, of the current table with
	// corresponding row and column header associations.
	BodyCells []BodyCells `json:"body_cells,omitempty"`
}

Tables : The contents of the tables extracted from a document.

type TerminationDates

type TerminationDates struct {

	// The termination date.
	Text *string `json:"text,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`
}

TerminationDates : Termination dates identified in the input document.

type TypeLabel

type TypeLabel struct {

	// A pair of `nature` and `party` objects. The `nature` object identifies the effect of the element on the identified
	// `party`, and the `party` object identifies the affected party.
	Label *Label `json:"label,omitempty"`

	// One or more hash values that you can send to IBM to provide feedback or receive support.
	ProvenanceIds []string `json:"provenance_ids,omitempty"`
}

TypeLabel : Identification of a specific type.

type UnalignedElement

type UnalignedElement struct {

	// The label assigned to the document by the value of the `file_1_label` or `file_2_label` parameters on the
	// `/v1/compare` method.
	DocumentLabel *string `json:"document_label,omitempty"`

	// The numeric location of the identified element in the document, represented with two integers labeled `begin` and
	// `end`.
	Location *Location `json:"location,omitempty"`

	// The text of the element.
	Text *string `json:"text,omitempty"`

	// Description of the action specified by the element and whom it affects.
	Types []TypeLabel `json:"types,omitempty"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories,omitempty"`

	// List of document attributes.
	Attributes []Attribute `json:"attributes,omitempty"`
}

UnalignedElement : Element that does not align semantically between two compared documents.

type UpdateBatchOptions

type UpdateBatchOptions struct {

	// The ID of the batch-processing request you want to update.
	BatchID *string `json:"batch_id" validate:"required"`

	// The action you want to perform on the specified batch-processing request.
	Action *string `json:"action" validate:"required"`

	// The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the
	// default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone
	// methods as well as to the methods' use in batch-processing requests.
	ModelID *string `json:"model_id,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateBatchOptions : The updateBatch options.

func (*UpdateBatchOptions) SetAction

func (options *UpdateBatchOptions) SetAction(action string) *UpdateBatchOptions

SetAction : Allow user to set Action

func (*UpdateBatchOptions) SetBatchID

func (options *UpdateBatchOptions) SetBatchID(batchID string) *UpdateBatchOptions

SetBatchID : Allow user to set BatchID

func (*UpdateBatchOptions) SetHeaders

func (options *UpdateBatchOptions) SetHeaders(param map[string]string) *UpdateBatchOptions

SetHeaders : Allow user to set Headers

func (*UpdateBatchOptions) SetModelID

func (options *UpdateBatchOptions) SetModelID(modelID string) *UpdateBatchOptions

SetModelID : Allow user to set ModelID

type UpdatedLabelsIn

type UpdatedLabelsIn struct {

	// Description of the action specified by the element and whom it affects.
	Types []TypeLabel `json:"types" validate:"required"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories" validate:"required"`
}

UpdatedLabelsIn : The updated labeling from the input document, accounting for the submitted feedback.

type UpdatedLabelsOut

type UpdatedLabelsOut struct {

	// Description of the action specified by the element and whom it affects.
	Types []TypeLabel `json:"types,omitempty"`

	// List of functional categories into which the element falls; in other words, the subject matter of the element.
	Categories []Category `json:"categories,omitempty"`

	// The type of modification the feedback entry in the `updated_labels` array. Possible values are `added`,
	// `not_changed`, and `removed`.
	Modification *string `json:"modification,omitempty"`
}

UpdatedLabelsOut : The updated labeling from the input document, accounting for the submitted feedback.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL