Skip to content

Commit bcb3ca2

Browse files
authored
Correct TopicMapper doc example (#1637)
1 parent c7de0bc commit bcb3ca2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bertopic/_bertopic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4030,7 +4030,7 @@ def get_mappings(self, original_topics: bool = True) -> Mapping[int, int]:
40304030
40314031
To get mappings, simply call:
40324032
```python
4033-
mapper = TopicMapper(hdbscan_model)
4033+
mapper = TopicMapper(topics)
40344034
mappings = mapper.get_mappings(original_topics=False)
40354035
```
40364036
"""

0 commit comments

Comments
 (0)