Reputation: 33
I did POSTagging. But how to do dependency parsing? Can I get the code for it in R language ?
Upvotes: 0
Views: 524
Reputation: 100
Probably you already figured out. if not, how I did dependency parsing in R:
library(cleanNLP)
library(udpipe)
s <- "I prefer the morning flight through Denver"
cnlp_init_udpipe()
doc <- cnlp_annotate(s, as_strings = TRUE)
cnlp_get_dependency(doc, get_token = FALSE)
Upvotes: 1