/ / Comment analyser la dépendance en langage R? - apprentissage automatique, nlp, stanford-nlp, opennlp

Comment faire l'analyse des dépendances en langage R? - apprentissage automatique, nlp, stanford-nlp, opennlp

J'ai fait du post-tagging. Mais comment analyser la dépendance? Puis-je obtenir le code correspondant en langage R?

Réponses:

0 pour la réponse № 1

Vous avez probablement déjà compris. sinon, comment j'ai analysé la dépendance dans 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)