Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while runing app.py #13

Open
Anmol1602 opened this issue Jul 2, 2023 · 0 comments
Open

Error while runing app.py #13

Anmol1602 opened this issue Jul 2, 2023 · 0 comments

Comments

@Anmol1602
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant