Skip to content

Latest commit

 

History

History
86 lines (73 loc) · 2.14 KB

AI-Language.md

File metadata and controls

86 lines (73 loc) · 2.14 KB

Extract Key Phrases

Might be useful if you want to improve search in AI search with Hybrid or Semantic Query Type.

  1. Extact Key Phrases from the text:

https://ai-language-key-phrases-extraction.cognitiveservices.azure.com/language/:analyze-text?api-version=2022-05-01 H- Content-Type application/json H- Ocp-Apim-Subscription-Key "Key" body:

{
    "kind": "KeyPhraseExtraction",
    "parameters": {
        "modelVersion": "latest"
    },
    "analysisInput":{
        "documents":[
            {
                "id":"1",
                "language":"en",
                "text": "total cash on Statement of cash position August 31, 2019 for 212 N 1 st Lofts"
            }
        ]
    }
}
image

Extract linked entities

  1. Extract Linked Entities, links to internet resources having more information with related information to your input

https://ai-language-key-phrases-extraction.cognitiveservices.azure.com/language/:analyze-text?api-version=2022-05-01 H- Content-Type application/json
H- Ocp-Apim-Subscription-Key "Key"
body:

{
  "kind": "EntityLinking",
  "parameters": {
    "modelVersion": "latest"
  },
  "analysisInput": {
    "documents": [
      {
        "id": "1",
        "language": "en",
        "text": "I saw Venus shining in the sky"
      }
    ]
  }
}
image

Sentiment Analysis

  1. Check the sentiment of the text

https://ai-language-key-phrases-extraction.cognitiveservices.azure.com/language/:analyze-text?api-version=2022-05-01
H- Content-Type application/json
H- Ocp-Apim-Subscription-Key "YOUR KEY"
Body:

{
  "kind": "SentimentAnalysis",
  "parameters": {
    "modelVersion": "latest"
  },
  "analysisInput": {
    "documents": [
      {
        "id": "1",
        "language": "en",
        "text": "Good morning!"
      }
    ]
  }
}
image