krank.liwc.fetch_cariola2010#
- krank.liwc.fetch_cariola2010(version=None, load=True, target_dic=None, **kwargs)#
Fetch (download) the Cariola 2010 dataset and preprocess it for LIWC analysis. This dataset comes from the Extracts curated collection of datasets. All Extracts datasets are available from the Extracts Zenodo Community and easy access is provided via the
krank.extractsmodule.This dataset includes the following
LIWC2007categories:posemo,negemo`, and ``causeapplied to dream reports.See Cariola 2010 for more details. See Zenodo Community Site for the tables. LIWC dictionary used:
LIWC2007Original language:EnglishLIWC dictionary:
LIWC2007Category: Dreams
Probe: A recent dream report
Parameters#
- datasetstr
Name of dataset (i.e., lexicon). Refer to the
lexiconsdocumentation for a list of all available datasets.- versionstr or None
Name of version. If
None(default), fetches the latest version. Refer to thelexiconsdocumentation for a list of all available versions within each dataset.- loadbool or callable
If
False(default), fetch the file and return the local filepath. IfTrue, fetch the file and load it as apandas.DataFrame. If a callable, fetch the file an load it with the custom callable.- target_dicstr or None
If
None(default), LIWC categories remain in their original format. If notNone, LIWC categories are converted from the source dictionary (whatever was used in the original study) to the specifiedtarget_dic. Iftarget_dicis the same as the source dictionary, no action is taken. If notNone, must be one ofLIWC1999,LIWC2001,LIWC2007,LIWC2015, orLIWC-22.Warning
This feature is experimental.
Categories change between versions of LIWC, and so these are far from comparable. Some categories will not be present in both source and target dictionaries, and thus removed from the returned dataframe. Other categories might have close-but-imperfect fits or might have changed drastically between LIWC versions. In this case, the conversions are still provided, so be careful with interpretations. A useful resource if wanting to use scores pooled across LIWC versions would be the LIWC manuals, where comparisons between LIWC versions are described in detail and analyses comparing output across LIWC versions are presented.
- **kwargsdict, optional
Additional keyword arguments are passed to
pooch.retrieve().
Returns#
- str or
DataFrame Path of retrieved file if
loadis False, orpandas.DataFrameifloadis True.