Update README.md
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ from transformers import DPRQuestionEncoder, DPRQuestionEncoderTokenizer
|
|
45 |
|
46 |
tokenizer = DPRQuestionEncoderTokenizer.from_pretrained('firqaaa/indo-dpr-question_encoder-multiset-base')
|
47 |
model = DPRQuestionEncoder.from_pretrained('firqaaa/indo-dpr-question_encoder-multiset-base')
|
48 |
-
input_ids = tokenizer("
|
49 |
embeddings = model(input_ids).pooler_output
|
50 |
```
|
51 |
|
|
|
45 |
|
46 |
tokenizer = DPRQuestionEncoderTokenizer.from_pretrained('firqaaa/indo-dpr-question_encoder-multiset-base')
|
47 |
model = DPRQuestionEncoder.from_pretrained('firqaaa/indo-dpr-question_encoder-multiset-base')
|
48 |
+
input_ids = tokenizer("Siapakah tokoh antagonis terkuat dalam serial DragonBall Super?", return_tensors='pt')["input_ids"]
|
49 |
embeddings = model(input_ids).pooler_output
|
50 |
```
|
51 |
|