Commit
·
7628538
1
Parent(s):
c77ea61
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,13 +19,13 @@ from scipy.spatial.distance import cosine
|
|
| 19 |
from transformers import AutoModel, AutoTokenizer
|
| 20 |
|
| 21 |
# Load the model
|
| 22 |
-
tokenizer = AutoTokenizer.from_pretrained("johngiorgi/declutr-base")
|
| 23 |
-
model = AutoModel.from_pretrained("johngiorgi/declutr-base")
|
| 24 |
|
| 25 |
# Prepare some text to embed
|
| 26 |
text = [
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
]
|
| 30 |
inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
|
| 31 |
|
|
|
|
| 19 |
from transformers import AutoModel, AutoTokenizer
|
| 20 |
|
| 21 |
# Load the model
|
| 22 |
+
tokenizer = AutoTokenizer.from_pretrained("johngiorgi/declutr-sci-base")
|
| 23 |
+
model = AutoModel.from_pretrained("johngiorgi/declutr-sci-base")
|
| 24 |
|
| 25 |
# Prepare some text to embed
|
| 26 |
text = [
|
| 27 |
+
"Oncogenic KRAS mutations are common in cancer.",
|
| 28 |
+
"Notably, c-Raf has recently been found essential for development of K-Ras-driven NSCLCs.",
|
| 29 |
]
|
| 30 |
inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
|
| 31 |
|