SPL File LinearClassification.spl

Toolkits > com.ibm.streamsx.nlp 1.9.2 > com.ibm.streamsx.nlp > LinearClassification.spl

Content

Operators
  • LinearClassification: This operator identifies to which of a set of categories the input text belongs on the basis of a previously trained model.
Types

Composites

composite LinearClassification(output OutStream; input InStream)

This operator identifies to which of a set of categories the input text belongs on the basis of a previously trained model.

The LinearClassification operator should be used in a Streams release where SPL Python primitive support is not provided (e.g. Streams 3.2). It uses a ShellPipe operator to invoke Python scripts. When using a Streams release 4.2 or later, it is recommended to create a SPL Python primitive operator to invoke Python classes or functions.

Parameters

Input Ports

Output Ports

Static Types

LinearClassification.resultType = tuple<list<rstring> classes, list<float64> decisions, list<rstring> modelClasses>;