@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.
Constructor and Description |
---|
InputDataConfig() |
Modifier and Type | Method and Description |
---|---|
InputDataConfig |
clone() |
boolean |
equals(Object obj) |
DocumentReaderConfig |
getDocumentReaderConfig()
The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
|
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)
The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
|
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)
The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
|
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)
The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.
documentReaderConfig
- The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.
public DocumentReaderConfig getDocumentReaderConfig()
The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.
Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.
public InputDataConfig withDocumentReaderConfig(DocumentReaderConfig documentReaderConfig)
The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.
documentReaderConfig
- The document reader config field applies only for InputDataConfig of StartEntitiesDetectionJob.
Use DocumentReaderConfig to provide specifications about how you want your inference documents read. Currently it applies for PDF documents in StartEntitiesDetectionJob custom inference.
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.