We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45005e3 + 6f0e0f0 commit 8df15e3Copy full SHA for 8df15e3
python/Language/BingSpellCheckv7.py
@@ -7,10 +7,11 @@
7
8
params = {'mkt': 'en-US', 'mode': 'proof', 'text': text}
9
10
-# NOTE: Replace this example key with a valid subscription key.
11
-key = 'enter key here'
+# Add your Bing Spell Check subscription key to your environment variables.
+key = os.environ['BING_SPELL_CHECK_SUBSCRIPTION_KEY']
12
13
-host = 'api.cognitive.microsoft.com'
+# Add your Bing Spell Check endpoint to your environment variables.
14
+host = os.environ['BING_SPELL_CHECK_ENDPOINT']
15
path = '/bing/v7.0/spellcheck'
16
17
headers = {'Ocp-Apim-Subscription-Key': key,
0 commit comments