Skip to content

Commit 09eff86

Browse files
author
Sherry Yang
committed
Update for acrolinx.
1 parent 578295e commit 09eff86

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

learn-pr/wwl-data-ai/introduction-language/includes/3-text-analysis.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For example, suppose you want to detect entities in the following restaurant rev
3434

3535
## Sentiment analysis and opinion mining
3636

37-
Sentiment analysis is
37+
Sentiment analysis is a technique used to determine the emotional tone or attitude expressed in a piece of text. It classifies text as positive, negative, or neutral, and often provides a score indicating the strength of each sentiment.
3838

3939
Scores indicate how likely the provided text is a particular sentiment.
4040

@@ -48,15 +48,15 @@ and
4848
4949
The sentiment score for the first review might be:
5050
Document sentiment: positive
51-
Positive score: .90
52-
Neutral score: .10
53-
Negative score: .00
51+
Positive score: 0.90
52+
Neutral score: 0.10
53+
Negative score: 0.00
5454

5555
The second review might return a response:
5656
Document sentiment: negative
57-
Positive score: .00
58-
Neutral score: .00
59-
Negative score: .99
57+
Positive score: 0.00
58+
Neutral score: 0.00
59+
Negative score: 0.99
6060

6161
## Key phrase extraction
6262

@@ -78,5 +78,3 @@ Key phrase extraction can provide some context to this review by extracting the
7878
- place
7979

8080
As well as using sentiment analysis to determine that this is a positive review, you can also use the key phrase service to identify important elements of the review.
81-
82-

0 commit comments

Comments
 (0)