【发布时间】:2020-12-29 14:04:37
【问题描述】:
我希望为每个组(第一列)从“标题”列中提取主要关键字。
“期望标题”列中的期望结果:
可重现的数据:
myData <-
structure(list(group = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3), title = c("mentoring aug 8th 2018",
"mentoring aug 9th 2017", "mentoring aug 9th 2018", "mentoring august 31",
"mentoring blue care", "mentoring cara casual", "mentoring CDP",
"mentoring cell douglas", "mentoring centurion", "mentoring CESO",
"mentoring charlotte", "medication safety focus", "medication safety focus month",
"medication safety for nurses 2017", "medication safety formulations errors",
"medication safety foundations care", "medication safety general",
"communication surgical safety", "communication tips", "communication tips for nurses",
"communication under fire", "communication webinar", "communication welling",
"communication wellness")), row.names = c(NA, -24L), class = c("tbl_df",
"tbl", "data.frame"))
我研究过记录链接解决方案,但这主要是为了对完整标题进行分组。 任何建议都会很棒。
【问题讨论】:
-
这些词不过是名词。您可以使用“udpipe R package”轻松完成此操作。按照给定的链接,有几个可用的解决方案。我觉得第一个解决方案应该适合你。让我知道事情的后续? r-bloggers.com/an-overview-of-keyword-extraction-techniques
标签: tm topic-modeling n-gram udpipe textrank