We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbabd2 commit deb4483Copy full SHA for deb4483
samples/search/entity_search_samples.py
@@ -1,4 +1,4 @@
1
-from azure.cognitiveservices.search.entitysearch import EntitySearchClient
+from azure.cognitiveservices.search.entitysearch import EntitySearchAPI
2
from azure.cognitiveservices.search.entitysearch.models import Place, ErrorResponseException
3
from msrest.authentication import CognitiveServicesCredentials
4
@@ -11,7 +11,7 @@ def dominant_entity_lookup(subscription_key):
11
12
This will look up a single entity (Satya Nadella) and print out a short description about them.
13
"""
14
- client = EntitySearchClient(
+ client = EntitySearchAPI(
15
endpoint="https://api.cognitive.microsoft.com",
16
credentials=CognitiveServicesCredentials(subscription_key)
17
)
0 commit comments