Skip to main content

python package to explore the color of language

Project description

comp-syn

comp-syn is a python package which provides a novel methodology to explore relationships between abstract concepts and color. We provide functionalities to create a dataset for word - image associations through Google Cloud and WordNet, as and demonstrate a variety of image and word related analyses. We introduce constructs such as Colorgrams as a tool for analysis, as well as the ability to create color representational vectors for images, and words as aggregations of images. Our work demonstrates a strong relationship between abstract semantic domains and colors, and supports claims for collective cognition and embodied cognition. The package allows you to explore these relationships yourself!

The theoretical frameword is described in:

Douglas Guilbeault , Ethan Nadler, Mark Chu, Ruggiero Lo Sardo, Aabir Abubaker Kar, and Bhargav Srinivasa Desikan. “Color Associations in Abstract Semantic Domains.” Forthcoming in Cognition (2020).

The work arose through a collaboration between the contributors at the Santa Fe Institute’s Complex System Summer School 2019.

Documentation and Examples

The notebooks directory showcases the usage of compsyn, with examples and basic usage.

We currently provide functionality to download and organise image data to be loaded as vector objects, as well as a preliminary analysis using them.

Installation

Run pip install compsyn to download and install from PyPI.

Run python setup.py install for default installation.

Run pip install . to install from source.

Dependencies

  • Python 2.7+, 3.4+

  • numpy, scipy, scikit-learn, matplotlib, PIL

Notes

To use the package one would need to download the JzAzBz array to convert the images to the appropriate vector form. It can be downloaded here (link). We provide sample images downloaded from Google Images to test the functionality.

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

compsyn-0.2.2.tar.gz (18.0 kB view hashes)

Uploaded Source

Built Distribution

compsyn-0.2.2-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page