AlvisNLP

corpus processing engine

SplitSections

Synopsis

Split sections into several sections according to annotations boundaries.

Description

SplitSections creates a new section for each annotation in selectLayer . The created sections will have the same name as the section to which the annotation belongs.

Creates a copy of annotations in other layers in the new section. Relation and tuples are also cloned.

SplitSections optionally creates a new document for each created section if splitDocuments is set.

Snippet

<splitsections class="SplitSections">
    <selectLayer></selectLayer>
</splitsections>

Mandatory parameters

selectLayer

Mandatory
Type: String

Layer where to find annotations that specify the created sections contents.

Optional parameters

constantAnnotationFeatures

Optional
Type: Mapping

Constant features to add to each annotation created by this module.

constantDocumentFeatures

Optional
Type: Mapping

Constant features to add to each document created by this module.

constantRelationFeatures

Optional
Type: Mapping

Constant features to add to each relation created by this module.

constantSectionFeatures

Optional
Type: Mapping

Constant features to add to each section created by this module.

constantTupleFeatures

Optional
Type: Mapping

Constant features to add to each tuple created by this module.

croppedAnnotationFeature

Default value: `cropped`
Type: String

If an annotation is cropped in the process of cloning, then this feature is set to true .

docId

Default value: `@id ^ "__" ^ split:num`
Type: Expression

Identifier of created documents if splitDocuments is set.

documentFilter

Default value: `true`
Type: Expression

Only process document that satisfy this expression.

mergeOverlapping

Default value: `false`
Type: Boolean

Merge overlapping annotations in selectLayer before creating sections.

sectionFilter

Default value: `true`
Type: Expression

Process only sections that satisfy this expression.

splitDocuments

Default value: `false`
Type: Boolean

If set, the SplitSections creates a new document for each created section.

Deprecated parameters

croppedAnnotationFeatureName

Deprecated
Type: String

Deprecated alias for croppedAnnotationFeature .

selectLayerName

Deprecated
Type: String

Deprecated alias for selectLayer .