AyoubChLin / bertopic_cnn_news

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: April 05 2023

Introduction of bertopic_cnn_news

Model Details of bertopic_cnn_news

BERTopic Model for CNN News Articles

This model is a BERTopic model fine-tuned on CNN news articles. It uses the sentence transformer model "all-MiniLM-L6-v2" to encode the sentences and UMAP for dimensionality reduction.

Usage

First, install the required packages:

pip install sentence_transformers umap-learn bertopic

Then, load the model and encode your documents:

```python
from sentence_transformers import SentenceTransformer
from umap import UMAP
from bertopic import BERTopic

# Load the sentence transformer model
sentence_model = SentenceTransformer("all-MiniLM-L6-v2")

# Set the random state in the UMAP model to prevent stochastic behavior 
umap_model = UMAP(n_neighbors=15, n_components=5,  min_dist=0.0, metric='cosine', random_state=42)

# Load the BERTopic model
my_model = BERTopic.load("from/path/model.bin")

# Encode your documents
document_embeddings = sentence_model.encode(documents)

predict :


sentences = "my sentence"

embeddings = sentence_model.encode([sentences])

topic , _ =my_model.transform([sentences],embeddings)

For more information on how to use the BERTopic model, see the (BERTopic documentation)[ https://maartengr.github.io/BERTopic/index.html] .

Runs of AyoubChLin bertopic_cnn_news on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About bertopic_cnn_news huggingface.co Model

More bertopic_cnn_news license Visit here:

https://choosealicense.com/licenses/apache-2.0

bertopic_cnn_news huggingface.co

bertopic_cnn_news huggingface.co is an AI model on huggingface.co that provides bertopic_cnn_news's model effect (), which can be used instantly with this AyoubChLin bertopic_cnn_news model. huggingface.co supports a free trial of the bertopic_cnn_news model, and also provides paid use of the bertopic_cnn_news. Support call bertopic_cnn_news model through api, including Node.js, Python, http.

bertopic_cnn_news huggingface.co Url

https://huggingface.co/AyoubChLin/bertopic_cnn_news

AyoubChLin bertopic_cnn_news online free

bertopic_cnn_news huggingface.co is an online trial and call api platform, which integrates bertopic_cnn_news's modeling effects, including api services, and provides a free online trial of bertopic_cnn_news, you can try bertopic_cnn_news online for free by clicking the link below.

AyoubChLin bertopic_cnn_news online free url in huggingface.co:

https://huggingface.co/AyoubChLin/bertopic_cnn_news

bertopic_cnn_news install

bertopic_cnn_news is an open source model from GitHub that offers a free installation service, and any user can find bertopic_cnn_news on GitHub to install. At the same time, huggingface.co provides the effect of bertopic_cnn_news install, users can directly use bertopic_cnn_news installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bertopic_cnn_news install url in huggingface.co:

https://huggingface.co/AyoubChLin/bertopic_cnn_news

Url of bertopic_cnn_news

bertopic_cnn_news huggingface.co Url

Provider of bertopic_cnn_news huggingface.co

AyoubChLin
ORGANIZATIONS

Other API from AyoubChLin

huggingface.co

Total runs: 13
Run Growth: 3
Growth Rate: 23.08%
Updated:January 25 2024