0

I want to write code for checking for plagiarism. I chose the library plagcheck ‘https://github.com/codeclassroom/PlagCheck' . I downloaded, installed library, wrote the code, but when I launch a code, I get error ImportError: cannot import name 'PlagiarismChecker' from 'plagcheck' (/Users/user/pythonProject1/venv/lib/python3.9/site-packages/plagcheck/__init__.py) .

I tried to uninstall and install one more time, also I try upgrade this library. But I also get this error ImportError: cannot import name 'PlagiarismChecker' from 'plagcheck' (/Users/user/pythonProject1/venv/lib/python3.9/site-packages/plagcheck/__init__.py)

from plagcheck import PlagiarismChecker

texts = [
    "The quick brown fox jumps over the lazy dog.",
    "This is a test sentence.",
    "The quick brown fox jumps over the lazy dog.",
    "This is another test sentence."
]

checker = PlagiarismChecker(texts)

results = checker.check_plagiarism()

for original_text, plagiarized_texts in results:
    print(f"Original text: {original_text}")
    print("Plagiarized texts:")
    for text in plagiarized_texts:
        print(text)
    print("="*50)
  • I don't see `PlagiarismChecker` mentioned at all on their [doc](https://plagcheck.readthedocs.io/en/latest/search.html?q=PlagiarismChecker) or [demo](https://plagcheck.readthedocs.io/en/latest/usage/). You sure you are using library correctly? – Fanchen Bao Feb 24 '23 at 21:46

0 Answers0