AlvisNLP

corpus processing engine

RelpWriter

Synopsis

Writes the corpus in relp format.

Description

RelpWriter writes the corpus into outFile in relp format.

Snippet

<relpwriter class="RelpWriter">
    <outFile></outFile>
</relpwriter>

Mandatory parameters

outFile

Mandatory

File where to write the dependencies.

Optional parameters

linkageNumberFeature

Optional
Type: String

Feature containing the linkage number to which a dependency belongs.

dependencyLabelFeature

Default value: `label`
Type: String

Feature containing the dependency label.

dependencyRelation

Default value: `dependencies`
Type: String

Name of the dependecy relation.

dependentForm

Default value: `@form`
Type: Expression

Expression evaluated as a string with the dependency dependent element as context. The result is the surface form of the dependent.

dependentRole

Default value: `dependent`
Type: String

Name of the role of the dependent word.

documentFilter

Default value: `true`
Type: Expression

Only process document that satisfy this expression.

headForm

Default value: `@form`
Type: Expression

Expression evaluated as a string with the dependency head element as context. The result is the surface form of the head.

headRole

Default value: `head`
Type: String

Name of the role of the head word.

lemmaForm

Default value: `@lemma`
Type: Expression

Expression evaluated as a string with the word element as context. The result is the lemma of the word.

pmid

Default value: `@id`
Type: Expression

Expression evaluated as a string with the document as context. The result is the identifier of the document.

sectionFilter

Default value: `true and layer:sentences and layer:words`
Type: Expression

Process only sections that satisfy this expression.

sentenceLayer

Default value: `sentences`
Type: String

Name of the layer containing sentence annotations.

sentenceRole

Default value: `sentence`
Type: String

Name of the role of the parsed sentence in the dependency relation.

wordForm

Default value: `@form`
Type: Expression

Expression evaluated as a string with the word element as context. The result is the surface form of the word.

wordLayer

Default value: `words`
Type: String

Name of the layer containing word annotations.

Deprecated parameters