我有大量的医疗报告。我正试图确定表明将来会采取行动的句子(如'I will prescribe a medication' )
我正在使用udpipe的英语-ewt模式,我也尝试过英语口香糖,但是没有给我动词的将来时态--只是Tense Past/Pres。
如何使用udpipe确定将来的句子(我在安装openNLP和NLP所需的rjava时遇到了问题)。如果没有将来时态形式的动词给予通过ud管道,我有其他的方式,我可以确定我想要什么,使用POS标签等,udpipe输出?
发布于 2019-03-08 17:50:16
我认为这是一个重复的问题,在determine the temporality of a sentence with POS tagging回答,让我们进一步澄清这一点。
动词will是modal auxiliary,它没有时态。英语有两个形态时态(tense#English),现在和过去。没有将来时态。一般来说,时态概念是关于句子的,而不是关于单个词的。将来时态是由一些惯例形成的:例如,情态将/将后面跟着不定式动词。
摘要:所以你需要把词性标签和单词本身结合起来。因此,请看谓词,其中ud管道的依赖解析输出链接到一个辅助术语。
library(udpipe)
x <- udpipe('I will prescribe medication in the future', "english")
x[, c("token", "token_id", "upos", "xpos", "feats", "head_token_id", "dep_rel")]
token token_id upos xpos feats head_token_id dep_rel
I 1 PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 3 nsubj
will 2 AUX MD VerbForm=Fin 3 aux
prescribe 3 VERB VB VerbForm=Inf 0 root
medication 4 NOUN NN Number=Sing 3 obj
in 5 ADP IN <NA> 7 case
the 6 DET DT Definite=Def|PronType=Art 7 det
future 7 NOUN NN Number=Sing 3 oblhttps://stackoverflow.com/questions/55067270
复制相似问题