Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.57k stars 2.79k forks source link

Getting an error in sample_abstractive_summary.py - textanalyticsclient does not have begin_analyze_actions #28825

Closed vyakhya closed 1 year ago

vyakhya commented 1 year ago

[Enter feedback here]


Document details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Language Quickstart Feedback

kristapratico commented 1 year ago

Hi @vyakhya thanks for your issue. Which version of azure-ai-textanalytics are you using? To use abstractive summarization, you need version 5.3.0b1 and you must call it through begin_analyze_actions like in this sample here. Before you can call the API, you also must be approved to use the gated preview by sending a request with this form.

Another note - this repo is used for active development of the client libraries so not everything you see in the repo will be released yet. For example, the code in sample_abstractive_summary.py is planned for the next release. Let me know if this helps.

vyakhya commented 1 year ago

Thanks for the quick reply @kristapratico. I was able to use the code in sample_abstract_summary.py. Thanks.