SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
Expand all | Collapse all

Using the extension bundle Stats Text Analysis

  • 1.  Using the extension bundle Stats Text Analysis

    Posted Mon September 16, 2024 10:03 AM

    I installed the stats text analysis extension on my computer but don't see it show up in the menu. What do I need to do to get to use it? #SPSSStatistics



    ------------------------------
    Ratna Wynn
    ------------------------------


  • 2.  RE: Using the extension bundle Stats Text Analysis

    Posted Wed September 18, 2024 09:28 AM
    After you install it, you should see it under Analyze > Descriptive Statistics as Text Analysis. If you type "text analysis" or part of that in the search box on the toolbar, you should see it appear.

    This is assuming that you chose to install it, not just to download it.

    --





  • 3.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 04:11 PM

    Thanks! I forgot to click the box. It's downloaded but when I run it I get this error. 



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 4.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 04:17 PM
    Are you sure that you are using the latest version of TEXT ANALYSIS?  I updated that recently to include the punkt_tab data module, which just became a requirement of the nltk library due to some changes in that library.

    You can go to the Extensions > Extension Hub menu and search for TEXT ANALYSIS with the Update available box checked.  The latest version on the EH is 1.5.1

    --





  • 5.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 06:38 PM

    Yes, it seems like that is what I have installed. 



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 6.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 06:34 PM
    As a check, run this code from a syntax window.
    begin program.
    import nltk
    print(nltk.__version__)
    end program.

    You should see 
    3.9.1 as the version output.


    --





  • 7.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 06:42 PM

    I tried this. I get this error. 



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 8.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 06:46 PM
    That error is because you are not running the whole program.  Select everything from begin program through end program and do Run > Selection.

    You might also have to restart Statistics if that code had been loaded before.

    --





  • 9.  RE: Using the extension bundle Stats Text Analysis

    Posted Sun September 22, 2024 10:54 PM

    Thanks! I ran it with begin program included and that worked. But still getting an error. 



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 10.  RE: Using the extension bundle Stats Text Analysis

    Posted Tue September 24, 2024 01:40 PM
    I found that under some circumstances, that missing module is not downloaded for STATS TEXTANALYSIS.  The fixed spe file is here
    so please install that one.  The update will get to the Extension Hub soon.

    --





  • 11.  RE: Using the extension bundle Stats Text Analysis

    Posted Sat September 28, 2024 03:30 PM

    Thank you so much, Jon. I was able to download this extension and it ran successfully. Is there any literature on how to interpret the compound scores?



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 12.  RE: Using the extension bundle Stats Text Analysis

    Posted Sat September 28, 2024 05:31 PM
    The article
    Analyzing Survey Text.pdf, which is installed with the extension into the STATS TEXTANALYSIS subdirectory under the location where extensions are installed, which you can find by running SHOW EXT in an SPSS syntax window., has a discussion of sentiment scores.

    Also, this is frome the dialog box help.

    Sentiment Analysis This scores the degree of positive or negative sentiment in the text. For each case, it produces one to four score variables. The possible measures are negative, neutral, positive, and compound. Compound combines these scores into an overall sentiment where positive values indicate a positive sentiment and negative values the opposite. Unrecognized words are considered neutral.

    • See
    Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.
    for details on the VADER scores.

    The language can be specified as English or German. If German, a German version of the VADER module is used. It is due to Karsten Michael Tymann, Matthias Lutz, Patrick Palsbr¨oker, and Carsten Gips. The language setting only applies to sentiment analysis. None of the supplementary settings for sentiment weights, negation and emphasis on the Utilities tab apply to German. It has its own settings.


    --