R语言如何做依赖解析?
How to do dependency parsing in R language?
我做了 POSTagging。但是如何做依赖解析呢?我可以用 R 语言获取它的代码吗?
想必你已经想通了。如果没有,我是如何在 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)
我做了 POSTagging。但是如何做依赖解析呢?我可以用 R 语言获取它的代码吗?
想必你已经想通了。如果没有,我是如何在 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)