yongchao/gptgen_text_detection
Viewer • Updated • 2k • 27
How to use yongchao/ai_text_detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="yongchao/ai_text_detector") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("yongchao/ai_text_detector")
model = AutoModelForSequenceClassification.from_pretrained("yongchao/ai_text_detector")This BERT-based model is fine-tuned for the task of Ai generated text detection, especially in a TEXT-SQL senario. Please be noted that this model is still in testing phase, its validity has not been fully tested.
The model may not perform well on text that are significantly different from the training data.
Be aware of potential biases in the training data that could affect the model's predictions. Ensure that the model is used in a fair and unbiased manner.