Nlp 是否将单词转换为特定的词性(POS)格式?
给定一个单词,是否可以使用NLTK将该单词转换为特定的词性(POS)形式?例如,给定单词“run”,我是否可以要求NLTK将其转换为以下任何一种:Nlp 是否将单词转换为特定的词性(POS)格式?,nlp,nltk,Nlp,Nltk,给定一个单词,是否可以使用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." 等等。如果是,名词是否也一样?e、 g: NN: run, as in "George
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."
等等。如果是,名词是否也一样?e、 g:
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."
你应该试试
它有如下特点:
- 多元化+单一化
- 比较级+最高级
- 动词变位
- 量化
- 多元化+单一化
- 比较级+最高级
- 动词变位
- 量化