Skip to content

module__org.bibliome.alvisnlp.modules.RegExp

Robert Bossy edited this page Jul 27, 2017 · 1 revision

#org.bibliome.alvisnlp.modules.RegExp

Synopsis

Matches a regular expression on sections contents and create an annotation for each match.

Description

org.bibliome.alvisnlp.modules.RegExp searches for pattern in the contents of sections, then creates an annotation for each match. The created annotations will span on the entire match. The created annotations will be added in the layer named targetLayerName of the corresponding section. If pattern contains groups, then the pattern elements inside groups will be matched but the grouping will not be taken into account in the creation of the annotation.

The created annotations will automatically have all features defined in constantAnnotationFeatures.

Parameters

Optional

Type: Pattern

Regular expression to match.

Optional

Type: String

Name of the layer where to store matches.

Optional

Type: Mapping

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

Default value: true

Type: Expression

Only process document that satisfy this filter.

Default value: true

Type: Expression

Process only sections that satisfy this filter.

Clone this wiki locally