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)