mindee
Version:
Mindee Client Library for Node.js
18 lines (17 loc) • 495 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClassificationField = void 0;
class ClassificationField {
constructor({ prediction, pageId, }) {
this.value = prediction["value"];
this.confidence = prediction["confidence"];
this.pageId ?? (this.pageId = pageId);
}
/**
* Default string representation.
*/
toString() {
return `${this.value}`;
}
}
exports.ClassificationField = ClassificationField;