๐Ÿ“š Agora node [[nlp]] โ˜†
Agora nodes contain community contributions with titles or topics that match your search. x
๐Ÿ“œ File pages/nlp.org by @jakeisnt โ˜† ๐Ÿ“Ž โ›ถ

a lot of things should be moved fromMachine Learning here.

https://www.enandini.com/projects/LDA_Topic_Modeling.html https://arxiv.org/abs/2004.14257 politeness transfer, converting non polite to polite sentences while preserving the meaning https://keras.io/examples/audio/speaker_recognition_using_cnn/ speaker recognition models in keras

Loading pushes...

โœจ AI Synthesis Mistral Gemini ChatGPT Claude x

Expanding this section will automatically generate an AI synthesis of the contributions in this node.

๐ŸŒŒ Agora context for [[nlp]]

Rendering context...

๐Ÿ“š Agora node [[deep learning in nlp]] (pulled by the Agora)
๐Ÿ“œ File Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Deep Learning in NLP.md by @KGBicheno โ˜† ๐Ÿ“Ž

Deep Learning in NLPยง

Go to [[Week 2 - Introduction]] or back to the [[Main AI Page]] Part of the page on [[Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Natural Language Processing]] For more details see [[Deep Learning]]

Deep learning refers to neural networks with many layers (the deep part) that takes as features as input and extracts higher-level features from this data. 

Much like in CNNs (Convolutional Neural Networks.)

A graphic representation of a CNN and other layers in an NLP DL Model

Deep learning networks are able to learn a hierarchy of representations and different levels of abstractions of their input. Deep learning networks can use supervised learning or unsupervised learning and can be formed as hybrids of other approaches (such as incorporating a recurrent neural network with a deep learning network).

Long Short Term Memory cells used as neurons in NLP are more complicated than traditional perceptron neurons, as they have multiple gates and the ability to forget their current informational state.

An interesting application is where a CNN is used to analyse an image and then an LSTM is used to generate a textual representation of the image.

๐Ÿ“š Agora node [[modern approaches in nlp]] (pulled by the Agora)
๐Ÿ“œ File Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Modern Approaches in NLP.md by @KGBicheno โ˜† ๐Ÿ“Ž

Modern Approaches in NLPยง

Go to [[Week 2 - Introduction]] or back to the [[Main AI Page]] Part of the page on [[Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Natural Language Processing]]

Modern approaches to NLP primarily focus on neural network architectures. As neural network architectures rely on numerical processing, an encoding is required to process words.

Two common methods are:

  • one-hot encodings
    • Essentially a binary encoding of the word’s position for efficient training by neural networks
  • word vectors
    • A numeric encoding of a range of dimensions of the word to which operations can be performed

A graphical representation of one hot encoding

Another encoding is word vectors, which represent words as highly dimensional vectors where units of the vector are real values. But rather than assign each unit a word (as in one-hot), each unit represents categories for the word (such as singular vs. plural or noun vs. verb) and can be 100-1,000 units wide (dimensionality).

What makes this encoding interesting is that words are now numerically related, and the encoding opens up applying mathematical operations to word vectors (such as adding, subtracting, or negating).

A graphical depiction of word vector encoding for NLP

๐Ÿ“š Agora node [[recurrent neural networks in nlp]] (pulled by the Agora)
๐Ÿ“œ File Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Recurrent Neural Networks in NLP.md by @KGBicheno โ˜† ๐Ÿ“Ž

Recurrent Neural Networks in NLPยง

Go to [[Week 2 - Introduction]] or back to the [[Main AI Page]] Part of the page on [[Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Natural Language Processing]] See [[RNNS - Recurrent neural networks]] for more detail.

As words move through the neurons, the next batch of inputs enter the network in such a way that late-stage words form part of the processing of early-stage words.

This ensures context is taken into account when processing language.

Traditional RNNs are trained through back-propagation through time (BPTT).

Here's an example of what BPTT looks like.

๐Ÿ“š Agora node [[reinforcement learning in nlp]] (pulled by the Agora)
๐Ÿ“œ File Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Reinforcement Learning in NLP.md by @KGBicheno โ˜† ๐Ÿ“Ž

Reinforcement Learning in NLPยง

Go to [[Week 2 - Introduction]] or back to the [[Main AI Page]] Part of the page on [[Artificial Intelligence/Introduction to AI/Week 2 - Introduction/Natural Language Processing]] For more details see [[Reinforcement - supervised learning]]

A graphical representation of reinforcement learning in NLP

The ‘change vs do nothing’ and ‘new information vs old information’ calculations come into play heavily here. Mainly in terms of determining if a translation requires further information before the current output should be expressed as the answer.

This is especially important in translating languages like Japanese where the verb comes last, but is required in all langauges as a full sentence is required before its context is fully known.