# Manage entities

You can manage entity types and entities on Knowledge. Knowledge data will be shared with your other Scopes.

## Literal Entity Type

The Literal Entity Type consists of multiple Literal Value Blocks. Literal Value used in API interaction and multiple entities that are possible inputs from your customers.

* **Literal Value Block**: Each block consist of pairs of one Literal Value and single or multiple Entities.
  * **Literal Value**: Functions similarly to a key.
  * **Entity**: Corresponds to the value. The difference from the Regex Entity Type is that the latter uses regular expressions for the entity value, while the Literal Entity Type simply uses a string.

<figure><img src="https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FjGPc8WFEV2mtFHmcsSV7%2FLiteral%20Entity%20Type.png?alt=media&#x26;token=273df6be-f790-48cb-b03e-bf25b6e42082" alt=""><figcaption><p>Literal Entity Type</p></figcaption></figure>

### **Lemmatize**

“Lemmatize” feature makes listing-up the entity value easier. When you don’t activate “lemmatize” feature, if you take the entity value “knife”, AI don’t identify “knives” with the entity value, “knife”. Because the literal form of “knife” and “knives” is not same. But when you activate it, “knife” is enough to cover “knife” and “knives”.

{% tabs %}
{% tab title="What is "Lemmatization"?" %}
When a word is used in sentences, the word can be presented in various forms. For example, the verb *to go* can be present as *goes* in *she goes to school every day* and as *went* in *she went to school yesterday*, and as *going* in *she is going to school now*. But as we know, the basic form of them which is used as a dictionary headword is *go*. The basic form of a word like *go* is called **lemma**. And **lemmatization** means making the various forms into a lemma of the word.

Please refer the examples below.

<table><thead><tr><th width="144"> </th><th width="146">Lemma</th><th>Variation</th></tr></thead><tbody><tr><td>Noun</td><td>candle</td><td>candle, candles</td></tr><tr><td>Verb</td><td>go</td><td>go, goes, went, gone, going</td></tr><tr><td>Adjective</td><td>clear </td><td>clear, clearer, clearest</td></tr></tbody></table>
{% endtab %}

{% tab title="How to activate “Lemmatize” feature" %}

<figure><img src="https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FluwhUz4q9xmmQTnTNTtX%2Fimage.png?alt=media&#x26;token=744ff1cc-ccab-4393-943e-5695c3c6d177" alt=""><figcaption></figcaption></figure>

**Add Entity Types**

1. Click **Add Entity Type**.
2. Select the composition as Literal.
3. Enter Entity Type name and description.
4. Click **Lemmatize** checkbox.
5. Enter values for Literal Value Block.
6. Click **Add**.\\

<figure><img src="https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FwL52Ab6g2WRoZQiw7YN8%2FEdit%20Literal%20Entity%20Type.png?alt=media&#x26;token=a536682c-ef55-4fce-9f5e-45801e5f2169" alt=""><figcaption></figcaption></figure>

**Edit Entity Types**

1. Click the view more menu of the Entity Type.
2. Click **Edit**.
3. Click **Lemmatize** checkbox.
4. Click **Save**.
   {% endtab %}
   {% endtabs %}

### Case Sensitive

There's a "Case Sensitive" feature that can be turned on or off. When it's on, exact matches between an input and a predefined entity value are required for recognition. This exact match doesn't just concern the sequence of letters but also their specific case (uppercase or lowercase). So, for example, "apple" and "Apple" would be considered different when this feature is active.

{% tabs %}
{% tab title="How to activate "Case Sensitive" feature" %}

<figure><img src="https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2Fi3g8CNnAz7sEnMld7pSW%2FUntitled.png?alt=media&#x26;token=c9d5d1f1-072f-48d6-b3f4-0077fb2c9ac2" alt=""><figcaption></figcaption></figure>

**Add Entity Types**

1. Click **Add Entity Type**.
2. Select the composition as Literal.
3. Enter Entity Type name and description.
4. Click **Case Sensitive** checkbox.
5. Enter values for Literal Value Block.
6. Click **Add**.

<figure><img src="https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FfWnr8qwTZoSfZwHXCLNQ%2FUntitled%20(1).png?alt=media&#x26;token=b2ab3a99-62ff-42e4-9b1a-254cb93e66a5" alt=""><figcaption></figcaption></figure>

**Edit Entity Types**

1. Click the view more menu of the Entity Type.
2. Click **Edit**
3. Click **Case Sensitive** checkbox.
4. Click **Save**.
   {% endtab %}
   {% endtabs %}

### Add entity types

{% embed url="<https://mind-expression.s3.ap-northeast-2.amazonaws.com/dev/static/docs/media/how-to-guides/03-add_literal_entity_type.mp4>" %}

1. Click **Add Entity Type**.
2. Select the composition as Literal.
3. Enter entity type name and description.
4. Enter values for Literal Value Block.
5. Click **Add**.

### Edit entity types

![](https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FnxvahvvEfTCRyTR8VKiO%2FScreen%20Shot%202022-05-25%20at%202.20.39%20PM.png?alt=media\&token=dc4e9f31-9bee-49d3-b6e2-f0401d3276c7)

1. Open the view more menu of the entity type.
2. Click **Edit**.
3. Edit and click **Save**.

### Delete entity types

1. Open the view more menu of the entity type.
2. Click **Delete**.

### Edit Literal Value Blocks

![](https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FADxL66NvVQM6VFKKq6WC%2FScreen%20Shot%202022-05-25%20at%202.37.45%20PM.png?alt=media\&token=63d861c7-70e4-4ac7-a602-dd7f6b9ff558)

1. Open the view more menu of the block.
2. Click **Edit**.
3. Edit and click **Save**.

### Delete Literal Value Blocks

1. Open the view more menu of the block.
2. Click **Delete**.

## Regex Entity Type

A regex entity type holds Regex Pattern Blocks which consist of a Regular Expression search pattern and its description.

### Add entity types

{% embed url="<https://mind-expression.s3.ap-northeast-2.amazonaws.com/dev/static/docs/media/how-to-guides/03-add_regex_entity_type.mp4>" %}

1. Click **Add Entity Type**.
2. Select the composition as Regex.
3. Enter entity type name and description.
4. Enter Regex Pattern Block values.
5. Click **Add**.

### Edit entity types

![](https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FoBOlVwNB4O217zv0CEx8%2FScreen%20Shot%202022-05-25%20at%202.32.37%20PM.png?alt=media\&token=2ef6f3be-9364-4610-a605-8ff00b1294d4)

1. Open the view more menu of the entity type.
2. Click **Edit**.
3. Edit and click **Save**.

### Delete entity types

1. Open the view more menu of the entity type.
2. Click **Delete**.

### Edit Regex Pattern Blocks

![](https://2637928320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FURCBQu4HpZN9zQ9SbOR9%2FScreen%20Shot%202022-05-25%20at%202.34.54%20PM.png?alt=media\&token=c03aa22b-0cd1-48be-83f4-c29d9033f711)

1. Open the view more menu of the block.
2. Click **Edit**.
3. Edit and click **Save**.

### Delete Regex Pattern Blocks

1. Open the view more menu of the block.
2. Click **Delete**.

## System Entity Extension

You can view system entities that are eligible for extension in the System (Extensible) tab. You can extend the entity types by adding blocks or extending entities.

### Add Blocks to Entity Type

{% embed url="<https://mind-expression.s3.ap-northeast-2.amazonaws.com/dev/static/docs/media/how-to-guides/03-add_literal_value_block.mp4>" %}

1. Choose an entity type to extend from the list.
2. Click **Add Literal Value Block** (for literal entity type) or Add **Regex Pattern Block** (for regex entity type).
3. Enter values for the block.
4. Click **Add**.

### Extend Entities (Literal Entity Type)

Extending entities is only eligible for literal entity types.

{% embed url="<https://mind-expression.s3.ap-northeast-2.amazonaws.com/dev/static/docs/media/how-to-guides/03-extend_entities.mp4>" %}

1. Choose an entity type to extend from the list.
2. Click **Extend Entity** from the block to extend.
3. Enter entities.
4. Click **Extend**.

### Edit Entity Extensions

{% embed url="<https://mind-expression.s3.ap-northeast-2.amazonaws.com/dev/static/docs/media/how-to-guides/03-edit_entity_extension.mp4>" %}

1. Open the view more menu of the entity extension.
2. Click **Edit**.
3. Edit and click **Save**.
