lxaGetNamedOpinionTaggedText

<< lxaGetSentimentMarkup | Back to Salience 6 C API Index | lxaGetUserOpinionTaggedText >>

Summary

Retrieves the text marked up with the opinions, where the opinions involve entities within the text. This function sets the passed in char* to point to an null terminated string containing the tagged text.
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 lxaFreeString.

Syntax

int lxaGetNamedOpinionTaggedText(SalienceSession *pSession,
                                 char **acTaggedText,
                                 const char *acConfigurationID);

Parameters

pSession Pointer to a SalienceSession structure previously returned by a call to lxaOpenSalienceSession
acTaggedText Pointer to a char* buffer
acConfigurationID Character string specifying the configuration for the results, blank for the default configuration

Returns

This method returns an integer return code.

Example

     char* acOpinionTaggedText;
     lxaGetNamedOpinionTaggedText(pSession, &acOpinionTaggedText);
     cout << acOpinionTaggedText << endl;
     lxaFreeString(acOpinionTaggedText);

<< lxaGetSentimentMarkup | Back to Salience 6 C API Index | lxaGetUserOpinionTaggedText >>