AlvisNLP

corpus processing engine

CCGPosTagger

Synopsis

Applies the CCG POS tagger on annotations.

Description

CCGPosTagger applies the CCG POS tagger on annotations in the layer named wordLayer . Sentences are enforced if sentenceLayer is set.

If keepPreviousPos is set to true , then the POS tag predicted by CCG will not be added to annotations that already have a POS tag.

Snippet

<ccgpostagger class="CCGPosTagger">
    <executable></executable>
    <model></model>
</ccgpostagger>

Mandatory parameters

executable

Mandatory

Path to the CCG POS tagger executable.

model

Mandatory

Path to the CCG POS model.

Optional parameters

documentFilter

Default value: `true`
Type: Expression

Only process document that satisfy this expression.

formFeature

Default value: `form`
Type: String

Name of the feature in word annotations that contains the surface form.

internalEncoding

Default value: `UTF-8`
Type: String

Character encoding to use for CCG input and output files.

keepPreviousPos

Default value: `false`
Type: Boolean

Either to keep previous POS tags.

maxRuns

Default value: `1`
Type: Integer

Maximal number of CCG runs.

posFeature

Default value: `pos`
Type: String

Name of the feature in word annotations where to write POS tags.

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

Process only sentences that satisfy this filter.

sentenceLayer

Default value: `sentences`
Type: String

Name of the layer containing sentence annotations.

silent

Default value: `false`
Type: Boolean

Either to shut the CCG output (CCG can be quite verbose).

wordLayer

Default value: `words`
Type: String

Name of the layer containing word annotations.

Deprecated parameters

formFeatureName

Deprecated
Type: String

Deprecated alias for formFeature .

posFeatureName

Deprecated
Type: String

Deprecated alias for posFeature .

sentenceLayerName

Deprecated
Type: String

Deprecated alias for sentenceLayer .

wordLayerName

Deprecated
Type: String

Deprecated alias for wordLayer .