chosenone75 / zero_shot_chatgpt_detector

zero-shot chatgpt detector based on OpenAI API and perplexity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zero Shot ChatGPT Detector

Modified from the source code of nice work APE

How to run

first, set the openai key in detector_test.py

then, run the test script python detector_test.py

deterimine whether the text is generated by chatGPT based on the threshold of perplexity you chose.

Next

  • Prompt-based Perplexity for specific task.
  • Word-Level Perplexity, now for the token level.

About

zero-shot chatgpt detector based on OpenAI API and perplexity

License:Apache License 2.0


Languages

Language:Python 100.0%