Sentiment score
A sentiment score is a numerical assessment of sentiment-related text or model output, representing its polarity, intensity, or task-specific evaluative alignment.
Software Testing with Generative AI
A sentiment score in fine-tuning is a measure of how closely a model response aligns with the expected output.
- How it is used
- Guides parameter updates during instruction-based fine-tuning by measuring response alignment with expected outputs.
- How deep it goes
- Defines the comparison and adjustment loop, but does not specify a scoring formula or implementation.
- Examples
- Uses instruction, input, and output records as the comparison data.
- What you can do after
- Evaluate fine-tuning responses and adjust model parameters more or less strongly according to alignment.
Read how Software Testing with Generative AI explains sentiment score →
Starting Data Analytics with Generative AI and Python
Sentiment intensity is the degree or strength of favorable, unfavorable, or emotional expression in text.
- How it is used
- Uses sentiment intensity to distinguish ordinary dissatisfaction from strongly emotional messages requiring prioritized attention.
- How deep it goes
- Explains dictionary-based scoring and mild-versus-strong sentiment, without detailing a scoring algorithm or calibration procedure.
- Examples
- Uses product feedback, customer frustration, and possible cancellation messages to illustrate sentiment intensity and operational priority.
- What you can do after
- Evaluate/understand sentiment strength and use highly negative or emotional cases to support response prioritization.
Read how Starting Data Analytics with Generative AI and Python explains sentiment score →
Spring AI in Action
A sentiment score is a numerical measure representing the polarity and degree of sentiment expressed by text.
- How it is used
- Uses LLM-evaluated sentiment to guide application responses to positive, negative, or mixed user messages.
- How deep it goes
- Builds a working endpoint with prompt, records, controller, and sample requests, but does not detail sentiment-model internals.
- Examples
- Tests bleak, contextually qualified, and exuberant statements that receive scores of -1.0, 0.5, and 0.8.
- What you can do after
- Builds a Spring endpoint that accepts text and returns its score, explanation, and echoed input.
Related concepts
- sentiment analysismeasures · Sentiment analysis is the computational identification, classification, or measurement of opinions, attitudes, emotions, or evaluative polarity expressed in text or other data.
- vocabularypart of · A vocabulary is a collection of distinct words, tokens, or other lexical units recognized or represented by a language or language-processing system.
- natural language processingproduced by · Natural language processing is the field of computing concerned with computationally analyzing, interpreting, transforming, or generating human language.
- scorekind of · A numerical measure or rating of the performance, quality, or progress of a result, option, or participant.
- generationmeasures · Generation is the computational production of outputs from supplied inputs or context, often by applying a model to produce predictions or new content.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


