public class SegmentSettings
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
SegmentSettings.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
annotatedFields |
protected java.lang.Boolean |
enabled |
protected java.util.List<java.lang.String> |
selectorTags |
Modifier | Constructor and Description |
---|---|
protected |
SegmentSettings(SegmentSettings.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
annotatedFields()
Gets the annotatedFields.
|
java.lang.Boolean |
enabled()
Gets the enabled.
|
SegmentSettings.Builder |
newBuilder()
New builder.
|
java.util.List<java.lang.String> |
selectorTags()
Gets the selectorTags.
|
protected java.lang.Boolean enabled
@SerializedName(value="selector_tags") protected java.util.List<java.lang.String> selectorTags
@SerializedName(value="annotated_fields") protected java.util.List<java.lang.String> annotatedFields
protected SegmentSettings(SegmentSettings.Builder builder)
public SegmentSettings.Builder newBuilder()
public java.lang.Boolean enabled()
Enables/disables the Document Segmentation feature.
public java.util.List<java.lang.String> selectorTags()
Defines the heading level that splits into document segments. Valid values are h1, h2, h3, h4, h5, h6. The content of the header field that the segmentation splits at is used as the **title** field for that segmented result. Only valid if used with a collection that has **enabled** set to `false` in the **smart_document_understanding** object.
public java.util.List<java.lang.String> annotatedFields()
Defines the annotated smart document understanding fields that the document is split on. The content of the annotated field that the segmentation splits at is used as the **title** field for that segmented result. For example, if the field `sub-title` is specified, when a document is uploaded each time the smart documement understanding conversion encounters a field of type `sub-title` the document is split at that point and the content of the field used as the title of the remaining content. Thnis split is performed for all instances of the listed fields in the uploaded document. Only valid if used with a collection that has **enabled** set to `true` in the **smart_document_understanding** object.