You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an array of strings containing the document you want to analyze. Call the client's `recognizePiiEntities()` method and get the `EntitiesBatchResult` object. Iterate through the list of results, and print the entity name, type, subtype, offset, length, and score.
321
-
322
-
323
-
```javascript
324
-
asyncfunctionentityPiiRecognition(client){
325
-
326
-
constentityPiiInput= [
327
-
"Insurance policy for SSN on file 123-12-1234 is here by approved."
Run your code with `node index.js` in your console window.
343
-
344
-
### Output
345
-
346
-
```console
347
-
Document ID: 0
348
-
Name: 123-12-1234 Category: U.S. Social Security Number (SSN) Subcategory: N/A
349
-
Score: 0.85
350
-
```
351
-
352
318
## Entity Linking
353
319
354
320
Create an array of strings containing the document you want to analyze. Call the client's `recognizeLinkedEntities()` method and get the `RecognizeLinkedEntitiesResult` object. Iterate through the list of results, and print the entity name, ID, data source, url, and matches. Every object in `matches` array will contain offset, length, and score for that match.
0 commit comments