Plagiarism-checker-Python icon indicating copy to clipboard operation
Plagiarism-checker-Python copied to clipboard

Error while runing app.py

Open Anmol1602 opened this issue 2 years ago • 0 comments

I am facing the folowing error Traceback (most recent call last): File "/content/Plagiarism-checker-Python/app.py", line 14, in vectors = vectorize(student_notes) File "/content/Plagiarism-checker-Python/app.py", line 10, in vectorize def vectorize(Text): return TfidfVectorizer().fit_transform(Text).toarray() File "/usr/local/lib/python3.10/dist-packages/sklearn/feature_extraction/text.py", line 1846, in fit_transform X = super().fit_transform(raw_documents) File "/usr/local/lib/python3.10/dist-packages/sklearn/feature_extraction/text.py", line 1202, in fit_transform vocabulary, X = self._count_vocab(raw_documents, File "/usr/local/lib/python3.10/dist-packages/sklearn/feature_extraction/text.py", line 1133, in _count_vocab raise ValueError("empty vocabulary; perhaps the documents only" ValueError: empty vocabulary; perhaps the documents only contain stop words

Anmol1602 avatar Jul 02 '23 11:07 Anmol1602