In this set of tasks, you will create
a new data set that contains all the observations from both the Mylib.Vaerextsyns
and Mylib.Vaer_abbrev data sets. You will examine the results by using
the merged synonym data set. Complete the following steps:
-
Select the
Utility tab
on the node toolbar and drag a
SAS Code node
into the diagram workspace.
-
Right-click the
SAS
Code node, and select
Rename.
-
Enter
SAS
Code — Merge SL in the
Node
Name field, and then click
OK.
SL stands
for
Synonym Lists.
-
Connect the
SAS
Code — %TEXTSYN node to the
SAS Code
— Merge SL node.
-
Select the
SAS
Code — Merge SL node.
-
Click the
for the
Code Editor property.
-
Enter the following
code in the
Code Editor:
data mylib.vaerextsyns_new;
set mylib.vaerextsyns mylib.vaer_abbrev;
run;
This code merges the
resulting synonyms data set from the first
SAS Code —
%TEXTSYN node with the abbreviations data set.
-
Click
.
-
Close the
Code
Editor window.
-
Right-click the
SAS
Code — Merge SL node, and select
Run.
Click
Yes in the
Confirmation dialog
box.
-
Click
Results in
the
Run Status dialog box when the node has
finished running.
-
From the
Results window,
select
View SAS Results Log to see the SAS code where
the new data set is created.
Close the
Results window.
-
Right-click the
Text
Parsing — Symptom Text node, and then select
Copy.
Note: It is important to copy the
Text
Parsing — Symptom Text node instead of creating
a new Text Miner node. You do this in order to keep the same property
settings you previously configured for the
Text Parsing
— Symptom Text node.
-
Right-click an empty
space in the diagram workspace and select
Paste.
-
Right-click the new
Text
Parsing node, and select
Rename.
-
Enter
Text
Parsing — CST in the
Node Name field.
CST stands
for
Cleaned Symptom Text.
-
-
Right-click the
Text
Filter — Symptom Text node, and then select
Copy.
-
Right-click an empty
space in the diagram workspace and select
Paste.
-
Right-click the new
Text
Filter node, and select
Rename.
-
Enter
Text
Filter — CST in the
Node Name field.
-
-
Connect the
Data
Partition node to the
Text Parsing —
CST node.
-
Connect the
Text
Parsing — CST node to the
Text Filter
— CST node.
-
Select the
Text
Parsing — CST node.
-
Click the
for the
Synonyms property.
-
-
Click
Mylib in
the SAS Libraries tree.
The contents of the
Mylib library appear.
-
Select
Mylib.Vaerextsyns_new.
-
The contents of the
data set appear in the dialog box.
-
-
Right-click the
Text
Filter — CST node, and select
Run.
Click
Yes in the
Confirmation dialog
box.
-
Click
OK in
the
Run Status dialog box when the node has
finished running.
-
Select the
Text
Filter — CST node.
-
Click the
for the
Filter Viewer property.
The
Interactive
Filter Viewer window appears.
-
Select the plus sign
(+) next to
patient in the
Terms table.
Note that the misspellings
patien,
patietn,
and
paitent are included as child terms.
-
Close the
Interactive
Filter Viewer.