テキスト ファイル入力で textBlob を使用しようとしています。
私がオンラインで見つけたすべての例は、この意味でのインプットでした:
wiki = TextBlob("Python is a high-level, general-purpose programming language.")
wiki.tage
私はこれを試しました:
from textblob import TextBlob
file=open("1.txt");
t=file.read();
print(type(t))
bobo = TextBlob(t)
bobo.tags
私が試したコードは機能しませんでした。