detect_medical_entities {aws.comprehend}R Documentation

Detect named entities in a source medical text

Description

Detect entities in a source medical text

Usage

detect_medical_entities(text, language = "en", version = c("2", "1"), ...)

Arguments

text

A character string containing a text to entities analyze, or a character vector to perform analysis separately for each element.

language

A character string containing a two-letter language code. Currently only “en” is supported.

version

A character string containing the version of the API that should be used. Currently only "1" or "2" are supported.

...

Additional arguments passed to comprehendHTTP.

Value

A data frame

Examples

## Not run: 
  # simple example
  medical_detect_entities("Mrs. Smith comes in today complaining of shortness of breath.")
  
  txt <-c("Mrs. Smith comes in today.",
          "She is complaining of shortnesss of breath.")
  medical_detect_entities(txt)

## End(Not run)

[Package aws.comprehend version 0.2.1 Index]