<!-- Source: https://docs.squirro.com/en/latest/technical/kee/how-studio.html -->
# KEE Studio Plugin Tutorial

This tutorial takes you through the steps that are required for creating a Known Entity Extraction ([KEE](../../a-z/squirro-glossary.md#term-KEE)) using the studio plugin in the UI. We assume that you are familiar with loading data into a Squirro project.

The company names in the NASDAQ company list is our structured data (known entities) that we want to match (extract) in unstructured news data. You can use the provided sample items  from the [New York Times Business RSS feed](https://www.nytimes.com/rss) or load any other (news) items on which you want to apply the KEE.

Download:

- [`NASDAQ company list`](../../_downloads/bde9ae28db8a26e36e678b64e5d56d9a/nasdaq_companylist.xlsx)
- [`sample items`](../../_downloads/6a7ff966ecf51574b5f487c6ba34202a/NYT-sample-items-business-rss.json)

## Loading Data

If you have not already setup a Squirro project, it is now a good time to do so and load the data. You can, for example, use the _JSON_ data loader plugin to load the provided sample data. Navigate to the _DATA_ tab in the Squirro _Setup_ space, click the plus icon and select the _JSON_ plugin under _Data Import_. Upload the file and follow the steps in the data loader plugin.

## Define KEE

In the Squirro _Setup_ space select the _Data_ tab and click on _Known Entity Extraction_. Add a new KEE by clicking the plus icon in the to right corner.

A form where you can specify the configuration appears:

[![](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/definition_kee_studio_plugin-tutorial.png)](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/definition_kee_studio_plugin-tutorial.png)

Enter the following data as a new Known Entity Extraction configuration:

| Configuration | Value |
| --- | --- |
| Name | NASDAQ KEE |
| KEE data | Upload the file `nasdaq_companylist.xlsx` |
| ID field | Symbol |
| Matching fields | Name |
| Keywords to assign | industry Name -> company Sector -> sector |
| Minimum score for matches | 0.8 |
| Enable fuzzy matching | No |
| Enable company suffix list | Yes |
| Enable ngram database | Yes |
|  |  |

Click the _SAVE_ button. A new enrichment (pipelet) named _NASDAQ KEE_ has been created and you can now add it to the pipeline.

## Add KEE to the Pipeline

Navigate to the _PIPELINE_ tab and edit the pipeline in which you want to add the KEE step. You can easily find the _NASDAQ KEE_ step by searching it in the [pipeline editor](../data-processing/pipeline-editor.md#data-processing-pipeline-editor). Drag the _NASDAQ KEE_ to the _Relate_ field of the pipeline:

[![](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/pipeline_kee_studio_plugin-tutorial.png)](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/pipeline_kee_studio_plugin-tutorial.png)

Save the pipeline. Now the KEE step is part of the pipeline and is applied to any newly indexed item that runs through this pipeline. If you want to apply the KEE step to existing items in the index, you have to rerun the KEE step for those items.

## Rerun

In the [pipeline editor](../data-processing/pipeline-editor.md#data-processing-pipeline-editor), edit the pipeline containing the KEE step. Hover over the KEE step, click the menu icon (three dots) and select Rerun from the dropdown menu. Check the Run linked steps option and click Rerun. See [Pipeline Reruns](../data-processing/pipeline-rerun.md#data-processing-pipeline-rerun) for information on rerunning an individual pipeline step.

[![](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/rerun_kee_studio_plugin-tutorial.png)](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/rerun_kee_studio_plugin-tutorial.png)

## Inspect the Keywords

You can check the keywords tagged with KEE on the _EXPLORE_ tab and searching for `company:*`:

[![](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/check-items_kee_studio_plugin-tutorial.png)](https://s3.amazonaws.com/download.squirro.net/docs/technical/tutorials/imgs_kee_studio_plugin-tutorial/check-items_kee_studio_plugin-tutorial.png)
