diff --git a/README.md b/README.md
index e2a96b68..6866dd4d 100644
--- a/README.md
+++ b/README.md
@@ -9,12 +9,12 @@
# BERTopic
-
+
BERTopic is a topic modeling technique that leverages 🤗 transformers and c-TF-IDF to create dense clusters
allowing for easily interpretable topics whilst keeping important words in the topic descriptions.
-BERTopic supports all kinds of topic modeling techniques:
+BERTopic supports all kinds of topic modeling techniques:
| Guided | @@ -46,7 +46,7 @@ BERTopic supports all kinds of topic modeling techniques: Corresponding medium posts can be found [here](https://medium.com/data-science/topic-modeling-with-bert-779f7db187e6?sk=0b5a470c006d1842ad4c8a3057063a99 ), [here](https://medium.com/data-science/using-whisper-and-bertopic-to-model-kurzgesagts-videos-7d8a63139bdf?sk=b1e0fd46f70cb15e8422b4794a81161d ) and [here](https://medium.com/data-science/interactive-topic-modeling-with-bertopic-1ea55e7d73d8?sk=03c2168e9e74b6bda2a1f3ed953427e4 -). For a more detailed overview, you can read the [paper](https://arxiv.org/abs/2203.05794) or see a [brief overview](https://maartengr.github.io/BERTopic/algorithm/algorithm.html). +). For a more detailed overview, you can read the [paper](https://arxiv.org/abs/2203.05794) or see a [brief overview](https://maartengr.github.io/BERTopic/algorithm/algorithm.html). ## Installation @@ -75,8 +75,8 @@ pip install bertopic[vision] For a *light-weight installation* without transformers, UMAP and/or HDBSCAN (for training with Model2Vec or inference), see [this tutorial](https://maartengr.github.io/BERTopic/getting_started/tips_and_tricks/tips_and_tricks.html#lightweight-installation). ## Getting Started -For an in-depth overview of the features of BERTopic -you can check the [**full documentation**](https://maartengr.github.io/BERTopic/) or you can follow along +For an in-depth overview of the features of BERTopic +you can check the [**full documentation**](https://maartengr.github.io/BERTopic/) or you can follow along with one of the examples below: | Name | Link | @@ -99,7 +99,7 @@ We start by extracting topics from the well-known 20 newsgroups dataset containi ```python from bertopic import BERTopic from sklearn.datasets import fetch_20newsgroups - + docs = fetch_20newsgroups(subset='all', remove=('headers', 'footers', 'quotes'))['data'] topic_model = BERTopic() @@ -120,7 +120,7 @@ Topic Count Name ... ``` -The `-1` topic refers to all outlier documents and are typically ignored. Each word in a topic describes the underlying theme of that topic and can be used +The `-1` topic refers to all outlier documents and are typically ignored. Each word in a topic describes the underlying theme of that topic and can be used for interpreting that topic. Next, let's take a look at the most frequent topic that was generated: ```python @@ -136,7 +136,7 @@ for interpreting that topic. Next, let's take a look at the most frequent topic ('software', 0.0034415334250699077), ('email', 0.0034239554442333257), ('pc', 0.003047105930670237)] -``` +``` Using `.get_document_info`, we can also extract information on a document level, such as their corresponding topics, probabilities, whether they are representative documents for a topic, etc.: @@ -151,7 +151,7 @@ Think! It's the SCSI card doing... 49 49_windows_drive_dos_file windows - dr 1) I have an old Jasmine drive... 49 49_windows_drive_dos_file windows - drive - docs... 0.038983 ... ``` -**`🔥 Tip`**: Use `BERTopic(language="multilingual")` to select a model that supports 50+ languages. +**`🔥 Tip`**: Use `BERTopic(language="multilingual")` to select a model that supports 50+ languages. ## Fine-tune Topic Representations @@ -177,18 +177,18 @@ representation_model = OpenAI(client, model="gpt-4o-mini", chat=True) topic_model = BERTopic(representation_model=representation_model) ``` -**`🔥 Tip`**: Instead of iterating over all of these different topic representations, you can model them simultaneously with [multi-aspect topic representations](https://maartengr.github.io/BERTopic/getting_started/multiaspect/multiaspect.html) in BERTopic. +**`🔥 Tip`**: Instead of iterating over all of these different topic representations, you can model them simultaneously with [multi-aspect topic representations](https://maartengr.github.io/BERTopic/getting_started/multiaspect/multiaspect.html) in BERTopic. ## Visualizations -After having trained our BERTopic model, we can iteratively go through hundreds of topics to get a good -understanding of the topics that were extracted. However, that takes quite some time and lacks a global representation. Instead, we can use one of the [many visualization options](https://maartengr.github.io/BERTopic/getting_started/visualization/visualization.html) in BERTopic. -For example, we can visualize the topics that were generated in a way very similar to +After having trained our BERTopic model, we can iteratively go through hundreds of topics to get a good +understanding of the topics that were extracted. However, that takes quite some time and lacks a global representation. Instead, we can use one of the [many visualization options](https://maartengr.github.io/BERTopic/getting_started/visualization/visualization.html) in BERTopic. +For example, we can visualize the topics that were generated in a way very similar to [LDAvis](https://github.com/cpsievert/LDAvis): ```python topic_model.visualize_topics() -``` +```