Overview
Python predict
Classify text as safe, harm, nsfw, or bias
Python predict
POST /invocations
Runs inside your own AWS account: your text is processed on a SageMaker endpoint you control, inside your VPC, and is never sent to a third-party API.
This SageMaker model package provides a REST API to classify English text for content safety.
Each input text is classified into one of four categories: safe, harm, nsfw, or bias, with a confidence score. Use it to moderate user-generated content, filter LLM outputs, or triage support and community messages.
The API accepts input as JSON or CSV and supports real-time endpoints and batch transform.
We welcome your feedback at support@sigmodata.com
Model and training data The model is a ModernBERT-base (answerdotai/ModernBERT-base) text classifier fine-tuned with PyTorch and Hugging Face Transformers on the public civil_comments dataset. It runs in network isolation on SageMaker, so no data leaves your account.
Known limitations
- English only. Other languages are not supported.
- The model was fine-tuned on inputs up to 512 tokens. Longer text is accepted, but accuracy is only characterized to that length; split long documents into passages before sending.
- The model assigns a single dominant label. Text that is both harmful and NSFW returns only the stronger signal.
- It is a triage aid, not a compliance control. Keep a human in the loop for enforcement decisions.
Measured performance
- Accuracy 93.9 percent, macro-F1 0.621, measured on 20,000 held-out examples from civil_comments. The split is seeded (70/20/10, seed 42) and was not used in training.
- The classes are heavily imbalanced, so accuracy is dominated by the majority class. Weakest classes on the same split: nsfw F1 0.35 (precision 0.23, recall 0.74); bias F1 0.49 (precision 0.39, recall 0.67). Treat low-confidence minority-class predictions as triage, and review them.
- Real-time endpoint on ml.m5.large: 248 ms median per request (271 ms p95).
- Throughput on the same instance: about 27 texts per second at a batch size of 32.
Highlights
- Label text as safe, harm, nsfw or bias with a confidence score, to triage user content and LLM output
- Runs inside your own AWS account and VPC - text is never sent to a third-party API
- 93.9 percent overall accuracy, mostly from the safe class (macro-F1 0.621); review nsfw and bias flags before acting
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
Dimension | Description | Cost/host/hour |
|---|---|---|
ml.m5.large Inference (Batch) Recommended | Model inference on the ml.m5.large instance type, batch mode | $0.10 |
ml.m5.large Inference (Real-Time) Recommended | Model inference on the ml.m5.large instance type, real-time mode | $0.10 |
ml.c5.2xlarge Inference (Batch) | Model inference on the ml.c5.2xlarge instance type, batch mode | $0.10 |
ml.c5.2xlarge Inference (Real-Time) | Model inference on the ml.c5.2xlarge instance type, real-time mode | $0.10 |
ml.c5.xlarge Inference (Batch) | Model inference on the ml.c5.xlarge instance type, batch mode | $0.10 |
ml.c5.xlarge Inference (Real-Time) | Model inference on the ml.c5.xlarge instance type, real-time mode | $0.10 |
ml.m5.2xlarge Inference (Batch) | Model inference on the ml.m5.2xlarge instance type, batch mode | $0.10 |
ml.m5.2xlarge Inference (Real-Time) | Model inference on the ml.m5.2xlarge instance type, real-time mode | $0.10 |
ml.m5.xlarge Inference (Batch) | Model inference on the ml.m5.xlarge instance type, batch mode | $0.10 |
ml.m5.xlarge Inference (Real-Time) | Model inference on the ml.m5.xlarge instance type, real-time mode | $0.10 |
Dimensions summary
Top-of-mind questions for buyers
Vendor refund policy
No refunds offered but you may cancel at any time
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Amazon SageMaker model
An Amazon SageMaker model package is a pre-trained machine learning model ready to use without additional training. Use the model package to create a model on Amazon SageMaker for real-time inference or batch processing. Amazon SageMaker is a fully managed platform for building, training, and deploying machine learning models at scale.
Version release notes
Important: security update. The inference container is rebuilt on Amazon Linux 2023, replacing a Debian base that carried HIGH and CRITICAL CVEs with no fixed version available upstream.
- The model itself is unchanged. This version is exported from the same fine-tuned checkpoint as version 1.
- Request and response formats are unchanged: JSON or CSV in, label plus confidence out.
Additional details
Inputs
- Summary
A JSON object with a "texts" array of strings to classify (or a CSV file, one text per line, for batch transform).
- Input MIME type
- application/json, text/csv
Input data descriptions
The following table describes supported input data fields for real-time inference and batch transform.
Field name | Description | Constraints | Required |
|---|---|---|---|
texts | List of text strings to classify | - | Yes |
Resources
Vendor resources
Support
Vendor support
Support contact: Email: support@sigmodata.com Support URL: https://www.sigmodata.com/contact
Support description: Email support@sigmodata.com or https://www.sigmodata.com/contact . We reply within one business day, Monday through Friday, US Pacific time.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Similar products



