The TEXTMINE Procedure

PROC TEXTMINE Statement

  • PROC TEXTMINE DATA=CAS-libref.data-table <options>;

The PROC TEXTMINE statement invokes the procedure. Table 1 summarizes the options in the statement by function. The options are then described fully in alphabetical order.

Table 1: PROC TEXTMINE Statement Options

option Description
Basic Options
DATA | DOC= Specifies the input document data table
LANGUAGE= Specifies the language that the input data table of documents uses
NEWVARNAMES Specifies that the new-style variable names should be used on tables
Multithreading Options
NTHREADS= Specifies number of threads


You must specify the following option:

DATA=CAS-libref.data-table

names the input data table for PROC TEXTMINE to use. The default is the most recently created data table. CAS-libref.data-table is a two-level name, where

CAS-libref

refers to a collection of information that is defined in the LIBNAME statement and includes the caslib, which includes a path to the data, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about CAS-libref, see the section Using CAS Sessions and CAS Engine Librefs.

data-table

specifies the name of the input data table.

Each row of the input data table must contain one text variable and one ID variable that correspond to the text and the unique ID of a document, respectively.

When you specify the SVD statement but not the PARSE statement, PROC TEXTMINE runs in SVD-only mode. In this mode, the DATA= option names the input SAS data table that contains the term-by-document matrix that is generated by the OUTPARENT= option in the PARSE statement.

You can also specify the following options:

LANGUAGE=language

names the language that is used by the documents in the input SAS data table. Languages supported in the current release are Arabic, Chinese, Croatian, Czech, Danish, Dutch, English, Farsi, Finnish, French, German, Greek, Hebrew, Hungarian, Indonesian, Italian, Japanese, Kazakh, Korean, Norwegian, Polish, Portuguese, Russian, Slovak, Slovene, Spanish, Swedish, Thai, Turkish and Vietnamese. By default, LANGUAGE=ENGLISH.

NEWVARNAMES

adds leading and trailing blanks to variable names in the input and output tables.

NTHREADS=nthreads

specifies the number of threads to be used. By default, the number of threads is the same as the number of CPUs on the CAS server.

Last updated: November 11, 2020