Update README.md
Browse files
README.md
CHANGED
|
@@ -114,9 +114,11 @@ import torch
|
|
| 114 |
device = 0 if torch.cuda.is_available() else -1 # 0 = GPU, -1 = CPU
|
| 115 |
pipe = pipeline("text-classification", model="DimitriosPanagoulias/MemoryBERT", device=device)
|
| 116 |
pipe("I remember the long walk to my childhood school.")
|
| 117 |
-
|
| 118 |
```
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
| 120 |
## Citation
|
| 121 |
|
| 122 |
You can cite either one or both of the following previous related work:
|
|
|
|
| 114 |
device = 0 if torch.cuda.is_available() else -1 # 0 = GPU, -1 = CPU
|
| 115 |
pipe = pipeline("text-classification", model="DimitriosPanagoulias/MemoryBERT", device=device)
|
| 116 |
pipe("I remember the long walk to my childhood school.")
|
|
|
|
| 117 |
```
|
| 118 |
+
outputs:
|
| 119 |
+
```bash
|
| 120 |
+
[{'label': 'episodic', 'score': 0.9272529482841492}]
|
| 121 |
+
```
|
| 122 |
## Citation
|
| 123 |
|
| 124 |
You can cite either one or both of the following previous related work:
|