The Qlik Repustate connector uses the Repustate API to fetch sentiment analytics for your textual data, such as tweets, messages, or comments. The Repustate connector also lets you classify blocks of text and label parts of speech.
In previous versions of the Qlik Web Connectors, the Repustate API was accessible through the Sentiment and Text Analytics Connector.
- Qlik Sense Desktop
- Qlik Sense Enterprise on Windows
This connector must be installed separately.
Ways to access your data
To access the Repustate API, you need to authenticate the connector with a Repustate API key.
Loading data from tables
|Usage||Use this table to fetch the status of the Repustate API.|
|Sentiment||Use this table to fetch a single sentiment score for the full text.|
|SentimentByTopic||Use this table to fetch the sentiment score for text sorted by named topics.|
|SentimentChunked||Use this table to fetch the sentiment score for text grouped into chunks.|
|Categorise||Use this table to fetch the sentiment score for text sorted into industry-specific categories.|
|PartsOfSpeech||Use this table to fetch the parts of speech for each word in a block of text.|
|DetectLanguage||Use this table to fetch the language of a block of text.|
|Themes||Use this table to fetch the themes of a block of text.|
|Entities||Use this table to fetch the entity classification for terms within a block of text.|
The most effective way to use the Repustate connector is to have a script pass rows of data to the Repustate API to generate a new table with sentiment scores for each row of data.
Using a For/Next loop
If you are using text data from a source which is not already URL encoded, you can write a script that encodes the text before sending it to the sentiment analyzer.
The sentiment analyzer caches the sentiment scores. If you want to clear the cache, follow the instructions here, Clearing the Qlik Web Connectors cache.
Backing Up The Cache
The cache will grow to a considerable size and retrieving items from the cache will be significantly faster than accessing the sentiment API. For this reason it is recommended that you take regular backups of this cache so that it can be restored if necessary.
By default the cache can be found at the following location:
Working with the Repustate API quota limits
The Qlik Web Connectors call the Repustate API to provide sentiment analysis on your data and load it into your Qlik Sense app. While reloading you Repustate-based app, you might receive an error message that the connector has reached the Repustate API rate limit and that all subsequent API calls will fail until the connector falls back under the throttling limit. If you receive this error message, then you have exceeded the API rate limit.
Reference - Repustate documentation
You can refer to the Repustate API documentation to learn more about requirements and restrictions imposed by the Repustate API.
You have exceeded the API limits that are imposed on the Qlik Web Connectors by the Repustate API.
To reduce the impact of reaching the API rate limit, develop your app with the following in mind:
- Extract only the data you need.
- Reload one Repustate-based application at a time.
- Ensure that loops in your script that make API calls will not result in infinite loops.