AlvisNLP

corpus processing engine

ContesTrain

Synopsis

Train a term concept classifier using CONTES .

This module is experimental.

Description

ContesTrain trains a classifier using CONTES for classifying terms in a ontology hierarchy.

Snippet

<contestrain class="ContesTrain">
    <contesDir></contesDir>
    <ontology></ontology>
    <python3Executable></python3Executable>
    <termClassifiers></termClassifiers>
    <tokenLayer></tokenLayer>
</contestrain>

Mandatory parameters

contesDir

Mandatory

Root directory of CONTES.

ontology

Mandatory
Type: InputFile

Path to the ontology file in OBO or OWL format.

python3Executable

Mandatory

Path to the Python 3 executable.

termClassifiers

Mandatory

UNDOCUMENTED

tokenLayer

Mandatory
Type: String

Name of the layer containing token annotations.

Optional parameters

additionalArguments

Optional
Type: String[]

UNDOCUMENTED

wordEmbeddings

Optional
Type: InputFile

Path to the file containing word embeddings, as produced by Word2Vec .

wordEmbeddingsModel

Optional
Type: InputFile

UNDOCUMENTED

defaultFactor

Default value: `1.0`
Type: Double

Default value for the decay factor.

formFeature

Default value: `form`
Type: String

Feature to use as word form.

Deprecated parameters

formFeatureName

Deprecated
Type: String

Deprecated alias for formFeature .

tokenLayerName

Deprecated
Type: String

Deprecated alias for tokenLayer .