Extract Noun Phrases Using Term Extraction Transformation in SSIS

In this article, We are going to show you how to Extract Noun Phrases Using Term Extraction Transformation in SSIS with example. Before reading this article, Please refer to Term Extraction in SSIS article for the definition, properties, and functionality of this Transformation.

Below screenshot shows our source data

Extract Noun Phrases Using Term Extraction Transformation in SSIS source

Extract Noun Phrases Using Term Extraction Transformation in SSIS

STEP 1: Open BIDS and Drag and drop the data flow task from the toolbox to control flow. And rename it as Extracting Noun Phrases Using Term Extraction Transformation in SSIS.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 1

Double click on it, and it will open the data flow tab.

STEP 2: Drag and drop OLE DB Source, Term Extraction Transformation, and OLE DB Destination from the toolbox to data flow region

Extract Noun Phrases Using Term Extraction Transformation in SSIS 2

STEP 3: Double click on OLE DB source in the data flow region will open the connection manager settings and provides space to write our SQL statement.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 3

Here we selected the [SSIS Tutorials] Database as our source database, and the SQL Command we used in the above screenshot is:

USE [SSIS Tutorials]
GO

SELECT [Player Information]
FROM [Term Extraction Transformation Source]

STEP 4: Click on the columns tab to verify the columns or uncheck the unwanted columns.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 4

Drag the OLE DB source output arrow on to the Term Extraction Transformation to transform the source Data.

SSIS Extract Noun Phrases

STEP 5: Double click on the Term Extraction Transformation opens the Editor to configure it. Within the Term Extraction tab, choose the column you want to use for the Term Extraction from the available input columns. We left the output column names to default Term and Score.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 5

Exclusion Tab: If you want to omit specific terms while term extraction, configure this Tab by naming a column that holds exclusion terms.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 6

In this example let us leave this because we want to extract all the Noun Phrases from the SSIS source data.

STEP 6: Advanced tab of the Term Extraction Transformation is vital to select Term Type, Source Type, and Frequency Threshold. In this example, we are extracting Noun Phrases only. So, we selected Noun Phrases as term type and selecting the Frequency Threshold as 1. Please refer Extract Nouns Using Term Extraction Transformation in SSIS article to understand, How to Extract Nouns from the Source Data.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 7

From the below screenshot, there is a warning sign on the Term Extraction Transformation. It is stating that error output is not connected. You can eliminate the warning symbol by configuring the error output. So double-click on the Configure Error Output button will open a new window to set the error output.

The default configuration of a Term Extraction Transformation is to redirect error rows. You can get rid of this warning by connecting the error output or by altering the default mode to Ignore Failure or Fail Component. Let’s change to Ignore Failure

Extract Noun Phrases Using Term Extraction Transformation in SSIS 8

Click ok to finish configuring the Term Extraction Transformation.

STEP 7: Next, provide the Server, database, and table details of the target. So double-click on the OLE DB Destination and provide the required information.

Extract Noun Phrases Using Term Extraction Transformation in SSIS 9

Here we selected [SSIS Tutorials] database as destination data source (localhost as server instance) and [Extracting Noun Phrases using Term Extraction] table as our destination table

STEP 8: Click on the Mappings tab to verify whether the source columns mapped to the target columns. If not, please assign them to the proper destination column

Extract Noun Phrases Using Term Extraction Transformation in SSIS 10

Click ok to finish designing our SSIS Extracting Noun Phrases using Term Extraction Transformation package. Let us run the package

Extract Noun Phrases Using Term Extraction Transformation in SSIS 11

Let’s open the SQL Server Management Studio and check the results

Extract Noun Phrases Using Term Extraction Transformation in SSIS 12