hinzufügen, wenn ich eine EXE-Datei mit pyinstaller erstellen und ausführen es kein Ergebnis von abruft b = TextBlob(ar) score = b.sentiment.polarity
Wie man einen Haken für textblob in pyinstaller
es gibt richtigen Wert bei Ausführung auf Konsole aber 0 zurück wenn sie mit .exe
def start_dmo():
print ("Importing all the required packages...")
from textblob import TextBlob
input ("press enter to continue")
print("All Necessary Packages imported")
input("press enter to continue")
ar="I cant be more happy with this"
print(ar)
b = TextBlob (ar)
score = b.sentiment.polarity
print (b.sentiment.polarity)
input("press enter to continue")
score = round (score, 2)
if score > 0.0:
senti = "Positive"
elif score < 0.0:
senti = "Negative"
else:
senti = "Neutral"
print("Score"+str(score)+"sentiment"+senti)
input("press enter to continue")
start_dmo()
this is the output when the above code is executed on console
ausgeführt
@ user772401 können Sie mir bitte helfen? danke –