Documentation

CompanyRegistrationField extends BaseField
in package
uses FieldPositionMixin

A company registration item.

Table of Contents

Properties

$boundingBox  : Polygon|null
$confidence  : float
$pageId  : int|mixed|null
$polygon  : Polygon
$reconstructed  : bool
$type  : string|mixed
$value  : mixed|null

Methods

__compare()  : bool
Compares with the value of another field.
__construct()  : mixed
__toString()  : string
String representation.
toTableLine()  : string
Return as a table line for RST display.
setConfidence()  : void
Sets the confidence score.
setPosition()  : void
Sets the position of a field.
printableValues()  : array<string|int, mixed>
Returns an array of proper values for the formatting.

Properties

$pageId

public int|mixed|null $pageId

The document page on which the information was found.

$reconstructed

public bool $reconstructed

Whether the field was reconstructed from other fields.

$value

public mixed|null $value

Raw field value.

Methods

__compare()

Compares with the value of another field.

public __compare(BaseField $obj) : bool
Parameters
$obj : BaseField

Field to compare.

Return values
bool

__construct()

public __construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ][, bool $reconstructed = false ][, string $valueKey = 'value' ]) : mixed
Parameters
$rawPrediction : array<string|int, mixed>

Raw prediction array.

$pageId : int|null = null

Page number for multi pages document.

$reconstructed : bool = false

Whether the field was reconstructed.

$valueKey : string = 'value'

Key to use for the value.

toTableLine()

Return as a table line for RST display.

public toTableLine() : string
Return values
string

setConfidence()

Sets the confidence score.

protected setConfidence(array<string|int, mixed> $rawPrediction) : void
Parameters
$rawPrediction : array<string|int, mixed>

Raw prediction array.

setPosition()

Sets the position of a field.

protected setPosition(array<string|int, mixed> $rawPrediction) : void
Parameters
$rawPrediction : array<string|int, mixed>

Raw prediction array.

printableValues()

Returns an array of proper values for the formatting.

private printableValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results