Skip to content

module__RunProlog

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

#org.bibliome.alvisnlp.modules.prolog.RunProlog

Synopsis

Runs a Prolog program with the corpus data structure encoded as facts.

This module is experimental.

Description

org.bibliome.alvisnlp.modules.prolog.RunProlog runs a Prolog program specified in two parameters:

  1. theory is read as a regular Prolog program;

  2. facts generate a set of facts.

    Additionally goals specifies the goals of the Prolog programs, and an associated action expression that will be evaluated for each solution.

org.bibliome.alvisnlp.modules.prolog.RunProlog will run generate facts and resolve goals for each element specified by target.

Parameters

Optional

Type: FactDefinition[]]

Fact specifications.

Optional

Type: GoalDefinition[]]

Goal specifications.

Optional

Type: Expression

Top-level elements for which facts and goals are computed. This expression is evaluated as a list of elements with the corpus as context.

Optional

Type: SourceStream

Source of the main Prolog program.

Optional

Type: Mapping

Constant features to add to each annotation created by this module

Optional

Type: Mapping

Constant features to add to each document created by this module

Optional

Type: Mapping

Constant features to add to each relation created by this module

Optional

Type: Mapping

Constant features to add to each section created by this module

Optional

Type: Mapping

Constant features to add to each tuple created by this module

Default value: false

Type: Boolean

Either the goal actions may add annotations to layers.

Default value: false

Type: Boolean

Either the goal actions may create annotations.

Default value: false

Type: Boolean

Either the goal actions may create documents.

Default value: false

Type: Boolean

Either the goal actions may create relations.

Default value: false

Type: Boolean

Either the goal actions may create sections.

Default value: false

Type: Boolean

Either the goal actions may create tuples.

Default value: false

Type: Boolean

Either the goal actions may delete elements.

Default value: false

Type: Boolean

Either the goal actions may remove annotations from layers.

Default value: false

Type: Boolean

Either the goal actions may set tuple arguments.

Default value: false

Type: Boolean

Either the goal actions may add element features.

Clone this wiki locally