<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NLP | Scott Miner</title><link>https://scottminer.rbind.io/tags/nlp/</link><atom:link href="https://scottminer.rbind.io/tags/nlp/index.xml" rel="self" type="application/rss+xml"/><description>NLP</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 07 Nov 2024 00:00:00 +0000</lastBuildDate><image><url>https://scottminer.rbind.io/media/sharing.png</url><title>NLP</title><link>https://scottminer.rbind.io/tags/nlp/</link></image><item><title>IMDb Sentiment Classifier</title><link>https://scottminer.rbind.io/projects/imdb-sentiment-classifier/</link><pubDate>Thu, 07 Nov 2024 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/imdb-sentiment-classifier/</guid><description>&lt;p&gt;A sentiment analysis model trained on the IMDb Movie Reviews dataset to classify reviews as positive or negative.&lt;/p&gt;
&lt;h2 id="approach"&gt;Approach&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Preprocessing&lt;/strong&gt;: tokenization, vocabulary building, and sequence padding of raw review text.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Embeddings&lt;/strong&gt;: pre-trained GloVe word vectors give the network a head start on word meaning.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Model&lt;/strong&gt;: a bidirectional LSTM reads each review in both directions, with batch normalization and dropout-style regularization to improve accuracy and generalization.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Training and evaluation&lt;/strong&gt;: scripted training loop with held-out evaluation and metrics reporting.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;End-to-end NLP with TensorFlow and Keras: text preprocessing, transfer learning with embeddings, recurrent architectures, and disciplined model evaluation.&lt;/p&gt;</description></item><item><title>Word2Vec Skip-Gram in TensorFlow 2</title><link>https://scottminer.rbind.io/projects/word2vec-skipgram-tensorflow/</link><pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate><guid>https://scottminer.rbind.io/projects/word2vec-skipgram-tensorflow/</guid><description>&lt;p&gt;An implementation of the Word2Vec skip-gram algorithm in TensorFlow 2.0 that learns vector representations of words from a slice of Wikipedia (the text8 dataset).&lt;/p&gt;
&lt;h2 id="how-it-works"&gt;How it works&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;The text8 corpus is downloaded (a helper script fetches it on demand) and processed into a vocabulary, dropping rare words below a frequency threshold.&lt;/li&gt;
&lt;li&gt;A skip-gram model is trained with stochastic gradient descent and noise-contrastive estimation (NCE) loss.&lt;/li&gt;
&lt;li&gt;During training the model is evaluated by finding the nearest neighbors of a set of test words using cosine similarity between their embeddings.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation follows the approach described in Mikolov et al., &lt;em&gt;Efficient Estimation of Word Representations in Vector Space&lt;/em&gt; (2013), and builds on Aymeric Damien&amp;rsquo;s TensorFlow examples.&lt;/p&gt;
&lt;h2 id="what-it-demonstrates"&gt;What it demonstrates&lt;/h2&gt;
&lt;p&gt;Working knowledge of word embeddings, negative-sampling style objectives, and writing training and evaluation loops directly against the TensorFlow 2 API.&lt;/p&gt;</description></item></channel></rss>