Skip to content

Commit b9d3d21

Browse files
committed
updating ner how-to
1 parent 26bb1bc commit b9d3d21

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

articles/cognitive-services/language-service/key-phrase-extraction/how-to/call-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This feature is useful if you need to quickly identify the main points in a coll
2727

2828
### Specify the key phrase extraction model
2929

30-
By default, key phrase extraction will use the latest available AI model on your text. You can also configure your API requests to use a previous model version, if you determine one performs better on your data. The model you specify will be used to perform key phrase extraction operations.
30+
By default, key phrase extraction will use the latest available AI model on your text. You can also configure your API requests to use a specific model version. The model you specify will be used to perform key phrase extraction operations.
3131

3232
| Supported Versions | latest version |
3333
|--|--|

articles/cognitive-services/language-service/named-entity-recognition/how-to-call.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The NER feature can evaluate unstructured text, and extract named entities from
2222

2323
### Specify the NER model
2424

25-
By default, this feature will use the latest available AI model on your text. You can also configure your API requests to use a specific model version. The model you specify will be used to perform NER and PII operations.
25+
By default, this feature will use the latest available AI model on your text. You can also configure your API requests to use a specific model version. The model you specify will be used to perform NER operations.
2626

2727
| Supported Versions | latest version |
2828
|--|--|
@@ -37,20 +37,15 @@ When you submit documents to be processed, you can specify which of [the support
3737

3838
Analysis is performed upon receipt of the request. For information on the size and number of requests you can send per minute and second, see the data limits section below.
3939

40-
Using the NER and PII features synchronously is stateless. No data is stored in your account, and results are returned immediately in the response.
40+
Using the NER feature synchronously is stateless. No data is stored in your account, and results are returned immediately in the response.
4141

4242
When using these features asynchronously, the API results are available for 24 hours from the time the request was ingested, and is indicated in the response. After this time period, the results are purged and are no longer available for retrieval.
4343

44-
The API will attempt to detect the [defined entity categories](concepts/named-entity-categories.md) for a given document language. If you want to specify which entities will be detected and returned, use the optional `piiCategories` parameter with the appropriate entity categories. This parameter can also let you detect entities that aren't enabled by default for your document language. The following URL example would detect a French driver's license number that might occur in English text, along with the default English entities.
44+
The API will attempt to detect the [defined entity categories](concepts/named-entity-categories.md) for a given document language.
4545

46-
> [!TIP]
47-
> If you don't include `default` when specifying entity categories, The API will only return the entity categories you specify.
46+
## Getting NER results
4847

49-
`https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/entities/recognition/pii?piiCategories=default,FRDriversLicenseNumber`
50-
51-
## Getting NER and PII results
52-
53-
When you get results from NER, you can stream the results to an application or save the output to a file on the local system. The API response will include [recognized entities](concepts/named-entity-categories.md), including their categories and sub-categories, and confidence scores. Entities that represent personal information (PII) will be redacted in the returned text.
48+
When you get results from NER, you can stream the results to an application or save the output to a file on the local system. The API response will include [recognized entities](concepts/named-entity-categories.md), including their categories and sub-categories, and confidence scores.
5449

5550
## Data limits
5651

0 commit comments

Comments
 (0)