The configuration of input data, including data type, location, etc.
JSON representation | |
---|---|
{ "dataType": enum ( |
Fields | ||
---|---|---|
dataType |
Required. Data type must be specifed when user tries to import data. |
|
annotationType |
Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an |
|
classificationMetadata |
Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an |
|
textMetadata |
Required for text import, as language code must be specified. |
|
Union field source . Required. Where the data is from. source can be only one of the following: |
||
gcsSource |
Source located in Cloud Storage. |
|
bigquerySource |
Source located in BigQuery. You must specify this field if you are using this InputConfig in an |
TextMetadata
Metadata for the text.
JSON representation | |
---|---|
{ "languageCode": string } |
Fields | |
---|---|
languageCode |
The language of this text, as a BCP-47. Default value is en-US. |
GcsSource
Source of the Cloud Storage file to be imported.
JSON representation | |
---|---|
{ "inputUri": string, "mimeType": string } |
Fields | |
---|---|
inputUri |
Required. The input URI of source file. This must be a Cloud Storage path ( |
mimeType |
Required. The format of the source file. Only "text/csv" is supported. |
BigQuerySource
The BigQuery location for input data. If used in an EvaluationJob
, this is where the service saves the prediction input and output sampled from the model version.
JSON representation | |
---|---|
{ "inputUri": string } |
Fields | |
---|---|
inputUri |
Required. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your Provide the table URI in the following format: "bq://{your_project_id}/{your_dataset_name}/{your_table_name}" |
ClassificationMetadata
Metadata for classification annotations.
JSON representation | |
---|---|
{ "isMultiLabel": boolean } |
Fields | |
---|---|
isMultiLabel |
Whether the classification task is multi-label or not. |