firqaaa commited on
Commit
b0961b0
·
1 Parent(s): b5cfe9b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -31,7 +31,7 @@ sentences = ["Ibukota Perancis adalah Paris",
31
  "Pizza adalah makanan khas Italia",
32
  "Saya kuliah di Carneige Mellon University"]
33
 
34
- model = SentenceTransformer('firqaaa/indo-sbert-base')
35
  embeddings = model.encode(sentences)
36
  print(embeddings)
37
  ```
@@ -61,8 +61,8 @@ sentences = ["Ibukota Perancis adalah Paris",
61
 
62
 
63
  # Load model from HuggingFace Hub
64
- tokenizer = AutoTokenizer.from_pretrained('firqaaa/indo-sbert-base')
65
- model = AutoModel.from_pretrained('firqaaa/indo-sbert-base')
66
 
67
  # Tokenize sentences
68
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
 
31
  "Pizza adalah makanan khas Italia",
32
  "Saya kuliah di Carneige Mellon University"]
33
 
34
+ model = SentenceTransformer('firqaaa/indo-sentence-bert-base')
35
  embeddings = model.encode(sentences)
36
  print(embeddings)
37
  ```
 
61
 
62
 
63
  # Load model from HuggingFace Hub
64
+ tokenizer = AutoTokenizer.from_pretrained('firqaaa/indo-sentence-bert-base')
65
+ model = AutoModel.from_pretrained('firqaaa/indo-sentence-bert-base')
66
 
67
  # Tokenize sentences
68
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')