@scribelabsai/amazon-trp
Version:
Amazon Textract Response Parser library for Node.
14 lines • 365 B
JavaScript
import { Geometry } from './Geometry';
export class Word {
constructor(block) {
this.block = block;
this.confidence = block.Confidence;
this.geometry = new Geometry(block.Geometry);
this.id = block.Id;
this.text = block.Text ?? '';
}
toString() {
return this.text;
}
}
//# sourceMappingURL=Word.js.map