MaartenGr / MaartenGr/BERTopic

How to create layers for DataMapPlot

Open
#1,891 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

Hi Maarten,

I've been following the new datamapplot addition which looks awesome. One of the great things about the interactive version is the ability to use layers that change as you zoom. While I don't think the interactive version has been implemented yet, the concept of layers may also be useful for static plots that have too many topics to visualise.

I'm wondering if BERTopic's `hierarchical_topics` function I can be used to create 1 or multiple layers at different levels of granularity to help with datamapplot? Is there a way that this could be done?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing BERTopic's hierarchical_topics function and the proposed DataMapPlot static and interactive layer concept. Determine whether hierarchical topic levels can provide the granularity needed for one or more plot layers. Done would require a defined implementation approach or API, since the issue does not identify files, tests, or a concrete change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.