Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions notebooks/video_chapters_creation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"id": "0a44bdf4",
"metadata": {},
"source": [
"## Pre-requisites\n",
"## Prerequisites\n",
"1. Please follow the [README](../README.md#configure-azure-ai-service-resource) to create the essential resource needed for this sample.\n",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • categories: [Typo Fix, Consistency]
    • change: Corrected the heading from "Pre-requisites" to "Prerequisites"
    • rationale: Standardized the spelling of a commonly used term to align with conventional usage and improve professionalism
    • impact: Enhances readability and maintains consistency across documentation, making it more polished and user-friendly

"2. Install the required packages."
]
Expand Down Expand Up @@ -98,7 +98,7 @@
"source": [
"## File to Analyze\n",
"\n",
"Use the following variable to specify the file to analyze. For this tutorial, we will examine a short example video. To try your own videos, replace the file path accordingly. For longer videos, you may need to adjust the `timeout` variable in `poll_result`."
"Use the variable below to specify the file to analyze. For this tutorial, we examine a short example video. To try your own videos, please replace the file path accordingly. For longer videos, you may need to adjust the `timeout` variable in `poll_result`."
]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • categories: [Grammar, Clarity]
    • change: Changed "Use the following variable to specify the file to analyze" to "Use the variable below to specify the file to analyze" and altered "For this tutorial, we will examine" to "For this tutorial, we examine"; also added "please" before "replace the file path accordingly."
    • rationale: These adjustments make the sentence more direct and polite, improving readability and tone.
    • impact: Enhances the documentation's clarity and approachability, making instructions easier to follow and more user-friendly.

},
{
Expand All @@ -118,11 +118,11 @@
"source": [
"# 1. Automated Chapter Discovery\n",
"\n",
"We will first use Content Understanding and allow the service to interact with an LLM model, enabling it to apply its own reasoning to segment the video into meaningful chapters. It will provide concise descriptions with timestamps.\n",
"First, we use Content Understanding and allow the service to interact with an LLM model, enabling it to apply its own reasoning to segment the video into meaningful chapters. It provides concise descriptions with timestamps.\n",
"\n",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • categories: [Grammar, Clarity]
    • change: Changed "We will first use" to "First, we use" and modified verb tense from future to present tense ("will provide" to "provides").
    • rationale: The change improves sentence flow and consistency by using the present tense to describe the process more directly and succinctly. It also clarifies the sequence by placing "First" at the beginning.
    • impact: Enhances readability and immediacy, making the instructions clearer and more engaging for the reader.

"The custom analyzer schema template for this approach is [video_chapters_dynamic.json](../analyzer_templates/video_chapters_dynamic.json). This file defines the schema and configuration for a custom video analyzer that uses AI to dynamically generate chapters and scenes based on its understanding of the video content. The service analyzes the video and identifies the most meaningful chapter divisions, providing start and end timestamps for each. The configuration section allows flexible segmentation, enabling the model to reason about the content and organize chapters appropriately.\n",
"\n",
"In this example, we will use the utility class `AzureContentUnderstandingClient` to load the analyzer schema from the template file and submit it to the Azure Content Understanding service. Then, we will analyze the video and generate the desired chapter and scene structure."
"In this example, we use the utility class `AzureContentUnderstandingClient` to load the analyzer schema from the template file and submit it to the Azure Content Understanding service. Then, we analyze the video and generate the desired chapter and scene structure."
]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • categories: [Grammar, Clarity]
    • change: Changed the sentence from future tense ("we will use", "we will analyze") to present tense ("we use", "we analyze").
    • rationale: Using the present tense makes the instructions more direct and immediate, improving readability and engagement.
    • impact: This change provides clearer and more concise documentation, making the example feel more active and accessible to readers.

},
{
Expand Down Expand Up @@ -232,7 +232,7 @@
"\n",
"The custom analyzer schema template for this approach is [video_chapters_structured.json](../analyzer_templates/video_chapters_structured.json). This file defines the schema and configuration for a custom video analyzer. In this example, it specifies how a video should be segmented into chapters and scenes, including three chapter types: **\"Topic Introduction\"**, **\"Details About the Work Done\"**, and **\"Conclusion or Results\"**. Each segment contains a list of scenes, with each scene described by a short description, start timestamp, and end timestamp. The configuration section controls segmentation behavior and other analysis options, while the fieldSchema section outlines the expected structure of the output, ensuring chapters and scenes are clearly organized and non-overlapping.\n",
"\n",
"We will also be using the utility class `AzureContentUnderstandingClient` to load the analyzer schema from the template file and submit it to the Azure Content Understanding service. Then, we will analyze the video and generate the desired chapter and scene structure."
"We will also use the utility class `AzureContentUnderstandingClient` to load the analyzer schema from the template file and submit it to the Azure Content Understanding service. Then, we will analyze the video and generate the desired chapter and scene structure."
]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • categories: [Grammar]
    • change: Replaced "will also be using" with "will also use"
    • rationale: Simplifies the verb phrase for better grammatical clarity and conciseness.
    • impact: Improves readability and makes the sentence more direct and easier to understand.

},
{
Expand Down Expand Up @@ -363,4 +363,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • categories: [Formatting]
    • change: Corrected the closing brace indentation or spacing from -} to +}
    • rationale: To align with the proper code style or formatting conventions, ensuring consistent brace placement
    • impact: Enhances code readability and maintains uniform formatting across the codebase