Natural Language Processing Flashcards
What is NLP?
Natural language processing (NLP) is the area of AI that deals with creating software that understands written and spoken language.
What kinds of software can NLP help create?
NLP enables you to create software that can:
- Analyze text documents to extract key phrases and recognize entities (such as places, dates, or people).
- Perform sentiment analysis to determine how positive or negative the language used in a document is.
- Interpret spoken language, and synthesize speech responses.
- Automatically translate spoken or written phrases between languages.
- Interpret commands and determine appropriate actions.
Which cognitive services help build NLP solutions?
Text Analytics:Use this service to analyze text documents and extract key phrases, detect entities (such as places, dates, and people), and evaluate sentiment (how positive or negative a document is).
Translator Text: Use this service to translate text between more than 60 languages.
Speech: Use this service to recognize and synthesize speech, and to translate spoken languages.
Language Understanding: Use this service to train a language model that can understand spoken or text-based commands.
When should you choose Text Analytics resource?
choose this resource type if you only plan to use the Text Analytics service, or if you want to manage access and billing for the resource separately from other services.
When should you choose Cognitive Services resource?
choose this resource type if you plan to use the Text Analytics service in combination with other cognitive services, and you want to manage access and billing for these services together.
What are some things text analytics can do?
Language detection - determines which language the text is written in
** note if words are ambiguous or mixed will result in unknown for language name and NaN for confidence score
sentiment analysis - used to determine positive, negative or neutral sentiment. 0 represents negative, 0.5 is neutral and 1 is positive.
*** can also be indeterminate at 0.5 due to wrong language or sentence with no grammar
key phrase extraction - concept of evaluating the text of a document, or documents, and then identifying the main points around the context or context of the document(s).
entity detection - recognizes entities in text
When should you use a speech resource?
choose this resource type if you only plan to use the Speech service, or if you want to manage access and billing for the resource separately from other services.
When should you use a Cognitive Services resource?
choose this resource type if you plan to use the Speech service in combination with other cognitive services, and you want to manage access and billing for these services together.
What are some uses of the speech to text API?
Real time transcription - You can use real-time transcription for presentations, demos, or any other scenario where a person is speaking.
Batch transcription - reads speech from files. Should run asynchronously because the batch jobs are scheduled on a best-effort basis.
What are some uses of the text to speech API?
Speech Synthesis Voices - can choose voice type and leverages neural networks to make speech sound more natural.
What is a literal translation?
A literal translation is where each word is translated to the corresponding word in the target language.
What is a semantic translation?
Translates considering context, grammar and formality to give true equivalent interpretation of phrase
What are the 2 azure services for translation?
The Translator Text service, which supports text-to-text translation.
The Speech service, which enables speech-to-text and speech-to-speech translation.
What are the optional configurations of the Translator Text API?
Profanity filtering. Without any configuration, the service will translate the input text, without filtering out profanity. Profanity levels are typically culture-specific but you can control profanity translation by either marking the translated text as profane or by omitting it in the results.
Selective translation. You can tag content so that it isn’t translated. For example, you may want to tag code, a brand name, or a word/phrase that doesn’t make sense when localized.
What API’s are included in the Speech Service?
Speech-to-text - used to transcribe speech from an audio source to text format.
Text-to-speech - used to generate spoken audio from a text source.
Speech Translation - used to translate speech in one language to text or speech in another.
**You can use the Speech Translation API to translate spoken audio from a streaming source, such as a microphone or audio file, and return the translation as text or an audio stream.