LIWC Assistant
Project description
liwca
LIWCA is a LIWC assistant. It is not a copy of LIWC (they don't like that), it is just helper functions that I've found useful.
Stuff like:
- Reading and writing dictionary files (
.dic[x]
) - Converting between
.dic
and.dicx
files - Converting between dictionary (
.dic[x]
) and tabular (.[ct]sv
) files - Fetching public dictionary files from remote repositories
- Calling
liwc-22-cli
from Python
Install with pip
pip install liwca
Examples
import liwca
# Download and read a public dictionary
dx = liwca.fetch_dx("sleep")
# Write local dictionary files
liwca.write_dx(dx, "./sleep.dic")
liwca.write_dx(dx, "./sleep.dicx")
# Read local dictionaries
dx = liwca.read_dic("./sleep.dic")
dx = liwca.read_dicx("./sleep.dicx")
dx.to_dicx("./moral-foundations.dicx")
# Load local dictionary
dic = liwca.read_dx("./sleep.dicx")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liwca-0.0.1a1.tar.gz
(10.7 kB
view details)
File details
Details for the file liwca-0.0.1a1.tar.gz
.
File metadata
- Download URL: liwca-0.0.1a1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f0fb41cb3eaca12de6906246d9c8e2d0644261319b7109d25d54bd8982e4b8 |
|
MD5 | e07f8122e3206a25186efeeec82fd701 |
|
BLAKE2b-256 | cecd93f4650a622b7e141ca82c3537cf767f79c4881f43d883a490f0f18f0a7c |