Commit 路
50250de
1
Parent(s): 614de93
Update README.md
Browse files
README.md
CHANGED
|
@@ -48,6 +48,14 @@ query = "This is the context with lots of information. Some useless. The answer
|
|
| 48 |
|
| 49 |
inputs = tokenizer(text,query,return_tensors="pt",padding=True, truncation=True)
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
tokenizer.decode(inputs ["input_ids"][0])
|
| 52 |
|
| 53 |
```
|
|
|
|
| 48 |
|
| 49 |
inputs = tokenizer(text,query,return_tensors="pt",padding=True, truncation=True)
|
| 50 |
|
| 51 |
+
{
|
| 52 |
+
'input_ids': tensor([ 101, 2023, 2003, 1996, 3160, 102, 2023, 2003, 1996, 6123,
|
| 53 |
+
2007, 7167, 1997, 2592, 1012, 2070, 11809, 1012, 1996, 3437,
|
| 54 |
+
2003, 2182, 2070, 2062, 2616, 1012, 102])
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
tokenizer.decode(inputs ["input_ids"][0])
|
| 60 |
|
| 61 |
```
|