Feature Extraction
Safetensors
Transformers
English
hierarchy-transformers
mpnet
hierarchy-encoding
subsumption-relationships
text-embeddings-inference
Instructions to use Hierarchy-Transformers/HiT-MPNet-WordNetNoun with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hierarchy-Transformers/HiT-MPNet-WordNetNoun with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Hierarchy-Transformers/HiT-MPNet-WordNetNoun")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Hierarchy-Transformers/HiT-MPNet-WordNetNoun") model = AutoModel.from_pretrained("Hierarchy-Transformers/HiT-MPNet-WordNetNoun", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,7 +35,7 @@ HiT-MPNet-WordNetNoun is a HiT model trained on WordNet's noun hierarchy with ra
|
|
| 35 |
<!-- Provide the basic links for the model. -->
|
| 36 |
|
| 37 |
- **Repository:** https://github.com/KRR-Oxford/HierarchyTransformers
|
| 38 |
-
- **Paper:** [Language Models as Hierarchy Encoders](
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
|
@@ -87,7 +87,7 @@ subsumption_scores = dists + centri_score_weight * (parent_norms - child_norms)
|
|
| 87 |
```
|
| 88 |
|
| 89 |
Training and evaluation scripts are available at [GitHub](https://github.com/KRR-Oxford/HierarchyTransformers).
|
| 90 |
-
Technical details are presented in the [paper](
|
| 91 |
|
| 92 |
|
| 93 |
|
|
|
|
| 35 |
<!-- Provide the basic links for the model. -->
|
| 36 |
|
| 37 |
- **Repository:** https://github.com/KRR-Oxford/HierarchyTransformers
|
| 38 |
+
- **Paper:** [Language Models as Hierarchy Encoders](https://arxiv.org/abs/2401.11374)
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
|
|
|
| 87 |
```
|
| 88 |
|
| 89 |
Training and evaluation scripts are available at [GitHub](https://github.com/KRR-Oxford/HierarchyTransformers).
|
| 90 |
+
Technical details are presented in the [paper](https://arxiv.org/abs/2401.11374).
|
| 91 |
|
| 92 |
|
| 93 |
|