Update README.md
Browse files
README.md
CHANGED
@@ -14,8 +14,8 @@ An example usage:
|
|
14 |
```python
|
15 |
from transformers import AutoTokenizer, DPRQuestionEncoder
|
16 |
|
17 |
-
tokenizer = AutoTokenizer.from_pretrained("NAACL2022/spider-
|
18 |
-
model = DPRQuestionEncoder.from_pretrained("NAACL2022/spider-
|
19 |
|
20 |
question = "Who is the villain in lord of the rings"
|
21 |
input_dict = tokenizer(question, return_tensors="pt")
|
|
|
14 |
```python
|
15 |
from transformers import AutoTokenizer, DPRQuestionEncoder
|
16 |
|
17 |
+
tokenizer = AutoTokenizer.from_pretrained("NAACL2022/spider-nq-question-encoder")
|
18 |
+
model = DPRQuestionEncoder.from_pretrained("NAACL2022/spider-nq-question-encoder")
|
19 |
|
20 |
question = "Who is the villain in lord of the rings"
|
21 |
input_dict = tokenizer(question, return_tensors="pt")
|