mindee
Version:
Mindee Client Library for Node.js
16 lines (15 loc) • 655 B
JavaScript
import { ExtractionResult } from "./extractionResult.js";
import { ExtractionActiveOptions } from "./extractionActiveOptions.js";
import { BaseInference } from "../../../v2/parsing/inference/baseInference.js";
export class ExtractionInference extends BaseInference {
constructor(serverResponse) {
super(serverResponse);
this.result = new ExtractionResult(serverResponse["result"]);
this.activeOptions = new ExtractionActiveOptions(serverResponse["active_options"]);
}
toString() {
return (super.toString() +
this.activeOptions.toString() + "\n" +
this.result.toString() + "\n");
}
}