NLP with Aylien
✓ Published0🌍 Public
CCliffordAnderson
Last edited Oct 10, 2019
Created on Oct 10, 2019
This example demonstrates sentiment analysis by sending a sample text to the Aylien Text API, which returns hashtags summarizing the text’s tone and topics. The code constructs an HTTP request using XQuery’s `http:send-request` and the `fn:encode-for-uri` function, targeting the API’s `/hashtags` endpoint with a fixed string about a skeptical reaction to a plan. The result, formatted as XML, would display the generated hashtags but does not visualize them; instead, it focuses on the API interaction itself, relying solely on the Aylien service without any graphical rendering or charting library.
AI-generated description