Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP
J.-C. Chappelier
Laboratoire d’Intelligence Artificielle Faculté I&C
Modern Neural-Networks approaches to NLP – 1 / 47
Modern Neural-Networks approaches to NLP J.-C. Chappelier - - PowerPoint PPT Presentation
Introduction Introduction How does it work? Conclusion Modern Neural-Networks approaches to NLP J.-C. Chappelier Laboratoire dIntelligence Artificielle Facult I&C EPFL c J.-C. Chappelier Modern Neural-Networks approaches to
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Laboratoire d’Intelligence Artificielle Faculté I&C
Modern Neural-Networks approaches to NLP – 1 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Introduction NLP Natural Language Functions Corpus-Based Approach to NLP Linguistic Processing Levels Example of NLP architecture Interdependencies between processing levels Conclusion
c
EPFL
J.-C. Chappelier & M. Rajman
◮ NLP makes use of Machine Learning (as would Image Processing for instance) ◮ but good results require:
◮ good preprocessing ◮ good data (to learn from), relevant annotations ◮ good understanding of the pros/cons, features, outputs, results, ...
☞ The goal of this course is to provide you with the core concepts and baseline techniques to achieve the above mentioned requirements.
Introduction to INLP – 22 / 45
Modern Neural-Networks approaches to NLP – 2 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 3 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 4 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 5 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
0.2 0.4 0.6 0.8 1
5 10 sigmoid(x) 2 4 6 8 10
5 10 max(0,x)
Modern Neural-Networks approaches to NLP – 6 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
m
j=1
Modern Neural-Networks approaches to NLP – 7 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 8 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 9 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 10 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 11 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 12 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 13 / 47
Introduction Introduction
What is it all about? Why now? Is it worth it?
How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 14 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
j
(i) j
(i) j
1
2
3
1
2
3
Modern Neural-Networks approaches to NLP – 15 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 16 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 17 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 18 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
word∈phrase
Modern Neural-Networks approaches to NLP – 19 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 20 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 21 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 22 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
c Moucrowap, CC-BY-SA-4.0 2015 Modern Neural-Networks approaches to NLP – 23 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
c Moucrowap, CC-BY-SA-4.0 2015 Modern Neural-Networks approaches to NLP – 24 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 25 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 26 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
w∈corpus
w(k)∈L
w∈c
Modern Neural-Networks approaches to NLP – 27 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
w∈corpus
R
r=1
Modern Neural-Networks approaches to NLP – 28 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 29 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 30 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 31 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 32 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 33 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 34 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
(source: Zhang and Wallace (2015)) Modern Neural-Networks approaches to NLP – 35 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
c François Deloche, CC-BY-SA-4.0
Modern Neural-Networks approaches to NLP – 36 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 37 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
(source http://colah.github.io/posts/2015-08-Understanding-LSTMs/) Modern Neural-Networks approaches to NLP – 38 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
(source: Chung et al. (2014)) Modern Neural-Networks approaches to NLP – 39 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
from D. Jurafsky & J. H. Martin, Speech and Language Processing, draft 3rd edition Modern Neural-Networks approaches to NLP – 40 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
from Vinyals et al. (2015) Modern Neural-Networks approaches to NLP – 41 / 47
Introduction Introduction How does it work?
"Word" Embeddings word2vec GloVe Practice fastText From words to documents CNN RNN LSTM & GRU
Conclusion
c
EPFL
J.-C. Chappelier
from Malinowski et al. (2015)) Modern Neural-Networks approaches to NLP – 42 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 43 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 44 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 45 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 46 / 47
Introduction Introduction How does it work? Conclusion
c
EPFL
J.-C. Chappelier
Modern Neural-Networks approaches to NLP – 47 / 47