All Projects → jonathanbratt → Rbert

jonathanbratt / Rbert

Licence: apache-2.0
Implementation of BERT in R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Rbert

Postcards
💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Stars: ✭ 208 (+82.46%)
Mutual labels:  rstudio, rstats
Course Starter R
👩‍🏫🇷 Starter repo for building interactive R courses
Stars: ✭ 281 (+146.49%)
Mutual labels:  rstudio, rstats
flowmapblue.R
Flowmap.blue widget for R
Stars: ✭ 42 (-63.16%)
Mutual labels:  rstudio, rstats
Rstudiothemes
A curated list of RStudio themes found on Github
Stars: ✭ 134 (+17.54%)
Mutual labels:  rstudio, rstats
Darkstudio
darkstudio. A dark grey alternative to RStudio's default dark theme.
Stars: ✭ 75 (-34.21%)
Mutual labels:  rstudio, rstats
Rcade
Games to procrastinate with RStudio
Stars: ✭ 146 (+28.07%)
Mutual labels:  rstudio, rstats
rfordatasciencewiki
Resources for the R4DS Online Learning Community, including answer keys to the text
Stars: ✭ 40 (-64.91%)
Mutual labels:  rstudio, rstats
Rtutor
Creating interactive R Problem Sets. Automatic hints and solution checks. (Shiny or RStudio)
Stars: ✭ 141 (+23.68%)
Mutual labels:  rstudio, rstats
Rstudioconf tweets
🖥 A repository for tracking tweets about rstudio::conf
Stars: ✭ 32 (-71.93%)
Mutual labels:  rstudio, rstats
Moderndive book
Statistical Inference via Data Science: A ModernDive into R and the Tidyverse
Stars: ✭ 527 (+362.28%)
Mutual labels:  rstudio, rstats
Googlelanguager
R client for the Google Translation API, Google Cloud Natural Language API and Google Cloud Speech API
Stars: ✭ 145 (+27.19%)
Mutual labels:  natural-language-processing, rstats
Repo 2016
R, Python and Mathematica Codes in Machine Learning, Deep Learning, Artificial Intelligence, NLP and Geolocation
Stars: ✭ 103 (-9.65%)
Mutual labels:  natural-language-processing, rstats
lorem
Generate Lorem Ipsum Text
Stars: ✭ 18 (-84.21%)
Mutual labels:  rstudio, rstats
Summarytools
R Package to Quickly and Neatly Summarize Data
Stars: ✭ 390 (+242.11%)
Mutual labels:  rstudio, rstats
Trackmd
Tools for tracking changes in Markdown format within RStudio
Stars: ✭ 89 (-21.93%)
Mutual labels:  rstudio, rstats
Shinyapps links
A collection of Shiny applications (links shared on Twitter)
Stars: ✭ 109 (-4.39%)
Mutual labels:  rstudio, rstats
Detecting Scientific Claim
Extracting scientific claims from biomedical abstracts (powered by AllenNLP), demo:
Stars: ✭ 109 (-4.39%)
Mutual labels:  natural-language-processing
Opus Mt
Open neural machine translation models and web services
Stars: ✭ 111 (-2.63%)
Mutual labels:  natural-language-processing
Anicon
Animated icons for R markdown and Shiny apps
Stars: ✭ 109 (-4.39%)
Mutual labels:  rstats
Xlnet extension tf
XLNet Extension in TensorFlow
Stars: ✭ 109 (-4.39%)
Mutual labels:  natural-language-processing

RBERT

Lifecycle: maturing Travis build status AppVeyor build status Codecov test coverage

RBERT is an R implementation of the Python package BERT developed at Google for Natural Language Processing.

Installation

You can install RBERT from GitHub with:

# install.packages("devtools")
devtools::install_github(
  "jonathanbratt/RBERT", 
  build_vignettes = TRUE
)

TensorFlow Installation

RBERT requires TensorFlow. Currently the version must be <= 1.13.1. You can install it using the tensorflow package (installed as a dependency of this package; see note below about Windows).

tensorflow::install_tensorflow(version = "1.13.1")

Windows

The current CRAN version of reticulate (1.13) causes some issues with the tensorflow installation. Rebooting your machine after installing Anaconda seems to fix this issue, or upgrade to the development version of reticulate.

devtools::install_github("rstudio/reticulate")

Basic usage

RBERT is a work in progress. While fine-tuning a BERT model using RBERT may be possible, it is not currently recommended.

RBERT is best suited for exploring pre-trained BERT models, and obtaining contextual representations of input text for use as features in downstream tasks.

  • See the "Introduction to RBERT" vignette included with the package for more specific examples.
  • For a quick explanation of what BERT is, see the "BERT Basics" vignette.
  • The package RBERTviz provides tools for making fun and easy visualizations of BERT data.

Running Tests

The first time you run the test suite, the 388.8MB bert_base_uncased.zip file will download in your tests/testthat/test_checkpoints directory. Subsequent test runs will use that download. This was our best compromise to allow for relatively rapid testing without bloating the repository.

Disclaimer

This is not an officially supported Macmillan Learning product.

Contact information

Questions or comments should be directed to Jonathan Bratt ([email protected]) and Jon Harmon ([email protected]).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].