Documentation

GeneratedV1Prediction extends Prediction
in package

Generated V1 document prediction results.

Table of Contents

Properties

$fields  : array<string, GeneratedListField|StringField|GeneratedObjectField>

Methods

__construct()  : mixed
GeneratedV1Prediction constructor.
__toString()  : string
getListFields()  : array<string, GeneratedListField>
Returns a dictionary of all list-like fields.
getObjectFields()  : array<string, GeneratedObjectField>
Returns a dictionary of all object-like fields.
getSingleFields()  : array<string, StringField>
Returns a dictionary of all fields that aren't a collection.
listFieldNames()  : array<string|int, string>
Lists names of all top-level field keys.

Properties

Methods

__construct()

GeneratedV1Prediction constructor.

public __construct(array<string|int, mixed> $rawPrediction) : mixed
Parameters
$rawPrediction : array<string|int, mixed>

Dictionary containing the JSON document response.

listFieldNames()

Lists names of all top-level field keys.

public listFieldNames() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results