This procedure provides tools for working with text variables. It provides frequencies, sentiment analysis, searching, and spelling checks.
- IBM SPSS Statistics 27 or later and the corresponding IBM SPSS Statistics-Integration Plug-in for Python.
- Open IBM SPSS Statistics
- Navigate to Utilities -> Extension Bundles -> Download and Install Extension Bundles
- Search for the name of the extension and click Ok.
- It also requires several Python modules not installed with the procedure and the
SPSSINC TRANS extension command.
See the dialog or syntax help after it is installed.
Analyze →
Descriptive Statistics →
Text Analysis
Example:
STATS TEXTANALYSIS VARIABLES=x OVERWRITE=NO STOPWORDSLANG=english
STEMMERLANG=english
/SPELLING DOSPELLING=NO DICTLANGUAGE=ENGLISH
/FREQUENCIES DOFREQ=YES STEM=NO COUNT=10
/SENTIMENT DOSENT=YES TYPES=NEG COMP SUFFIXES=neg comp
/SEARCH DOSEARCH=NO MODE=ANYWORDS
/ENTITYSEARCH DOESEARCH=NO
/LEXICON DOLEXICON = NO
/WORDSCORES DOSCORES=NO
/SPECIALTERMS DOTERMS=YES
/STEMS DOSTEMS=NO.
- Jon K Peck