How to Clean Text for Machine Learning with Python

Last Updated on August 7, 2019 You cannot go straight from raw text to fitting a machine learning or deep learning model. You must clean your text first, which means splitting it into words and handling punctuation and case. In fact, there is a whole suite of text preparation methods that you may need to use, and the choice of methods really depends on your natural language processing task. In this tutorial, you will discover how you can clean and […]

Read more

How to Develop a Deep Learning Bag-of-Words Model for Sentiment Analysis (Text Classification)

Last Updated on September 3, 2020 Movie reviews can be classified as either favorable or not. The evaluation of movie review text is a classification problem often called sentiment analysis. A popular technique for developing sentiment analysis models is to use a bag-of-words model that transforms documents into vectors where each word in the document is assigned a score. In this tutorial, you will discover how you can develop a deep learning predictive model using the bag-of-words representation for movie […]

Read more

Best Practices for Text Classification with Deep Learning

Last Updated on August 24, 2020 Text classification describes a general class of problems such as predicting the sentiment of tweets and movie reviews, as well as classifying email as spam or not. Deep learning methods are proving very good at text classification, achieving state-of-the-art results on a suite of standard academic benchmark problems. In this post, you will discover some best practices to consider when developing deep learning models for text classification. After reading this post, you will know: […]

Read more

How to Develop a Seq2Seq Model for Neural Machine Translation in Keras

Last Updated on August 7, 2019 The encoder-decoder model provides a pattern for using recurrent neural networks to address challenging sequence-to-sequence prediction problems, such as machine translation. Encoder-decoder models can be developed in the Keras Python deep learning library and an example of a neural machine translation system developed with this model has been described on the Keras blog, with sample code distributed with the Keras project. In this post, you will discover how to define an encoder-decoder sequence-to-sequence prediction […]

Read more

Deep Convolutional Neural Network for Sentiment Analysis (Text Classification)

Last Updated on September 3, 2020 Develop a Deep Learning Model to Automatically Classify Movie Reviewsas Positive or Negative in Python with Keras, Step-by-Step. Word embeddings are a technique for representing text where different words with similar meaning have a similar real-valued vector representation. They are a key breakthrough that has led to great performance of neural network models on a suite of challenging natural language processing problems. In this tutorial, you will discover how to develop word embedding models […]

Read more

Gentle Introduction to Statistical Language Modeling and Neural Language Models

Last Updated on August 7, 2019 Language modeling is central to many important natural language processing tasks. Recently, neural-network-based language models have demonstrated better performance than classical methods both standalone and as part of more challenging natural language processing tasks. In this post, you will discover language modeling for natural language processing. After reading this post, you will know: Why language modeling is critical to addressing tasks in natural language processing. What a language model is and some examples of […]

Read more

How to Develop Word-Based Neural Language Models in Python with Keras

Last Updated on September 3, 2020 Language modeling involves predicting the next word in a sequence given the sequence of words already present. A language model is a key element in many natural language processing models such as machine translation and speech recognition. The choice of how the language model is framed must match how the language model is intended to be used. In this tutorial, you will discover how the framing of a language model affects the skill of […]

Read more

How to Develop a Character-Based Neural Language Model in Keras

Last Updated on September 3, 2020 A language model predicts the next word in the sequence based on the specific words that have come before it in the sequence. It is also possible to develop language models at the character level using neural networks. The benefit of character-based language models is their small vocabulary and flexibility in handling any words, punctuation, and other document structure. This comes at the cost of requiring larger models that are slower to train. Nevertheless, […]

Read more

How to Get Started with Deep Learning for Natural Language Processing

Last Updated on August 14, 2020 Deep Learning for NLP Crash Course. Bring Deep Learning methods to Your Text Data project in 7 Days. We are awash with text, from books, papers, blogs, tweets, news, and increasingly text from spoken utterances. Working with text is hard as it requires drawing upon knowledge from diverse domains such as linguistics, machine learning, statistical methods, and these days, deep learning. Deep learning methods are starting to out-compete the classical and statistical methods on […]

Read more

How to Develop a Word-Level Neural Language Model and Use it to Generate Text

Last Updated on September 3, 2020 A language model can predict the probability of the next word in the sequence, based on the words already observed in the sequence. Neural network models are a preferred method for developing statistical language models because they can use a distributed representation where different words with similar meanings have similar representation and because they can use a large context of recently observed words when making predictions. In this tutorial, you will discover how to […]

Read more
1 2 3 4 5