We use analytics and minimal tracking across our websites to help improve performance and user experience. Our privacy policy.
curl --request POST \
--url https://api.private-ai.com/community/analyze/text \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"text": [
"Hello John and Jane"
],
"link_batch": false,
"entity_detection": {
"accuracy": "high",
"return_entity": true
}
}
'[
{
"entities": [
{
"text": "<string>",
"best_label": "<string>",
"labels": {},
"analysis_result": {
"formatted": "<string>",
"subtypes": [
{
"text": "<string>",
"formatted": "<string>",
"label": "<string>",
"location": {
"stt_idx": 123,
"end_idx": 123
}
}
],
"validation_assertions": [
{
"provider": "luhn",
"status": "valid"
}
]
},
"coreference_id": "<string>",
"location": "Location object containing the start-end character indexes of the entity."
}
],
"entities_present": true,
"characters_processed": 123,
"languages_detected": {}
}
]Detect entities in the provided text strings using Private AI’s entity detection engine and return the results of the analysis and validation of each entity.
curl --request POST \
--url https://api.private-ai.com/community/analyze/text \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"text": [
"Hello John and Jane"
],
"link_batch": false,
"entity_detection": {
"accuracy": "high",
"return_entity": true
}
}
'[
{
"entities": [
{
"text": "<string>",
"best_label": "<string>",
"labels": {},
"analysis_result": {
"formatted": "<string>",
"subtypes": [
{
"text": "<string>",
"formatted": "<string>",
"label": "<string>",
"location": {
"stt_idx": 123,
"end_idx": 123
}
}
],
"validation_assertions": [
{
"provider": "luhn",
"status": "valid"
}
]
},
"coreference_id": "<string>",
"location": "Location object containing the start-end character indexes of the entity."
}
],
"entities_present": true,
"characters_processed": 123,
"languages_detected": {}
}
]API 4.1 Spec Definition
UTF-8 encoded message(s) to process. E.g. ["My name is Adam"] or ["I live at", "263 Spadina Av"]. Request processing time increases linearly with input text length, therefore maximum length is dependent on provisioned hardware and any timeouts set by the user. Private AI has tested up to 500K characters on the CPU and GPU containers.
When set to True, the list of inputs provided in text will be processed together as a single input by the Private AI PII detection model. This shares context between the different inputs and is useful when processing a sequence of short inputs, such as an SMS chat log. This option should only be enabled when the inputs are related, otherwise PII detection performance could be degraded.
This section contains a set of parameters to control the PII detection process. All fields have sensible default that can be changed for specific needs.
Show child attributes
Used to categorize requests for reporting purposes. Limited to alphanumeric characters or the following special characters :_-
60^[a-zA-Z0-9\-_\:]*$This optional field serves as a hint to the analyzer to interpret locale-dependent entity types like dates. When set to en-CA, the date 12-10-2024 will be interpreted as October 12, 2024. However, if the hint is set to en-US, the date will be interpreted as December 10, 2024. If no locale is provided the language of the input text will be used.
This section contains a set of parameters to control the relation detection process. It allows the user to select the coreference resolution mode and to enable relation extraction among entities.
Show child attributes
Successful Response
A list of entities found in the text along with their analysis results.
Show child attributes
Returns True if the list of detected entities is not empty.
The number of characters in all the text inputs.
A dictionary containing ISO 639-1 language labels and the likelihood of their detection in the request payload.
Show child attributes