:exclamation: This is a read-only mirror of the CRAN R package repository. paws.machine.learning — 'Amazon Web Services' Machine Learning Services. Homepage: https://github.com/paws-r/paws Report bugs for this package: https://github.com/paws-r/paws/issues
I have an AWS medical comprehend account. When I run svc$describe_entities_detection_v2_job(sample_text) I'm getting the following error: Error in issue(request$http_request) : no url provided.
sample_text = " Pt is 87 yo woman, highschool teacher with past medical history that includes
status post cardiac catheterization in April 2019. She presents today with palpitations and chest pressure.
HPI : Sleeping trouble on present dosage of Clonidine. Severe Rash on face and leg, slightly itchy
Meds : Vyvanse 50 mgs po at breakfast daily, Clonidine 0.2 mgs -- 1 and 1 / 2 tabs po qhs
HEENT : Boggy inferior turbinates, No oropharyngeal lesion
Lungs : clear
Heart : Regular rhythm
Skin : Mild erythematous eruption to hairline
Follow-up as scheduled"
I have an AWS medical comprehend account. When I run svc$describe_entities_detection_v2_job(sample_text) I'm getting the following error: Error in issue(request$http_request) : no url provided.
Following is my code snippet:
%nin%
= Negate(%in%
) package_loader = function(list.of.packages){ new.packages <- list.of.packages[(list.of.packages %nin% installed.packages()[,"Package"])] if(length(new.packages)){ install.packages(new.packages, dependencies = T, quiet = T) } for(i in list.of.packages){ library(package = i, character.only = T, quietly = T) } }suppressPackageStartupMessages(package_loader(c("data.table", "dplyr", "caret", "randomForest", "aws.comprehend", "aws.signature", "xgboost", "earth", "forecast", "keras", "utils", "paws.machine.learning", "paws")))
AWS_ACCESS_KEY = Sys.getenv("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY = Sys.getenv("AWS_SECRET_ACCESS_KEY") AWS_REGION = "us-east-1" AWS_ENDPOINT = "comprehendmedical.us-east-1.amazonaws.com"
sample_text = " Pt is 87 yo woman, highschool teacher with past medical history that includes status post cardiac catheterization in April 2019. She presents today with palpitations and chest pressure. HPI : Sleeping trouble on present dosage of Clonidine. Severe Rash on face and leg, slightly itchy
Meds : Vyvanse 50 mgs po at breakfast daily, Clonidine 0.2 mgs -- 1 and 1 / 2 tabs po qhs HEENT : Boggy inferior turbinates, No oropharyngeal lesion Lungs : clear Heart : Regular rhythm Skin : Mild erythematous eruption to hairline Follow-up as scheduled"
svc <- comprehendmedical( config = list( credentials = list( creds = list( access_key_id = AWS_ACCESS_KEY, secret_access_key = AWS_SECRET_ACCESS_KEY ) ), endpoint = AWS_ENDPOINT, region = AWS_REGION ) )
svc$describe_entities_detection_v2_job(sample_text)
My AWS account is on US-East-1 and the endpoint has been taken from the AWS Medical Comprehend Website.
I went through the function: function (JobId) { op <- new_operation(name = "DescribeEntitiesDetectionV2Job", http_method = "POST", http_path = "/", paginator = list()) input <- .comprehendmedical$describe_entities_detection_v2_job_input(JobId = JobId) output <- .comprehendmedical$describe_entities_detection_v2_job_output() config <- get_config() svc <- .comprehendmedical$service(config) request <- new_request(svc, op, input, output) response <- send_request(request) return(response)
How do I fix this issue?