You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/includes/1-introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
In this module, you explore how to use AI to make sense of text in documents and other written assets.
10
10
11
-
Text processing and analysis is possible through **natural language processing (NLP)**. NLP enables machines to understand, interpret, and respond to human language. The goal of NLP is to analyze and extract meaning or structure from existing text.
11
+
Text processing and analysis are possible through **natural language processing (NLP)**. NLP enables machines to understand, interpret, and respond to human language. The goal of NLP is to analyze and extract meaning or structure from existing text.
12
12
13
13
**Text analysis** is the process of automatically examining written text to extract useful information—such as sentiment, keywords, entities, or topics. Text analysis relies on NLP to turn unstructured text into meaningful insights.
In the code editor, we can create one text file, and one Python file which contains application code.
39
-

39
+

40
40
41
41
At the start of the application code, import the SDK.
42
42
@@ -45,15 +45,15 @@ from azure.ai.textanalytics import TextAnalyticsClient
45
45
from azure.core.credentials import AzureKeyCredential
46
46
```
47
47
48
-

48
+

49
49
50
50
Then we use our Language resource endpoint and key to create an authenticated **client object**, the tool your code uses to communicate with a service. The client object knows the service's endpoint, carries credentials (like keys or tokens), exposes methods (for example: `analyze_sentiment()`), and handles sending requests and receiving responses under the hood.
51
51
52
52
We use the client's methods to call Azure Language functions. For example, we can extract key phrases with `client.extract_key_phrases()`, recognize entities with the function `client.recognize_entities()`, and analyze sentiment with `client.analyze_sentiment()`. To generate a summary, we need to use an asynchronous technique to begin the summarization task and retrieve the results.
53
-

53
+

54
54
55
55
We can display the results of the analysis by running the application code in the terminal with the command `python <file_name>.py`. When we run the app, it uses Azure Language in our Foundry resource to perform each of the tasks.
56
-

56
+

57
57
58
58
## Examples of code to use with the Azure Language Python SDK
0 commit comments