Sentence Similarity
sentence-transformers
Safetensors
Transformers
Indonesian
bert
feature-extraction
text-embeddings-inference
Instructions to use LazarusNLP/sct-indobert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use LazarusNLP/sct-indobert-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LazarusNLP/sct-indobert-base") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use LazarusNLP/sct-indobert-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("LazarusNLP/sct-indobert-base") model = AutoModel.from_pretrained("LazarusNLP/sct-indobert-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from LazarusNLP/sct-indobert-base: direct link, hf CLI and curl.
- Browser
- Download file 53 Bytes
-
https://huggingface.co/LazarusNLP/sct-indobert-base/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://LazarusNLP/sct-indobert-base/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/LazarusNLP/sct-indobert-base/resolve/main/sentence_bert_config.json
53 Bytes
| { | |
| "max_seq_length": 128, | |
| "do_lower_case": false | |
| } |