403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/usr/lib/python3.9/site-packages/awscli/examples/comprehend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/lib/python3.9/site-packages/awscli/examples/comprehend/classify-document.rst
**To classify document with model-specific endpoint**

The following ``classify-document`` example classifies a document with an endpoint of a custom model. The model in this example was trained on
a dataset containing sms messages labeled as spam or non-spam, or, "ham". ::

    aws comprehend classify-document \
        --endpoint-arn arn:aws:comprehend:us-west-2:111122223333:document-classifier-endpoint/example-classifier-endpoint \
        --text "CONGRATULATIONS! TXT 1235550100 to win $5000"

Output::

    {
        "Classes": [
            {
                "Name": "spam",
                "Score": 0.9998599290847778
            },
            {
                "Name": "ham",
                "Score": 0.00014001205272506922
            }
        ]
    }

For more information, see `Custom Classification <https://docs.aws.amazon.com/comprehend/latest/dg/how-document-classification.html>`__ in the *Amazon Comprehend Developer Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit