【发布时间】:2020-11-02 01:54:54
【问题描述】:
我正在尝试使用TextBlobDE.correct() 方法。在下面脚本的每次运行中,我都会收到以下错误:
/usr/local/lib/python3.8/site-packages/textblob_de/blob.py", line 523, in correct
raise NotImplementedError
NotImplementedError
我的脚本:
import pandas as pd
from textblob_de import TextBlobDE as TextBlob
Text_Attribute = %{textAttribute}
def spellingCorrection(text) :
b = TextBlob(text)
return b.correct()
def rm_main(data):
data['corrected_text'] = data[Text_Attribute].apply(spellingCorrection)
return data
谁能引导我找到错误并提出修复建议。
【问题讨论】:
标签: python textblob python-textprocessing