This SageMaker model package provides a REST API to detect the language of an input text.
It identifies 20 languages: Arabic, Bulgarian, German, Greek, English, Spanish, French, Hindi, Italian, Japanese, Dutch, Polish, Portuguese, Russian, Swahili, Thai, Turkish, Urdu, Vietnamese, and Chinese. Each prediction returns the ISO language code and a confidence score.
Use it to route incoming support messages to the right language queue, tag multilingual document sets before indexing, or filter a training corpus down to one language.
The API accepts input as JSON or CSV and supports real-time endpoints and batch transform.
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 papluca/language-identification dataset.
It runs in network isolation on SageMaker, so no data leaves your account.
Known limitations
Detects 20 languages only. Text in any other language is still mapped
to one of the 20, so use the confidence score to reject it.
The model was fine-tuned on inputs up to 512 tokens. Longer text is
accepted, but accuracy is only characterized to that length.
Very short inputs (a few words) carry less signal and are less
reliable than a full sentence.
Code-switched text returns a single dominant language.
Measured performance
Accuracy 99.8 percent, macro-F1 0.998, measured on 18,000 held-out examples from papluca/language-identification.
The split is seeded (70/20/10, seed 42) and was not used in training.
Real-time endpoint on ml.m5.large: 251 ms median per request (276 ms p95).
Throughput on the same instance: about 24 texts per second at a batch size of 32.
Highlights
Detect which of 20 languages a snippet is in and return an ISO code plus confidence
Fixed 20-language set with ISO codes - ready for routing and model selection
AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
You pay by the host hour for the SageMaker instance running this language classifier. Pricing splits along two choices: instance type and inference mode. Instance types include ml.m5.large, ml.m5.xlarge, ml.m5.2xlarge, ml.c5.xlarge, and ml.c5.2xlarge, so you match compute size to your workload. Each instance offers two modes: batch, for processing groups of records, and real-time, for on-demand endpoint requests. Your cost scales with the number of hours the instance runs and the size you pick. You choose one instance-and-mode combination per deployment.
Top-of-mind questions for buyers
Am I charged when the SageMaker instance is stopped or idle?
You pay per host hour while the instance runs. Charges accrue only when the endpoint or batch job is active. Stopping or deleting the endpoint ends software charges. Underlying AWS storage or related resources may still incur their own fees, but the model itself meters running time only.
What is the difference between batch mode and real-time mode billing?
Real-time mode runs a live endpoint you send requests to on demand, billed for each hour the endpoint stays up. Batch mode processes groups of records in one job, billed for the hours that job runs. Real-time suits steady request traffic; batch suits bulk processing of stored text.
Does classification accuracy or the number of texts I send affect my cost?
No. Cost depends only on instance type and hours run, not on how many texts you send or how many of the 20 languages you detect. You send JSON, CSV, or plain text and get a label plus confidence score. Send volume does not change the host-hour rate.
www.sigmodata.com
Helpful?
Vendor refund policy
No refunds offered but you may cancel at any time
How can we make this page better?
Tell us how we can improve this page, or report an issue with this product.
Give us feedbackReport a problem with this product or seller
Legal
Vendor terms and conditions
Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA).
Content disclaimer
Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.
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.
Deploy the model on Amazon SageMaker AI using the following options:
Real-time inference
Deploy the model as an API endpoint for your applications. When you send data to the endpoint, SageMaker processes it and returns results by API response. The endpoint runs continuously until you delete it. You're billed for software and SageMaker infrastructure costs while the endpoint runs. AWS Marketplace models don't support Amazon SageMaker Asynchronous Inference. For more information, see Deploy models for real-time inference .
Batch transform
Deploy the model to process batches of data stored in Amazon Simple Storage Service (Amazon S3). SageMaker runs the job, processes your data, and returns results to Amazon S3. When complete, SageMaker stops the model. You're billed for software and SageMaker infrastructure costs only during the batch job. Duration depends on your model, instance type, and dataset size. AWS Marketplace models don't support Amazon SageMaker Asynchronous Inference. For more information, see Batch transform for inference with Amazon SageMaker AI .
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
Outputs
Usage instructions
Sample notebooks
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
Real-time inference sample input data
{"texts": ["Hello, how are you?"]}
Batch transform sample input data
Hello, how are you?
Input data descriptions
The following table describes supported input data fields for real-time inference and batch transform.
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.
Be the first to review this product. We've partnered with PeerSpot to gather customer feedback. You can share your experience by writing or recording a review, or scheduling a call with a PeerSpot analyst.