/wordcloud-cli

Simple command line to generate wordcloud images from a CSV file, Parquet file or raw text.

Primary LanguagePythonMIT LicenseMIT

wordcloud-cli

Generate wordcloud images from a data file: raw text, CSV or Parquet.

Examples

Reading from a Parquet file:

  • Countries trading with New Zealand
pipenv run python main.py examples\NZ_trade.parquet   country_code     images\mask.small.png

NZ trade countries

... adding a mask: NZ trade countries with mask

Reading from a CSV file:

pipenv run python main.py examples\NZ_trade.csv   country_codez     images\mask.small.png

NZ trade countries - CSV

... adding a mask: NZ trade countries - CSV with mask

Reading from a raw text file:

pipenv run python main.py examples\king_lear.txt   word     images\mask.small.png

King Lear - raw text

... adding a mask: King Lear - raw text with mask

Setup

Python: 3.11.8+

pipenv install

Usage

pipenv run python main.py <path to data file> <word column name> <path to mask.png>

References