ClassificationClassifier
in package
implements
Stringable
Classification of document type from the source file.
Table of Contents
Interfaces
- Stringable
Properties
- $documentType : string
- $extractionResponse : ExtractionResponse|null
Methods
- __construct() : mixed
- __toString() : string
Properties
$documentType
public
string
$documentType
The document type, as identified on given classification values.
$extractionResponse
public
ExtractionResponse|null
$extractionResponse
The extraction response associated with the classification.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : mixed
Parameters
- $rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw prediction array.
__toString()
public
__toString() : string
Return values
string —String representation.