BaseField
in package
AbstractYes
Base class for V2 fields.
Table of Contents
Properties
- $confidence : FieldConfidence|null
- $locations : array<string|int, FieldLocation>
- $indentLevel : int
Methods
- __construct() : mixed
- createField() : BaseField
Properties
$confidence
public
FieldConfidence|null
$confidence
Confidence score for the field.
$locations
public
array<string|int, FieldLocation>
$locations
List of possible locations for a field.
$indentLevel
protected
int
$indentLevel
Level of indentation for rst display.
Methods
__construct()
public
__construct(array<string|int, mixed> $rawPrediction[, int $indentLevel = 0 ]) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
- $indentLevel : int = 0
-
Level of indentation for rst display.
createField()
public
static createField(array<string|int, mixed> $rawPrediction[, int $indentLevel = 0 ]) : BaseField
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction array.
- $indentLevel : int = 0
-
Level of indentation for rst display.