Skip to content

Commit 734b0d2

Browse files
author
Sherry Yang
committed
Updat naming.
1 parent 805eab4 commit 734b0d2

6 files changed

Lines changed: 5 additions & 5 deletions

File tree

learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/includes/1-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
In this module, you explore how to use AI to make sense of text in documents and other written assets.
1010

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.
1212

1313
**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.
1414

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pip install azure-ai-textanalytics
3636
```
3737

3838
In the code editor, we can create one text file, and one Python file which contains application code.
39-
![Screenshot of Visual Studio Code with a text file open.](../media/python-sdk-text-analysis-0.png)
39+
![Screenshot of Visual Studio Code with a text file open.](../media/python-sdk-document-example.png)
4040

4141
At the start of the application code, import the SDK.
4242

@@ -45,15 +45,15 @@ from azure.ai.textanalytics import TextAnalyticsClient
4545
from azure.core.credentials import AzureKeyCredential
4646
```
4747

48-
![Screenshot of Visual Studio Code with a Python file open with a focus on the client object created.](../media/python-sdk-text-analysis-1.png)
48+
![Screenshot of Visual Studio Code with a Python file open with a focus on the client object created.](../media/python-sdk-client-example.png)
4949

5050
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.
5151

5252
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-
![Screenshot of Visual Studio Code with a Python file open with a focus on the text analysis functions.](../media/python-sdk-text-analysis-2.png)
53+
![Screenshot of Visual Studio Code with a Python file open with a focus on the text analysis functions.](../media/python-sdk-text-analysis-example.png)
5454

5555
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-
![Screenshot of Visual Studio Code with the terminal open with a focus on the results.](../media/python-sdk-text-analysis-3.png)
56+
![Screenshot of Visual Studio Code with the terminal open with a focus on the results.](../media/python-sdk-results.png)
5757

5858
## Examples of code to use with the Azure Language Python SDK
5959

learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-text-analysis-1.png renamed to learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-client-example.png

File renamed without changes.

learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-text-analysis-0.png renamed to learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-document-example.png

File renamed without changes.

learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-text-analysis-3.png renamed to learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-results.png

File renamed without changes.

learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-text-analysis-2.png renamed to learn-pr/wwl-data-ai/get-started-with-text-analysis-in-azure/media/python-sdk-text-analysis-example.png

File renamed without changes.

0 commit comments

Comments
 (0)