Analyzing Healthcare Data Using Healthcare NLP Models
Use the Healthcare NLP models to analyze healthcare data using the Language service.
- Open the navigation menu and click Analytics & AI. Under AI Services, click Language.
- In the left-side navigation menu, click Projects.
- Select the compartment that contains the project that you want to use, or select the compartment that you want to create a project in.
-
Perform one of the following actions:
- To use an existing project, click its name.
- To create a new project, click Create Project.
- On the project's details page, click Create custom models.
- In the Choose model type field, select Pretrained health entity detection.
- Click Next.
- Click Create model endpoint.
- After the endpoint is created, to see the results, click Analyze.
- To view assertion values and related entities, click the entity name.
- (Optional) To view the output in JSON, click Show JSON.
Use the oci ai language model create command and required parameters to create an NLP model:
oci ai language model create --model-details '{"modelType":"PRE_TRAINED_HEALTH_NLU","languageCode":"en","version":"V1.0"}' --compartment-id <compartment-id>, -c [<name>] ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the CreateModel operation to create a model.
For example:
{"documents":[{"languageCode":"en","key":"1","text":"American football was derived from the European games of rugby and soccer. Unlike the game of soccer, however, American football focuses more on passing and catching the ball with the hands as opposed to kicking the ball with the feet. Standard American football field is 120 yards in length and 160 feet in width. They are hash marks on every yards and every 10 yards. American football is quickly become more popular then baseball and fan bases are increasing rapidly. Jerry Rice, Tom Brady and Lawrence Taylor are few top player of this sports."}],"compartmentId":"ocid1.tenancy.oc1..aaaaaaaadany3y6wdh3u3jcodcmm42ehsdno525pzyavtjbpy72eyxcu5f7q","masking":{"ALL":{"mode":"MASK","maskingCharacter":"*","isUnmaskedFromEnd":"true","leaveCharactersUnmasked":4}},"profile":{"domain":"PHI"}}