Spaces:
Sleeping
Sleeping
|
Download docs/features/text_classifier.md from can-org/Testing-AI-Contain: direct link, hf CLI and curl.
- Browser
- Download file 764 Bytes
-
https://huggingface.co/spaces/can-org/Testing-AI-Contain/resolve/refs%2Fpr%2F1/docs/features/text_classifier.md
- Command line
-
hf download hf://spaces/can-org/Testing-AI-Contain@refs/pr/1/docs/features/text_classifier.md
-
curl -L -o text_classifier.md https://huggingface.co/spaces/can-org/Testing-AI-Contain/resolve/refs%2Fpr%2F1/docs/features/text_classifier.md
764 Bytes
English Text Classifier
Overview
Detects whether English-language text is AI-generated or human-written.
Model Pipeline
- Tokenizer: GPT-2 Tokenizer
- Model: Custom trained binary classifier
Dataset
- Balanced dataset: Human vs AI-generated (ChatGPT, Claude, etc.)
- Tokenized and fed into the model using PyTorch/TensorFlow
Code Location
- Controller:
features/text_classifier/controller.py - Inference:
features/text_classifier/inferencer.py - Model Loader:
features/text_classifier/model_loader.py - Preprocessor:
features/text_classifier/preprocess.py
API
- Endpoint: ENDPOINTS
- Input: Raw English text
- Output: Prediction result with probability/confidence