Skip to content

Commit e4076b3

Browse files
update sample text (Azure#20089)
1 parent 8955314 commit e4076b3

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ async def sample_extractive_summarization_async():
4040
)
4141

4242
document = [
43-
"The government of British Prime Minster Theresa May has been plunged into turmoil with the resignation"
44-
" of two senior Cabinet ministers in a deep split over her Brexit strategy. The Foreign Secretary Boris "
45-
"Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of "
46-
"Brexit negotiations, David Davis. Their decision to leave the government came three days after May "
47-
"appeared to have agreed a deal with herfractured Cabinet on the UK's post Brexit relationship with "
48-
"the EU. That plan is now in tatters and her political future appears uncertain. May appeared in Parliament"
49-
" on Monday afternoon to defend her plan, minutes after Downing Street confirmed the departure of Johnson. "
50-
"May acknowledged the splits in her statement to MPs, saying of the ministers who quit: We do not agree "
51-
"about the best way of delivering our shared commitment to honoring the result of the referendum. The "
52-
"Prime Minister's latest plitical drama began late on Sunday night when Davis quit, declaring he could "
53-
"not support May's Brexit plan. He said it involved too close a relationship with the EU and gave only "
54-
"an illusion of control being returned to the UK after it left the EU. It seems to me we're giving too "
55-
"much away, too easily, and that's a dangerous strategy at this time, Davis said in a BBC radio "
56-
"interview Monday morning. Johnson's resignation came Monday afternoon local time, just before the "
57-
"Prime Minister was due to make a scheduled statement in Parliament. This afternoon, the Prime Minister "
58-
"accepted the resignation of Boris Johnson as Foreign Secretary, a statement from Downing Street said."
43+
"At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, "
44+
"human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive "
45+
"Services, I have been working with a team of amazing scientists and engineers to turn this quest into a "
46+
"reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of "
47+
"human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the "
48+
"intersection of all three, there’s magic—what we call XYZ-code as illustrated in Figure 1—a joint "
49+
"representation to create more powerful AI that can speak, hear, see, and understand humans better. "
50+
"We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, "
51+
"spanning modalities and languages. The goal is to have pretrained models that can jointly learn "
52+
"representations to support a broad range of downstream AI tasks, much in the way humans do today. "
53+
"Over the past five years, we have achieved human performance on benchmarks in conversational speech "
54+
"recognition, machine translation, conversational question answering, machine reading comprehension, "
55+
"and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious "
56+
"aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that "
57+
"is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational "
58+
"component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks."
5959
]
6060

6161
async with text_analytics_client:

sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ def sample_extractive_summarization():
4141
)
4242

4343
document = [
44-
"The government of British Prime Minster Theresa May has been plunged into turmoil with the resignation"
45-
" of two senior Cabinet ministers in a deep split over her Brexit strategy. The Foreign Secretary Boris "
46-
"Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of "
47-
"Brexit negotiations, David Davis. Their decision to leave the government came three days after May "
48-
"appeared to have agreed a deal with herfractured Cabinet on the UK's post Brexit relationship with "
49-
"the EU. That plan is now in tatters and her political future appears uncertain. May appeared in Parliament"
50-
" on Monday afternoon to defend her plan, minutes after Downing Street confirmed the departure of Johnson. "
51-
"May acknowledged the splits in her statement to MPs, saying of the ministers who quit: We do not agree "
52-
"about the best way of delivering our shared commitment to honoring the result of the referendum. The "
53-
"Prime Minister's latest plitical drama began late on Sunday night when Davis quit, declaring he could "
54-
"not support May's Brexit plan. He said it involved too close a relationship with the EU and gave only "
55-
"an illusion of control being returned to the UK after it left the EU. It seems to me we're giving too "
56-
"much away, too easily, and that's a dangerous strategy at this time, Davis said in a BBC radio "
57-
"interview Monday morning. Johnson's resignation came Monday afternoon local time, just before the "
58-
"Prime Minister was due to make a scheduled statement in Parliament. This afternoon, the Prime Minister "
59-
"accepted the resignation of Boris Johnson as Foreign Secretary, a statement from Downing Street said."
44+
"At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, "
45+
"human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive "
46+
"Services, I have been working with a team of amazing scientists and engineers to turn this quest into a "
47+
"reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of "
48+
"human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the "
49+
"intersection of all three, there’s magic—what we call XYZ-code as illustrated in Figure 1—a joint "
50+
"representation to create more powerful AI that can speak, hear, see, and understand humans better. "
51+
"We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, "
52+
"spanning modalities and languages. The goal is to have pretrained models that can jointly learn "
53+
"representations to support a broad range of downstream AI tasks, much in the way humans do today. "
54+
"Over the past five years, we have achieved human performance on benchmarks in conversational speech "
55+
"recognition, machine translation, conversational question answering, machine reading comprehension, "
56+
"and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious "
57+
"aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that "
58+
"is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational "
59+
"component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks."
6060
]
6161

6262
poller = text_analytics_client.begin_analyze_actions(

0 commit comments

Comments
 (0)