@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InputDataConfig extends Object implements Serializable, Cloneable, StructuredPojo
The input properties for an inference job. The document reader config field applies only to non-text inputs for custom analysis.
Constructor and Description |
---|
InputDataConfig() |
Modifier and Type | Method and Description |
---|---|
InputDataConfig |
clone() |
boolean |
equals(Object obj) |
DocumentReaderConfig |
getDocumentReaderConfig()
Provides configuration parameters to override the default actions for extracting text from PDF documents and
image files.
|
String |
getInputFormat()
Specifies how the text in an input file should be processed:
|
String |
getS3Uri()
The Amazon S3 URI for the input data.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentReaderConfig(DocumentReaderConfig documentReaderConfig)
Provides configuration parameters to override the default actions for extracting text from PDF documents and
image files.
|
void |
setInputFormat(String inputFormat)
Specifies how the text in an input file should be processed:
|
void |
setS3Uri(String s3Uri)
The Amazon S3 URI for the input data.
|
String |
toString()
Returns a string representation of this object.
|
InputDataConfig |
withDocumentReaderConfig(DocumentReaderConfig documentReaderConfig)
Provides configuration parameters to override the default actions for extracting text from PDF documents and
image files.
|
InputDataConfig |
withInputFormat(InputFormat inputFormat)
Specifies how the text in an input file should be processed:
|
InputDataConfig |
withInputFormat(String inputFormat)
Specifies how the text in an input file should be processed:
|
InputDataConfig |
withS3Uri(String s3Uri)
The Amazon S3 URI for the input data.
|
public void setS3Uri(String s3Uri)
The Amazon S3 URI for the input data. The URI must be in same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of data files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon
Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of
them as input.
s3Uri
- The Amazon S3 URI for the input data. The URI must be in same Region as the API endpoint that you are
calling. The URI can point to a single input file or it can provide the prefix for a collection of data
files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file,
Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend
uses all of them as input.
public String getS3Uri()
The Amazon S3 URI for the input data. The URI must be in same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of data files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon
Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of
them as input.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file,
Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon
Comprehend uses all of them as input.
public InputDataConfig withS3Uri(String s3Uri)
The Amazon S3 URI for the input data. The URI must be in same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of data files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon
Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of
them as input.
s3Uri
- The Amazon S3 URI for the input data. The URI must be in same Region as the API endpoint that you are
calling. The URI can point to a single input file or it can provide the prefix for a collection of data
files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file,
Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend
uses all of them as input.
public void setInputFormat(String inputFormat)
Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option when you
are processing many short documents, such as text messages.
inputFormat
- Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option
when you are processing many short documents, such as text messages.
InputFormat
public String getInputFormat()
Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option when you
are processing many short documents, such as text messages.
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option
when you are processing many short documents, such as text messages.
InputFormat
public InputDataConfig withInputFormat(String inputFormat)
Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option when you
are processing many short documents, such as text messages.
inputFormat
- Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option
when you are processing many short documents, such as text messages.
InputFormat
public InputDataConfig withInputFormat(InputFormat inputFormat)
Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option when you
are processing many short documents, such as text messages.
inputFormat
- Specifies how the text in an input file should be processed:
ONE_DOC_PER_FILE
- Each file is considered a separate document. Use this option when you are
processing large documents, such as newspaper articles or scientific papers.
ONE_DOC_PER_LINE
- Each line in a file is considered a separate document. Use this option
when you are processing many short documents, such as text messages.
InputFormat
public void setDocumentReaderConfig(DocumentReaderConfig documentReaderConfig)
Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.
documentReaderConfig
- Provides configuration parameters to override the default actions for extracting text from PDF documents
and image files.public DocumentReaderConfig getDocumentReaderConfig()
Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.
public InputDataConfig withDocumentReaderConfig(DocumentReaderConfig documentReaderConfig)
Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.
documentReaderConfig
- Provides configuration parameters to override the default actions for extracting text from PDF documents
and image files.public String toString()
toString
in class Object
Object.toString()
public InputDataConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.