Skip to content

Commit ee7bc64

Browse files
authored
pull base content,head:MicrosoftDocs:main,into:wwlpublishsync
2 parents 0c90fa1 + d497354 commit ee7bc64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

learn-pr/wwl-data-ai/get-started-language-azure/includes/3-azure-text-analysis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ For example, suppose you use Azure AI Language to detect entities in the followi
5454
You can identify the language in which text is written with Azure AI Language's language detection capability. For each document submitted the service detects:
5555

5656
- The language name (for example "English").
57-
- The ISO 639-1 language code (for example, "en").
57+
- The ISO 6391 language code (for example, "en").
5858
- A score indicating a level of confidence in the language detection.
5959

6060
For example, consider a scenario where you own and operate a restaurant. Customers can complete surveys and provide feedback on the food, the service, staff, and so on. Suppose you received the following reviews from customers:

learn-pr/wwl-data-ai/introduction-language/includes/4-semantic-models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ As the state of the art for NLP has advanced, the ability to train models that e
33
Vectors represent lines in multidimensional space, describing direction and distance along multiple axes. Overall, the vector describes the direction and distance of the path from origin to end. Semantically similar tokens should result in vectors that have a similar orientation – in other words they point in the same direction. As a simple example, suppose the embeddings for our tokens consist of vectors with three elements, for example:
44

55
```
6-
- 4 ("dog"): [10.3.2]
6+
- 4 ("dog"): [10,3,2]
77
- 5 ("bark"): [10,2,2]
88
- 8 ("cat"): [10,3,1]
99
- 9 ("meow"): [10,2,1]
@@ -36,4 +36,4 @@ For example, consider the following restaurant reviews, which are already labele
3636
- *Slow service and substandard food*: 0
3737
```
3838

39-
With enough labeled reviews, you can train a classification model using the tokenized text as *features* and the sentiment (0 or 1) a *label*. The model will encapsulate a relationship between tokens and sentiment - for example, reviews with tokens for words like `"great"`, `"tasty"`, or `"fun"` are more likely to return a sentiment of **1** (*positive*), while reviews with words like `"terrible"`, `"slow"`, and `"substandard"` are more likely to return **0** (*negative*).
39+
With enough labeled reviews, you can train a classification model using the tokenized text as *features* and the sentiment (0 or 1) a *label*. The model will encapsulate a relationship between tokens and sentiment - for example, reviews with tokens for words like `"great"`, `"tasty"`, or `"fun"` are more likely to return a sentiment of **1** (*positive*), while reviews with words like `"terrible"`, `"slow"`, and `"substandard"` are more likely to return **0** (*negative*).

0 commit comments

Comments
 (0)