Links

Relation extraction

post
https://rex7.p.rapidapi.com/rex
Identifies and extracts connections between entities.
Designed to uncover valuable insights by extracting structured information from unstructured text data.
Parameters
Header
X-RapidAPI-Key*
Your API key
X-RapidAPI-Host*
rex7.p.rapidapi.com
content-type*
application/json
Body
text*
Pass text for processing via this parameter. The maximum size in tokens is 3000, where 1 token is approximately 4 characters.
relations*
String list
Relations which will be used in the processing of the text.
scorer
Boolean
If set to true, the response will contain probability scores for each relation. The default value is set to false.
all
Boolean
This parameter controls the number of entities included in the response. In most cases, the best results are achieved by including only the target entities. However, if necessary, the parameter can be set to true and more entities will be included. The default value is set to false. Ignored if entities provided.
threshold
Float
It sets a relation threshold. If the score is below this threshold, the relation will not be included in the response. The default value is 0.0. Ignored if the scorer parameter is set to false.
entities
Objects list
Define what specific entities will be processed, and others will be skipped.
pairs filter
Objects list
Each tuple represents the source and target entity labels. If this parameter is provided and not empty, any relation that doesn't have a specified pair of source and target will be ignored. Parameter ignored if 'entities' parameter not provided.
relations filter
Map relations to entity pairs. Each relation can be mapped to multiple pairs. Each tuple represents the source and target entity labels. Any relation with a pair of sources and target which not included in to filter will be ignored.
Responses
200: OK
Request is successful.
400: Bad Request
Invalid or incomplete request.
401: Unauthorized
Invalid authorization.
404: Not Found
Invalid payload or header.
413: Payload Too Large
Payload size exceeded.
500: Internal Server Error
Internal server error.