lxaGetUserEntityRelationships

<< lxaGetUserDefinedEntities | Back to Salience 6 C API Index | lxaGetUserEntityOpinions >>

Summary

Retrieves the relationships between user-defined entities within the text. User-defined entities are based on the entity list specified through the User Entity List option. Other parameters to control entity extraction should be specified by setting additional Entity Options. These options must be set before calling this method.
This function sets the pResults member of the passed in SalienceRelationList to point to an array of SalienceRelation structures. The nLength member is set to the length of this array.
The acConfigurationID parameter specifies the configuration for the results. Configurations are defined using the method lxaAddSalienceConfiguration.
After use you should free the allocated memory by calling lxaFreeRelationList.

Syntax

int lxaGetUserEntityRelationships(SalienceSession *pSession, 
                                  SalienceRelationList *pResults,
                                  const char *acConfigurationID);

Parameters

pSession Pointer to a SalienceSession structure previously returned by a call to lxaOpenSalienceSession
pResults Pointer to a SalienceRelationList structure that will get filled in by the call
acConfigurationID Character string specifying the configuration for the results, blank for the default configuration

Returns

This method returns an integer return code.

Example

TODO: Example needed for Salience 6

<< lxaGetUserDefinedEntities | Back to Salience 6 C API Index | lxaGetUserEntityOpinions >>