给定一个单词,是否可以使用 NLTK 将该单词转换为特定的词性 (POS) 形式?例如,给定单词“run”,我可以要求 NLTK 将其转换为以下任意内容:
VBZ: runs, as in "George runs to the store."
VBD: ran, as in "George ran to the store."
VB: run, as in "George wants to run."
等等。如果是,名词也一样吗?例如:
NN: run, as in "George wants to run."
NNS: runs, as in "George went for two runs."
NNP: Run, as in "George had dinner at Run."
最佳答案
关于nlp - 将单词转换为特定词性 (POS) 格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18553632/