Introducing the text package
The text package attempts to provide user-friendly access and pipelines to HuggingFace’s transformer language models in R.
Introducing the text package Read More »
Auto Added by WPeMatico
The text package attempts to provide user-friendly access and pipelines to HuggingFace’s transformer language models in R.
Introducing the text package Read More »
Nowadays, Microsoft, Google, Facebook, and OpenAI are sharing lots of state-of-the-art models in the field of Natural Language Processing. However, fewer materials exist how to use these models from R. In this post, we will show how R users can access and benefit from these models as well.
State-of-the-art NLP models from R Read More »
A deep learning model – BERT from Google AI Research – has yielded state-of-the-art results in a wide variety of Natural Language Processing (NLP) tasks. In this tutorial, we will show how to load and train the BERT model from R, using Keras.
Is society ready to deal with challenges brought about by artificially-generated information – fake images, fake videos, fake text? While this post won’t answer that question, it should help form an opinion on the threat exerted by fake text as of this writing, autumn 2019. We introduce gpt2, an R package that wraps OpenAI’s public
Innocent unicorns considered harmful? How to experiment with GPT-2 from R Read More »
As sequence to sequence prediction tasks get more involved, attention mechanisms have proven helpful. A prominent example is neural machine translation. Following a recent Google Colaboratory notebook, we show how to implement attention in R.
Attention-based Neural Machine Translation with Keras Read More »
Image captioning is a challenging task at intersection of vision and language. Here, we demonstrate using Keras and eager execution to incorporate an attention mechanism that allows the network to concentrate on image features relevant to the current state of text generation.
Attention-based Image Captioning with Keras Read More »
Two-class classification, or binary classification, may be the most widely applied kind of machine-learning problem. In this excerpt from the book Deep Learning with R, you’ll learn to classify movie reviews as positive or negative, based on the text content of the reviews.
Deep Learning for Text Classification with Keras Read More »
Word embedding is a method used to map words of a vocabulary to dense vectors of real numbers where semantically similar words are mapped to nearby points. In this example we’ll use Keras to generate word embeddings for the Amazon Fine Foods Reviews dataset.
Word Embeddings with Keras Read More »
In this post we will use Keras to classify duplicated questions from Quora. Our implementation is inspired by the Siamese Recurrent Architecture, with modifications to the similarity measure and the embedding layers (the original paper uses pre-trained word vectors)
Classifying Duplicate Questions from Quora with Keras Read More »
The kerasformula package offers a high-level interface for the R interface to Keras. It’s main interface is the kms function, a regression-style interface to keras_model_sequential that uses formulas and sparse matrices. We use kerasformula to predict how popular tweets will be based on how often the tweet was retweeted and favorited.
Analyzing rtweet Data with kerasformula Read More »