Text Wordclouds
Use this sub-skill when the user asks about AutoViz behavior for string columns, discrete text columns, NLP variables, wordcloud plots, text cleanup, emoji handling, stopwords, or NLTK downloads.
Use this when
- The prompt names
wordcloud, AutoViz_NLP, draw_word_clouds, nltk, textblob, emoji, stopwords, contractions, or text cleanup.
- AutoViz detects string variables and attempts to generate wordclouds.
- The user needs to understand why a text column did or did not get a wordcloud.
- The user is debugging missing NLTK data, missing
wordcloud, or text preprocessing side effects.
- The user wants to know how AutoViz distinguishes categorical strings from NLP-style strings.
Core flow
- Start from the DataFrame and identify candidate string columns.
- Let AutoViz classify variables first; only discrete/NLP string variables reach the wordcloud branch.
- For each selected string column, AutoViz cleans text and calls wordcloud generation.
- If a target column is present and the problem type is classification, wordclouds may be drawn per target class.
- Use static chart formats for deterministic automated runs; interactive behavior is covered by the EDA sub-skill.
- When the user only needs text preprocessing, explain the cleanup helpers without forcing a full AutoViz run.
Read these references
Use these scripts
- Run
scripts/wordcloud_smoke.py to verify that the wordcloud package and AutoViz text helper path can run on a safe in-memory DataFrame.
- If the text branch is failing inside a larger EDA run, use the EDA smoke script first and then return here.
Important behavior
- AutoViz may call
nltk.download('popular') when discrete string variables are present.
- Short or low-cardinality strings may be classified as categorical/boolean rather than NLP.
- Very high-cardinality or long free-text columns are more likely to trigger wordcloud behavior.
draw_word_clouds depends on matplotlib plus the wordcloud package.
- The text helpers also perform cleanup such as URL, HTML, emoji, contraction, and punctuation handling.
Common text helpers
clean_steps
clean_text
remove_URL
remove_html
remove_emoji
expandContractions
remove_stopwords
split_into_lemmas
draw_wordcloud_from_dataframe
Cross-routing
- If the user primarily wants full-table EDA plots, route to
../eda-visualization/SKILL.md.
- If the user asks whether a text column should be cleaned or repaired before modeling, route to
../data-quality-fixes/SKILL.md and return here for visualization-specific text behavior.
- Do not rely on source notebooks or the original checkout; use the bundled references and script.
- If the user needs to know whether NLTK data will be downloaded, mention it explicitly before running the workflow.
Troubleshooting reminders
- If the column never reaches the wordcloud branch, the classifier likely treated it as categorical or boolean.
- If
nltk.download('popular') is a problem, prepare the corpora or choose a static EDA path that does not trigger text plotting.
- If the output is empty or tiny, the text may have been over-cleaned or reduced to stopwords.
- Use a writable
save_plot_dir when saving images so the generated wordcloud is easy to find.
Escalation
If the user really wants a full EDA view of the same dataframe, route back to the EDA sub-skill after handling the text question.
If the data-quality question is about missingness or cleaning rather than visualization, route to the data-quality sub-skill instead of over-focusing on wordclouds.
1---2name: text-wordclouds3description: "Use AutoViz text-column cleaning and wordcloud behavior for4 NLP-style tabular fields."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/text-wordclouds7 disco-role: operating8disable-model-invocation: true9license: Apache 2.010---1112# Text Wordclouds1314Use this sub-skill when the user asks about AutoViz behavior for string columns, discrete text columns, NLP variables, wordcloud plots, text cleanup, emoji handling, stopwords, or NLTK downloads.1516## Use this when1718- The prompt names `wordcloud`, `AutoViz_NLP`, `draw_word_clouds`, `nltk`, `textblob`, `emoji`, stopwords, contractions, or text cleanup.19- AutoViz detects string variables and attempts to generate wordclouds.20- The user needs to understand why a text column did or did not get a wordcloud.21- The user is debugging missing NLTK data, missing `wordcloud`, or text preprocessing side effects.22- The user wants to know how AutoViz distinguishes categorical strings from NLP-style strings.2324## Core flow25261. Start from the DataFrame and identify candidate string columns.272. Let AutoViz classify variables first; only discrete/NLP string variables reach the wordcloud branch.283. For each selected string column, AutoViz cleans text and calls wordcloud generation.294. If a target column is present and the problem type is classification, wordclouds may be drawn per target class.305. Use static chart formats for deterministic automated runs; interactive behavior is covered by the EDA sub-skill.316. When the user only needs text preprocessing, explain the cleanup helpers without forcing a full AutoViz run.3233## Read these references3435- [`references/workflows.md`](references/workflows.md): text-cleaning and wordcloud-generation behavior.36- [`references/troubleshooting.md`](references/troubleshooting.md): NLTK, wordcloud, and string-column classification issues.37- [`../../references/api-reference.md`](../../references/api-reference.md): signatures for text helper functions and `draw_word_clouds`.38- [`../eda-visualization/references/workflows.md`](../eda-visualization/references/workflows.md): how text columns fit into the full AutoViz run.39- [`../../references/install-and-compatibility.md`](../../references/install-and-compatibility.md): package-version checks if the text branch breaks at import time.4041## Use these scripts4243- Run [`scripts/wordcloud_smoke.py`](scripts/wordcloud_smoke.py) to verify that the `wordcloud` package and AutoViz text helper path can run on a safe in-memory DataFrame.44- If the text branch is failing inside a larger EDA run, use the EDA smoke script first and then return here.4546## Important behavior4748- AutoViz may call `nltk.download('popular')` when discrete string variables are present.49- Short or low-cardinality strings may be classified as categorical/boolean rather than NLP.50- Very high-cardinality or long free-text columns are more likely to trigger wordcloud behavior.51- `draw_word_clouds` depends on matplotlib plus the `wordcloud` package.52- The text helpers also perform cleanup such as URL, HTML, emoji, contraction, and punctuation handling.5354## Common text helpers5556- `clean_steps`57- `clean_text`58- `remove_URL`59- `remove_html`60- `remove_emoji`61- `expandContractions`62- `remove_stopwords`63- `split_into_lemmas`64- `draw_wordcloud_from_dataframe`6566## Cross-routing6768- If the user primarily wants full-table EDA plots, route to [`../eda-visualization/SKILL.md`](../eda-visualization/SKILL.md).69- If the user asks whether a text column should be cleaned or repaired before modeling, route to [`../data-quality-fixes/SKILL.md`](../data-quality-fixes/SKILL.md) and return here for visualization-specific text behavior.70- Do not rely on source notebooks or the original checkout; use the bundled references and script.71- If the user needs to know whether NLTK data will be downloaded, mention it explicitly before running the workflow.7273## Troubleshooting reminders7475- If the column never reaches the wordcloud branch, the classifier likely treated it as categorical or boolean.76- If `nltk.download('popular')` is a problem, prepare the corpora or choose a static EDA path that does not trigger text plotting.77- If the output is empty or tiny, the text may have been over-cleaned or reduced to stopwords.78- Use a writable `save_plot_dir` when saving images so the generated wordcloud is easy to find.7980## Escalation8182If the user really wants a full EDA view of the same dataframe, route back to the EDA sub-skill after handling the text question.83If the data-quality question is about missingness or cleaning rather than visualization, route to the data-quality sub-skill instead of over-focusing on wordclouds.