Skip to content

CorpusRepresentation

Johann Petrak edited this page Jun 25, 2018 · 3 revisions

Implementation: CorpusRepresentation

Main functions:

  • Creating: this is currently done just using the appropriate constructor
  • Add instances: this is done using the method
    • add(isntanceAS, sequenceAS, inputAS, classAS, targetFeatureName, targetType, instanceWeightFeatuer, nameFeature, seqEncoder)
  • Finalizing: this method must be called to perform any additional steps on the whole training set after all instances have been added and before it can be used for training. The method finalize() is used for this.

Other methods are only available for the Mallet representations and can only be used from Engine instances which use the Mallet corpus representation.

Clone this wiki locally