Instructions to use lambdaofgod/document_nbow_embedder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use lambdaofgod/document_nbow_embedder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("lambdaofgod/document_nbow_embedder") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download 0_WordEmbeddings/wordembedding_config.json from lambdaofgod/document_nbow_embedder: direct link, hf CLI and curl.
- Browser
- Download file 136 Bytes
-
https://huggingface.co/lambdaofgod/document_nbow_embedder/resolve/main/0_WordEmbeddings/wordembedding_config.json
- Command line
-
hf download hf://lambdaofgod/document_nbow_embedder/0_WordEmbeddings/wordembedding_config.json
-
curl -L -o wordembedding_config.json https://huggingface.co/lambdaofgod/document_nbow_embedder/resolve/main/0_WordEmbeddings/wordembedding_config.json
136 Bytes
| { | |
| "tokenizer_class": "mlutil.sentence_transformers_utils.CustomTokenizer", | |
| "update_embeddings": false, | |
| "max_seq_length": 1000000 | |
| } |