ResumeV1Language
in package
implements
Stringable
uses
FieldConfidenceMixin, FieldPositionMixin
The list of languages that the candidate is proficient in.
Table of Contents
Interfaces
- Stringable
Properties
- $boundingBox : Polygon|null
- $confidence : float
- $language : string|null
- $level : string|null
- $pageId : int|null
- $polygon : Polygon
Methods
- __construct() : mixed
- __toString() : string
- toTableLine() : string
- Output in a format suitable for inclusion in an rST table.
- setConfidence() : void
- Sets the confidence score.
- setPosition() : void
- Sets the position of a field.
- tablePrintableValues() : array<string, string>
- Return values for printing inside an RST table.
Properties
$boundingBox
public
Polygon|null
$boundingBox
A right rectangle containing the word in the document.
$confidence
public
float
$confidence
The confidence score.
$language
public
string|null
$language
The language's ISO 639 code.
$level
public
string|null
$level
The candidate's level for the language.
$pageId
public
int|null
$pageId
$polygon
public
Polygon
$polygon
A polygon containing the word in the document.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction, int|null $pageId) : mixed
Parameters
- $rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Array containing the JSON document response.
- $pageId : int|null
-
Page number for multi pages document.
__toString()
public
__toString() : string
Return values
string —String representation.
toTableLine()
Output in a format suitable for inclusion in an rST table.
public
toTableLine() : string
Return values
stringsetConfidence()
Sets the confidence score.
protected
setConfidence(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void
Parameters
- $rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw prediction array.
setPosition()
Sets the position of a field.
protected
setPosition(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void
Parameters
- $rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw prediction array.
tablePrintableValues()
Return values for printing inside an RST table.
private
tablePrintableValues() : array<string, string>