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
> * NER includes separate methods for detecting personal information.
265
264
> * Entity linking is a separate request than NER.
266
265
267
266
Create an array of strings containing the document you want to analyze. Call the client's `recognizeEntities()` method and get the `RecognizeEntitiesResult` object. Iterate through the list of results, and print the entity name, type, subtype, offset, length, and score.
@@ -315,40 +314,6 @@ Document ID: 1
315
314
Score: 0.31
316
315
```
317
316
318
-
## Using NER to detect personal information
319
-
320
-
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
317
## Entity Linking
353
318
354
319
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