1. Documentation
  2. Features
  3. Named-Entity Recognition (NER)

Named-Entity Recognition (NER)

PRE-RECORDED
STREAMING

Deepgram’s Named-Entity Recognition (NER) feature recognizes alphanumerics in audio and removes whitespace between the characters in the transcript.

Use Cases

Some examples of use cases for NER include:

  • Tracking numbers for packages
  • Company names that are initialisms (for example, IBM)
  • Account numbers and customer codes

Enable Feature

To enable named-entity recognition, when you call Deepgram’s API, add a ner parameter set to true in the query string:

ner=true

To transcribe audio from a file on your computer, run the following cURL command in a terminal or your favorite API client.

Be sure to replace the placeholder YOUR_DEEPGRAM_API_KEY with your Deepgram API Key. You can create an API Key in the Deepgram Console.

curl \
  --request POST \
  --header 'Authorization: Token YOUR_DEEPGRAM_API_KEY' \
  --header 'Content-Type: audio/wav' \
  --data-binary @youraudio.wav \
  --url 'https://api.deepgram.com/v1/listen?ner=true'

Results

Once applied, results will appear in the transcript.

TruthBefore NERAfter NER
may i verify your account number please hold on okay account number it is nine two eight four seven three seven three nine two three seven okay i've got nine two eight four seven three seven three nine two three seven yeah alright i'm just gonna pull up your information here so that i can help you can you also confirm your customer id code for me yeah it's kinda long it's lowercase x k y two zero capital k capital p one nine lowercase r p five lowercase z f q three four lowercase a m twenty three alright let me just repeat that back to you i've got x k y twenty and then capital k capital p one nine lowercase r p five lowercase z f and q thirty four lower lowercase am and was that twenty three at endmay i verify your account number please hold on okay account number it is nine two eight four seven three seven three nine two three seven okay i've got nine two eight four seven three seven three nine two three seven yeah alright i'm just gonna pull up your information here so that i can help you can you also confirm your customer id code for me yeah it's kinda long it's lowercase x k y two zero capital k capital p one nine lowercase r p five lowercase z f q three four lowercase a m twenty three alright let me just repeat that back to you i've got x k y twenty and then capital k capital p one nine lowercase r p five lowercase z f and q thirty four lower lowercase am and was that twenty three at endmay i verify your account number please hold on okay account number it is 928473739237 okay i've got 928473739237 yeah alright i'm just gonna pull up your information here so that i can help you can you also confirm your customer id code for me yeah it's kinda long it's lowercase xky20 capital k capital p19 lowercase rp5 lowercase zfq34 lowercase a m twenty three alright let me just repeat that back to you i've got xky twenty and then capital k capital p19 lowercase rp5 lowercase z f and q thirty four lower lowercase am and was that twenty three at end

By default, Deepgram applies its general AI model, which is a good, general purpose model for everyday situations. To learn more about the customization possible with Deepgram's API, check out the Deepgram API Reference.