Title Speaker Name Introduction to natural language processing with TensorFlow Speaker Name Title Prerequisites Basic Python knowledge Basic understanding of machine learning Learning objectives Understand how text is processed for natural
"Title Speaker Name Introduction to natural" is the property of its rightful owner. Permission is granted to
download and print the materials on this website for personal, non-commercial use only, and to display it
on your personal computer provided you do not modify the materials and that you retain all copyright
notices contained in the materials. By downloading content from our website, you accept the terms of this
agreement.
Share
Embed code
Presentation Transcript
01
Title Speaker Name Introduction to natural language processing with TensorFlow Speaker Name Title<br>
02
Prerequisites Basic Python knowledge
Basic understanding of machine learning<br>
03
Learning objectives Understand how text is processed for natural language processing tasks
Get an introduced to Recurrent Neural Networks (RNNs) and Generative Neural Networks (GNNs)
Learn about Attention Mechanisms
Learn how to build text classification models<br>
04
Agenda Introduction to natural language processing with TensorFlow
Representing text as Tensors
Represent words with embeddings
Capture patterns with recurrent neural networks
Generate text with recurrent networks<br>
05
Introduction to natural language processing with TensorFlow<br>
06
Introduction to natural language processing with TensorFlow In this presentation, we will explore different neural network architectures for dealing with natural language text.<br>
07
Natural Language Tasks There are several NLP tasks that we can solve using neural networks: Text Classification is used when we need to classify a text fragment into one of several predefined classes. Examples include e-mail spam detection, news categorization, assigning a support request to a category, and more.
Intent Classification is one specific case of text classification, where we want to map an input utterance in the conversational AI system into one of the intents that represent the actual meaning of the phrase, or intent of the user.
Sentiment Analysis is a regression task, where we want to understand the degree of positivity of a given piece of text. We may want to label text in a dataset from most negative (-1) to most positive (+1), and train a model that will output a number representing the positivity of the input text.
Named Entity Recognition (NER) is the task of extracting entities from text, such as dates, addresses, people names, etc. Together with intent classification, NER is often used in dialog systems to extract parameters from the user's utterance.
A similar task of Keyword Extraction can be used to find the most meaningful words inside a text, which can then be used as tags.
Text Summarization extracts the most meaningful pieces of text, giving the user a compressed version of the original text.
Question Answering is the task of extracting an answer from a piece of text. This model takes a text fragment and a question as input, and finds the exact place within the text that contains the answer. For example, the text "John is a 22 year old student who loves to use Microsoft Learn", and the question How old is John should provide us with the answer 22.<br>
08
Essential Facts<br>
09
Use embedding layer before fully-connected classifier layer Reduces the dimensionality of the input vector to neural classifier<br>
10
Use character-level LSTM To generate words with specific meaning, like funny ones.<br>
11
LSTM network architecture Allows explicit state management with forgetting and state triggering<br>
12
Question 1 Suppose your text corpus contains 80000 different words. Which of the below would you complete to reduce the dimensionality of the input vector to neural classifier? Randomly select 10% of the words and ignore the rest.
Use convolutional layer before fully-connected classifier layer
Use embedding layer before fully-connected classifier layer
Select 10% of most frequently used words and ignore the rest<br>
13
Question 1 Suppose your text corpus contains 80000 different words. Which of the below would you complete to reduce the dimensionality of the input vector to neural classifier? Randomly select 10% of the words and ignore the rest.
Use convolutional layer before fully-connected classifier layer
Use embedding layer before fully-connected classifier layer
Select 10% of most frequently used words and ignore the rest<br>
14
Question 2 We want to train a neural network to generate new funny words for a children's book. Which architecture can we use? Word-level LSTM
Character-level LSTM
Word-level RNN
Character-level perceptron<br>
15
Question 2 We want to train a neural network to generate new funny words for a children's book. Which architecture can we use? Word-level LSTM
Character-level LSTM
Word-level RNN
Character-level perceptron<br>
16
Question 3 Recurrent neural network is called recurrent, because: A network is applied for each input element and output from the previous application is passed to the next one
It is trained by a recurrent process
It consists of layers which include other subnetworks<br>
17
Question 3 Recurrent neural network is called recurrent, because: A network is applied for each input element and output from the previous application is passed to the next one
It is trained by a recurrent process
It consists of layers which include other subnetworks<br>
18
Question 4 What is the main idea behind LSTM network architecture? Fixed number of LSTM blocks for the whole dataset
It contains many layers of recurrent neural networks
Explicit state management with forgetting and state triggering<br>
19
Question 4 What is the main idea behind LSTM network architecture? Fixed number of LSTM blocks for the whole dataset
It contains many layers of recurrent neural networks
Explicit state management with forgetting and state triggering<br>
20
Question 5 What is the main idea of attention? Attention assigns a weight coefficient to each word in the vocabulary to show how important it is
Attention is a network layer that uses attention matrix to see how much input states from each step affect the final result.
Attention builds global correlation matrix between all words in vocabulary, showing their co-occurrence<br>
21
Question 5 What is the main idea of attention? Attention assigns a weight coefficient to each word in the vocabulary to show how important it is
Attention is a network layer that uses attention matrix to see how much input states from each step affect the final result.
Attention builds global correlation matrix between all words in vocabulary, showing their co-occurrence<br>
22
Summary<br>
23
Summary We have covered all the basics of Natural Language Processing such as: text representation, traditional recurrent network models, and near state-of-the-art models with attention.<br>
24
Next Steps Practice your knowledge by trying these Learn modules: Please tell us how you liked this workshop by filling out this survey:
https://aka.ms/workshopomatic-feedback There are other Learn Modules for TensorFlow that are grouped in the TensorFlow fundamentals Learning Path<br>