> Simple tool to get the Moral Foundations counts of a given text.
Project description
Moralizer
Simple tool to get the Moral Foundations counts of a given text.
Installation
pip install moralizer
SpaCy requires the following add-on.
python -m spacy download en_core_web_sm
Description
Moralizer returns word counts of a text based on the Moral Foundations Vocabulary 2.0 in a neat and organized JSON object or Python dictionary.
Use
Structure
- moralizer
- read_file(input_file)
- moralize(text, output_format=default is Python dictionary, add ".json" for output in JSON).
Dependencies
Moralizer only uses one outside dependency, the delightfully opinionated spaCy.
Under Construction
- Tests
- Documentation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moralizer-0.1.1.tar.gz
(21.9 kB
view hashes)
Built Distribution
moralizer-0.1.1-py3-none-any.whl
(23.3 kB
view hashes)
Close
Hashes for moralizer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a4e3bd5a9bfe3d7713fc5cfdcae82285a52792394f3f47d5e398325749b2ceb |
|
MD5 | a740abfe92b040dda248a36b5ed94081 |
|
BLAKE2b-256 | 66a3ff48391999233803a5fb936cb70e2f4a77d99f88c47bc41bdc270e16201e |