Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,12 @@ gpu_id = 0
|
|
27 |
device = get_torch_device(gpu_id)
|
28 |
|
29 |
# load the model
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
# entity names to be encoded.
|
33 |
entity_names = ["computer", "personal computer", "fruit", "berry"]
|
|
|
27 |
device = get_torch_device(gpu_id)
|
28 |
|
29 |
# load the model
|
30 |
+
revision = "main" # change for a different version
|
31 |
+
model = HierarchyTransformer.from_pretrained(
|
32 |
+
model_name_or_path='Hierarchy-Transformers/HiT-MiniLM-L12-WordNetNoun',
|
33 |
+
revision=revision
|
34 |
+
device=device
|
35 |
+
)
|
36 |
|
37 |
# entity names to be encoded.
|
38 |
entity_names = ["computer", "personal computer", "fruit", "berry"]
|