NLP

Top 10 NLP Concepts Interview Questions and Answers Natural Language Processing (NLP) terms for data scientist and machine learning engineer interviews

Top 10 NLP Concepts Interview Questions and Answers

Natural Language Processing (NLP) terminologies are frequently asked during data science and machine learning interviews. In this tutorial, we will talk about the top 10 Natual Language Processing (NLP) concepts interview questions and how to answer them. The top 10 questions are: Resources for this post: Let’s get started! Question 1: What are vocabularies, documents, …

Top 10 NLP Concepts Interview Questions and Answers Read More »

Transfer Learning for Text Classification Using PyTorch Fine-tuning a pretrained transformer BERT model for customized sentiment analysis using PyTorch training loops

Transfer Learning for Text Classification Using PyTorch

Hugging Face provides three ways to fine-tune a pretrained text classification model: PyTorch, Tensorflow Keras, and transformer trainer. Compared with the other two ways, PyTorch training loops provide more customization and easier debugging of the training loops. This tutorial will use PyTorch to fine-tune a text classification model. We will talk about the following: If …

Transfer Learning for Text Classification Using PyTorch Read More »

Transfer Learning for Text Classification Using Hugging Face Transformers Trainer Fine-tuning a pretrained transformer BERT model for customized sentiment analysis using transformer PyTorch Trainer from Hugging Face

Transfer Learning for Text Classification Using Hugging Face Transformers Trainer

Hugging Face provides three ways to fine-tune a pretrained text classification model: Tensorflow Keras, PyTorch, and transformer trainer. Transformer trainer is an API for feature-complete training in PyTorch without writing all the loops. This tutorial will use the transformer trainer to fine-tune a text classification model. We will talk about the following: Resources for this …

Transfer Learning for Text Classification Using Hugging Face Transformers Trainer Read More »

Customized Sentiment Analysis: Transfer Learning Using Tensorflow with Hugging Face Fine-tune a pretrained transformer model for customized sentiment analysis using TensorFlow Keras with Hugging Face

Customized Sentiment Analysis: Transfer Learning Using Tensorflow with Hugging Face

Transfer learning is also called pretrained model fine-tuning. It refers to training a model with a small dataset while leveraging the stored information from a model trained with a large dataset for another task. In this tutorial, we will talk about how to use a small review dataset to build a sentiment prediction model while …

Customized Sentiment Analysis: Transfer Learning Using Tensorflow with Hugging Face Read More »

Sentiment Analysis: Hugging Face Zero-shot Model vs Flair Pre-trained Model Which pre-trained Natual Language Processing (NLP) model has better prediction accuracy for the sentiment analysis, Hugging Face or Flair?

Sentiment Analysis: Hugging Face Zero-shot Model vs Flair Pre-trained Model

There are different methods for sentiment analysis. Some examples are lexicon-based methods, building customized models, using cloud services for sentiment predictions, or using pre-trained language models. In this tutorial, we will compare two state-of-art deep-learning pre-trained models for sentiment analysis, one from Hugging Face, and the other from Flair. We will talk about: Resources for …

Sentiment Analysis: Hugging Face Zero-shot Model vs Flair Pre-trained Model Read More »

Topic Modeling by Group Using Deep Learning in Python Topics by category using the Python package BERTopic on Airbnb reviews

Topic Modeling by Group Using Deep Learning in Python

Building one general topic model is not enough in some cases, especially when there are different categories with various properties and characteristics. For example, a commercial bank may be interested in topic models built for different lines of products such as credit cards, checking accounts, or student loan. A hotel chain may be interested in …

Topic Modeling by Group Using Deep Learning in Python Read More »

Time Series Topic Tracking for Airbnb Reviews Track topic change over time using the Python package BERTopic

Time Series Topic Tracking for Airbnb Reviews

Time series topic tracking can help us understand how the topics change over time for reviews or social media posts. In this tutorial, we will use Airbnb review data to illustrate the following: The Python package used for the topic model in this tutorial is BERTopic. For more details about using this package, please check …

Time Series Topic Tracking for Airbnb Reviews Read More »

Topic Modeling with Deep Learning Using Python BERTopic Transformer-based NLP topic modeling using the Python package BERTopic: modeling, prediction, and visualization

Topic Modeling with Deep Learning Using Python BERTopic

BERTopic is a topic modeling python library that uses the combination of transformer embeddings and clustering model algorithms to identify topics in NLP (Natual Language Processing). In this tutorial, we will talk about: This is an introduction to the BERTopic model. To learn how to optimize the BERTopic model, please check out Hyperparameter Tuning for BERTopic …

Topic Modeling with Deep Learning Using Python BERTopic Read More »

Hyperparameter Tuning for BERTopic Model in Python Hyperparameter optimization for Transformer-based NLP topic modeling using the Python package BERTopic

Hyperparameter Tuning for BERTopic Model in Python

Hyperparameter tuning is an important optimization step for building a good topic model. BERTopic is a topic modeling python library that combines transformer embeddings and clustering model algorithms to identify topics in NLP (Natual Language Processing). In this tutorial, we will talk about the following: Please check out my previous tutorial Topic Modeling with Deep …

Hyperparameter Tuning for BERTopic Model in Python Read More »