AlvisNLP

corpus processing engine

CartesianProductTuples

Synopsis

Creates tuples for each element of a Cartesian product.

Description

CartesianProductTuples evaluates anchor as an element list with the corpus as the context element. Each item is hereby called the anchor . CartesianProductTuples evaluates all values of arguments as lists of elements with the anchor as the context element. Then it creates a tuple for each item of the cartesian product of the result of the evaluation of arguments . The tuple will have an argument for each item with the role specified by the keys of arguments .

Snippet

<cartesianproducttuples class="CartesianProductTuples">
    <anchor></anchor>
    <arguments></arguments>
    <relation></relation>
</cartesianproducttuples>

Mandatory parameters

anchor

Mandatory
Type: Expression

Elements from which arguments are evaluated.

arguments

Mandatory

Tuple role/argument pairs.

relation

Mandatory
Type: String

Name of the relation to which tuples are added.

Optional parameters

constantRelationFeatures

Optional
Type: Mapping

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

constantTupleFeatures

Optional
Type: Mapping

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

documentFilter

Default value: `true`
Type: Expression

Only process document that satisfy this expression.

sectionFilter

Default value: `true`
Type: Expression

Process only sections that satisfy this expression.

Deprecated parameters

relationName

Deprecated
Type: String

Deprecate alias for relation .