Stanford NLP in R.
# install.packages("remotes")
remotes::install_github("news-r/stanfordnlp")
Reproduction of quick example
library(stanfordnlp)
download_model(lang = "en")
pipeline <- create_pipeline()
doc <- pipeline("Barack Obama was born in Hawaii. He was elected president in 2008.")
doc$sentences[[1]]$print_dependencies()
#> ('Barack', '4', 'nsubj:pass')
#> ('Obama', '1', 'flat')
#> ('was', '4', 'aux:pass')
#> ('born', '0', 'root')
#> ('in', '6', 'case')
#> ('Hawaii', '4', 'obl')
#> ('.', '4', 'punct')