Skip to content

Error while runing app.py #13

@Anmol1602

Description

@Anmol1602

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions