404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.133.121.15: ~ $
**Example 1: To detect entities directly from text**

The following ``detect-entities-v2`` example shows the detected entities and labels them according to type, directly from input text. ::

    aws comprehendmedical detect-entities-v2 \
        --text "Sleeping trouble on present dosage of Clonidine. Severe rash on face and leg, slightly itchy."

Output::

    {
        "Id": 0,
        "BeginOffset": 38,
        "EndOffset": 47,
        "Score": 0.9942955374717712,
        "Text": "Clonidine",
        "Category": "MEDICATION",
        "Type": "GENERIC_NAME",
        "Traits": []
    }

For more information, see `Detect Entities Version 2  <https://docs.aws.amazon.com/comprehend/latest/dg/extracted-med-info-V2.html>`__ in the *Amazon Comprehend Medical Developer Guide*.

**Example 2: To detect entities from a file path**

The following ``detect-entities-v2`` example shows the detected entities and labels them according to type from a file path. ::

    aws comprehendmedical detect-entities-v2 \
        --text file://medical_entities.txt

Contents of ``medical_entities.txt``::

    {
        "Sleeping trouble on present dosage of Clonidine. Severe rash on face and leg, slightly itchy."
    }

Output::

    {
        "Id": 0,
        "BeginOffset": 38,
        "EndOffset": 47,
        "Score": 0.9942955374717712,
        "Text": "Clonidine",
        "Category": "MEDICATION",
        "Type": "GENERIC_NAME",
        "Traits": []
    }

For more information, see `Detect Entities Version 2 <https://docs.aws.amazon.com/comprehend-medical/latest/dev/textanalysis-entitiesv2.html>`__ in the *Amazon Comprehend Medical Developer Guide*.

Filemanager

Name Type Size Permission Actions
describe-entities-detection-v2-job.rst File 1.34 KB 0644
describe-icd10-cm-inference-job.rst File 1.32 KB 0644
describe-phi-detection-job.rst File 1.33 KB 0644
describe-rx-norm-inference-job.rst File 1.31 KB 0644
describe-snomedct-inference-job.rst File 1.32 KB 0644
detect-entities-v2.rst File 1.66 KB 0644
detect-phi.rst File 3.47 KB 0644
infer-icd10-cm.rst File 8.28 KB 0644
infer-rx-norm.rst File 10.38 KB 0644
infer-snomedct.rst File 2.54 KB 0644
list-entities-detection-v2-jobs.rst File 1.34 KB 0644
list-icd10-cm-inference-jobs.rst File 1.37 KB 0644
list-phi-detection-jobs.rst File 1.35 KB 0644
list-rx-norm-inference-jobs.rst File 1.35 KB 0644
list-snomedct-inference-jobs.rst File 1.36 KB 0644
start-entities-detection-v2-job.rst File 720 B 0644
start-icd10-cm-inference-job.rst File 739 B 0644
start-phi-detection-job.rst File 702 B 0644
start-rx-norm-inference-job.rst File 731 B 0644
start-snomedct-inference-job.rst File 740 B 0644
stop-entities-detection-v2-job.rst File 521 B 0644
stop-icd10-cm-inference-job.rst File 543 B 0644
stop-phi-detection-job.rst File 560 B 0644
stop-rx-norm-inference-job.rst File 538 B 0644
stop-snomedct-inference-job.rst File 541 B 0644