Skip to content

Commit 760b8e7

Browse files
committed
bug fixes in v0.0.1a1
1 parent 826291f commit 760b8e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/chatInsights/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import nltk # type: ignore
12
import matplotlib.pyplot as plt
23
from chatInsights import _transformData
34
from wordcloud import WordCloud # type: ignore
@@ -123,6 +124,8 @@ def active_year(self, save_figure: str = "N") -> None:
123124
plt.show()
124125

125126
def word_cloud(self, save_figure: str = "N") -> None:
127+
nltk.download("stopwords")
128+
126129
def _preprocess_text(df):
127130
hindi = [chr(c) for c in range(0x0900, 0x097F)]
128131
temp = df[

0 commit comments

Comments
 (0)