AI Partners Ecosystem - Lettria - Models concept (EN)
Objective
OVHcloud offers different Artificial Intelligence services through its AI Partners Ecosystem. You will benefit from a catalogue of ready-to-use applications provided by our partners which you will easily be able to deploy according to your needs through AI Deploy.
Lettria is an OVHcloud partner that offers AI services dedicated to text. This guide will provide a detailed understanding of how Lettria services work.
To find out more about Lettria billing, launching and capabilities, please refer to this guide.
Introduction
Lettria is a start-up specialized in NLP (Natural Language Processing). The platform enables all organizations, from start-ups to large corporations, to perform textual analysis on their data to take the best strategic decisions.
Lettria provides text understanding models that allow users to easily identify and extract key information from their text. This method relies on artificial intelligence and NLP techniques to understand the sentiment or emotions of a text.
Lettria's Sentiment Analysis API
Lettria's Sentiment Analysis API, powered by Deep Learning, applies advanced algorithms to examine and predict sentiment values from -1 to 1, offering key insights into the emotional tone of text.
The Sentiment Analysis API facilitates sentiment assessment in diverse content, including:
- customer feedback
- social media posts
- product reviews
By attributing a numerical value to the sentiment of text, it provides an understanding of the overall positivity or negativity of the content.
The API enables objective measurement of sentiment in large data sets, helping informed decision-making and timely actions. It caters to needs such as brand reputation monitoring, market research and customer experience optimization, empowering you with actionable insights.
Our API delivers sentiment values from -1 (signifying strong negative sentiment) to 1 (indicating strong positive sentiment), facilitating comprehensive understanding of sentiment intensity. This allows you to identify sentiment polarity and measure its degree in the text.
The API's user-friendly design allows effortless integration into your applications, unlocking the capabilities of sentiment analysis. Enhance customer satisfaction, take data-driven decisions and optimize business strategies with sentiment analysis. Discover and understand the true sentiment behind text, revolutionizing your audience engagement.
How sentiment analysis works?
By reaching the root endpoint / of your API, you can access the full documentation.
Sentiment
The API returns a float value between -1.0 and 1.0.
-1 indicates a strong negative sentiment and 1 describes a strong positive sentiment.
A value between -0.33 and 0.33 can be understood as neutral.
Predict
This predicts sentiment in a list of documents. It takes a string as input and gives a JSON as output.
-
URL:
/api/predict/ -
Method:
POST -
Payload:
- Payload example:
Success Response
-
Code:
200 OK -
Response content:
- Example response:
For the input The headphones broke after two weeks, not worth their price.
Demo
A Gradio is available on /demo or /gradio.

Calling the API in Python
- Requirement:
Install the requests package :
- Code:
Lettria's Emotion Analysis API
Lettria's Emotion Analysis API enables efficient emotion detection from a variety of text types, including:
- customer feedback
- social media content
- emails
- chat conversations
Utilizing Deep Learning technology, the API precisely identifies and categorizes numerous emotions such as joy, sadness, anger, fear, surprise, and more.
The API uses algorithms to interpret human emotions from text, enabling the extraction of valuable insights to enrich your applications. It supports sentiment analysis behind customer reviews and social media content, brand reputation monitoring, market research sentiment analysis, and chatbot interaction optimization.
The API's user-friendly design simplifies its integration into your applications, making it compatible with existing softwares, CRM systems and various platforms. This allows for the extraction of real-time emotional insights for data-driven decision making.
The Emotion Analysis API is an effective solution for businesses looking to enhance customer satisfaction, for social media managers seeking public sentiment understanding, or for developers aiming to improve user experiences.
How emotion analysis works?
Note
By reaching the root endpoint / of your API, you can access the full API documentation.
The model is trained to detect the following emotions
Predict
This function predicts emotions in a list of documents. It takes a string as input and gives a JSON as output.
-
URL:
/api/predict/ -
Method:
POST -
Payload:
- Payload example:
Success Response
-
Code:
200 OK -
Response content:
- Example response:
For the input I love pizzas and I hate apples.
Demo
A Gradio is available on /demo or /gradio.

Calling the API in Python
- Requirement:
Install the requests package:
- Code:
Lettria's Name Entity Recognition API
Lettria's NER Model API is a text analysis tool powered by deep learning. The NER model accurately predicts and extracts essential information from your data.
The API is specifically designed to identify and classify key entities such as Locations (LOC), Persons (PER), Organizations (ORG), and Miscellaneous (MISC) within your text, providing unparalleled insights and boosting your understanding of textual data.
NER Model API delivers accurate, reliable results, enabling you to streamline workflows, improve data-driven decision-making and achieve a new level of efficiency.
Discover and understand the true entities behind text to improve customer satisfaction, make data-driven decisions and optimize your business strategies with entity analysis.
How does NER work?
Note
By reaching the root endpoint / of your API, you can access the full documentation.
Entities
The API returns a list of detected entities for each input sentence.
Entities:
Logits
By setting return_logits=true, the API will return the raw scores of each entity class for each word in the sentence.
This can be useful to gain finer control over the prediction.
Example of post-processing alteration:
If a word is predicted as MISC with a score of 0.6 and as LOC with a score of 0.5, in some use cases, we might want to consider it a Location instead of a Miscellaneous entity.
In logit mode, the NER tags are prefixed by B or I. B stands for Beginning (the word is the beginning of an entity) and I stands for Inside (the word is inside an entity).
Example: in Alan Turing invented AI.
Alan | B-PER
Turing | I-PER
invented AI | B-MISC
Language Support
The model supports the following languages:
- English
- French
- Spanish
- Portuguese
- Italian
Predict
This predicts sentiment in a list of documents. It takes a string as input and gives a JSON as output.
URL: /api/predict/
Method: POST
Payload
Payload example
Success Response
Code: 200 OK
Response content
Example response
For the input I bought an Apple yesterday.
Demo
A Gradio is available on /demo or /gradio.

Calling the API in Python
Requirement
Install the requests package :
Code
Feedback
Please send us your questions, feedback and suggestions to improve the service:
- On the OVHcloud Discord server