如何使用nltk或python删除或更正excel文件或文本文件中的拼写错误
事实上,我有一个excel文件,我必须纠正文件中每一列单词的拼写。 我也有一个制表符分隔的文件,我也想纠正他们的拼写。Gramerly更正。您可以使用库来执行此操作如何使用nltk或python删除或更正excel文件或文本文件中的拼写错误,python,excel,python-3.x,nltk,spell-checking,Python,Excel,Python 3.x,Nltk,Spell Checking,事实上,我有一个excel文件,我必须纠正文件中每一列单词的拼写。 我也有一个制表符分隔的文件,我也想纠正他们的拼写。Gramerly更正。您可以使用库来执行此操作 from autocorrect import spell print spell(u'luve') print spell(u'hvte') 输出: love hate
from autocorrect import spell
print spell(u'luve')
print spell(u'hvte')
输出:
love
hate