CREA-Vectors
This is a package to access CREA vectors via pycrea. Various data collection methods are also included. Future updates will allow users to add their collected vectors to the main set.
How to run the code
- pip install pycrea in your terminal
- In python import the library
- from crea import CREA
- c = CREA() # Automatically loads main dictionary or
- c = CREA('path_to_file.json') # Load custom json file
- c_cols = CREA(col_names = True) loads feature names
Usage
- all_vectors = c.get_all_vectors()
- vector = c.get_vector('word1')
- vectors = c.get_vectors(['word1', 'word2'])
- vectors_and_cols = c_cols.select_cols(['word1', 'word2'], [feature_1, feature_2])
- similarity = c.cosine_similarity('word1', 'word2')
- n_similar = c.top_n_similar('word1', 5) # defaults to 5
PsychoPy Data Collection
- Results are saved as a JSON file named 'results.json'
- Currently it is overwritten each time
- JSON file has the structure {'target_word': {'Rating Category 1': rating_1, ... 'Rating Category n': rating_n}}
- CREA.get_raw('results.json') gets the new raw data from results.json and adds a new row to raw results.csv
- CREA.calculate_averages('results.csv') calculates the average of results.csv and returns a DataFrame of the averages
Metadata
Release files for pycrea 0.1.3
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 |
|---|---|---|---|---|
| pycrea-0.1.3.tar.gz | 5.2 kB | Without provenance | Details for pycrea-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycrea-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pycrea-0.1.3-py3-none-any.whl |
Total release size: 10.5 kB
Release files / pycrea-0.1.3.tar.gz
| Download URL | pycrea-0.1.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e6ccdd182183f19267e0e25c17afd008c57e91098721f2bca1225025efde30
|
|
BLAKE2b-256 checksum How to use checksums |
2d747e0dd82f14b7bc0a9c86f9aff1240baa07df0d91f4e5faaad046c886823b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / pycrea-0.1.3-py3-none-any.whl
| Download URL | pycrea-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1a67b3c31f2d1245ab9de776cb0d2d01cb3e5bb98ecadffe4f74dc4892d0814
|
|
BLAKE2b-256 checksum How to use checksums |
558123a5e7816a4ba96d0396c445cb8ae313fde3dc145c47e62cf24579a8fcea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for pycrea 0.1.3
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.