Gist 751982c1e21147b124a9b6d5fde96a4e
✓ Published0🌍 Public
AArizonaTay
Last edited Dec 29, 2021
Created on Dec 29, 2021
The visualization examines sponsored content in a social media dataset by processing raw captions through a custom pipeline. It uses Python’s `re` module to strip emojis and punctuation, then applies spaCy’s named entity recognition to extract organizations and products into a "Sponsor" list, while also capturing tags via string matching. The code builds a DataFrame with `pandas`, adding a binary "Sponsored" column based on whether either field is non-empty. It highlights the detection of promotional mentions by combining entity-based and rule-based tagging, ultimately displaying cleaned captions alongside the derived sponsorship metadata.
AI-generated description