Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Class Entity

Jasmine Anteunis edited this page Jan 15, 2019 · 2 revisions

An instance of the Entity class is instantiated either by the Conversation or the Response constructors.

Attributes

Each of the following methods corresponds to a Entity attribute

Attributes Description
name String: the name of the entity
raw String: the raw value extracted from the input
confidence Float: the detection score between 0 and 1 excluded

In addition to those methods, more attributes are generated depending of the nature of the entity. The full list can be found there: cai.tool.sap/docs/

// With the textRequest method
Response reponse = client.textRequest(YOUR_TEXT)
Entity entity = reponse.getEntity(ENTITY_NAME)
Clone this wiki locally