@azure/ai-text-analytics
Version:
An isomorphic client library for the Azure Text Analytics service.
18 lines • 667 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { makeTextAnalyticsSuccessResult, makeTextAnalyticsErrorResult } from "./textAnalyticsResult";
/**
* @internal
*/
export function makeRecognizePiiEntitiesResult(document) {
const { id, entities, warnings, statistics, redactedText } = document;
return Object.assign(Object.assign({}, makeTextAnalyticsSuccessResult(id, warnings, statistics)), { entities,
redactedText });
}
/**
* @internal
*/
export function makeRecognizePiiEntitiesErrorResult(id, error) {
return makeTextAnalyticsErrorResult(id, error);
}
//# sourceMappingURL=recognizePiiEntitiesResult.js.map