AlvisNLP

corpus processing engine

StanfordParser

Synopsis

Applies the Stanford dependency parser .

Description

Applies the Stanford dependency parser .

The corpus must be sentence-split, tokenized and tokens must be POS-tagged.

The root is represented as a tuple like dependencies but without a head argument, and labelled root .

Snippet

<stanfordparser class="StanfordParser">
</stanfordparser>

Mandatory parameters

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.

dependencyLabelFeature

Default value: `label`
Type: String

Name of the feature where to store the dependency label.

dependencyRelation

Default value: `dependencies`
Type: String

Name of the relation where to store dependency tuples.

dependencySentenceRole

Default value: `sentence`
Type: String

Name of the role of the dependency tuple argument that references the parsed sentence.

dependentRole

Default value: `dependent`
Type: String

Name of the role of the dependency tuple argument that references the modifier (dependent) token.

documentFilter

Default value: `true`
Type: Expression

Only process document that satisfy this expression.

formFeature

Default value: `form`
Type: String

Name of the feature containing the token surface form.

headRole

Default value: `head`
Type: String

Name of the role of the dependency tuple argument that references the head (governor) token.

language

Default value: `ENGLISH`
Type: Language

Language of the text to parse. StanfordParser currently supports english (default), french, german, spanish and chinese.

omitRoot

Default value: `false`
Type: Boolean

If set, do not create the root tuple.

posTagFeature

Default value: `pos`
Type: String

Name of the feature containing the token POS tag.

sectionFilter

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

Process only sections that satisfy this expression.

sentenceFilter

Default value: `true`
Type: Expression

Expression evaluated on each sentence annotation, the sentence is parsed if this expression evaluates as true.

sentenceLayer

Default value: `sentences`
Type: String

Name of the layer containing sentence annotations.

tokenLayer

Default value: `words`
Type: String

Name of the layer containing token annotations.

Deprecated parameters

dependencyLabelFeatureName

Deprecated
Type: String

Deprecated alias for dependencyLabelFeature .

dependencyRelationName

Deprecated
Type: String

Deprecated alias for dependencyRelation .

formFeatureName

Deprecated
Type: String

Deprecated alias for formFeature .

posTagFeatureName

Deprecated
Type: String

Deprecated alias for posTagFeature .

sentenceLayerName

Deprecated
Type: String

Deprecated alias for sentenceLayer .

tokenLayerName

Deprecated
Type: String

Deprecated alias for tokenLayer .