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
from moralizer import *
- moralizer
- read_json(reads in a json file)
- 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
Metadata
Release files for moralizer 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moralizer-0.1.4.tar.gz | 22.5 kB | Without provenance | Details for moralizer-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moralizer-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for moralizer-0.1.4-py3-none-any.whl |
Total release size: 45.9 kB
Release files / moralizer-0.1.4.tar.gz
| Download URL | moralizer-0.1.4.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb301b55cb892241a9e1c61d4571a28e81da4ab88bc8062d62f7284c053d27da
|
|
BLAKE2b-256 checksum How to use checksums |
33dcf64a971fa6f36cd3ea24ac53e75264ce634e2542095de2f014ce36af47b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.4 Darwin/18.6.0
|
Release files / moralizer-0.1.4-py3-none-any.whl
| Download URL | moralizer-0.1.4-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d026f571673b160c1db51491ea8f519eebe2ab1451dff1d2839d4f5c02a84b67
|
|
BLAKE2b-256 checksum How to use checksums |
57df0317b7f92c41dabacbd639d6802e91c7ea2e0eb1bcc0acfad4168bafd7c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.4 Darwin/18.6.0
|
Security for moralizer 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.