Laya
Safetensors
ontology-matching
ontology-alignment
entity-linking
concept-mapping
biomedical
knowledge-graphs
OAEI
Instructions to use sensein/layalink with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use sensein/layalink with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
updated readme to make it clean.
Browse files
README.md
CHANGED
|
@@ -2,13 +2,21 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: convaiinnovations/laya
|
| 4 |
library_name: laya
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
# LayaLink
|
| 9 |
|
| 10 |
-
LayaLink is [`convaiinnovations/laya`](https://huggingface.co/convaiinnovations/laya)
|
| 11 |
-
three typed decisions over biomedical concepts. Every answer is a calibrated probability distribution.
|
| 12 |
|
| 13 |
| Task | Input (`state`) | Questions and answers |
|
| 14 |
|---|---|---|
|
|
@@ -16,8 +24,7 @@ three typed decisions over biomedical concepts. Every answer is a calibrated pro
|
|
| 16 |
| **entity_linking** | a text mention, its sentence, one candidate concept | `mapping`: `match`, `no_match`, `insufficient`; `accept`: P(enough evidence to accept) |
|
| 17 |
| **concept_selection** | a mention, its sentence, a list of candidate concepts | `concept`: the matching candidate's id or `none`; `resolvable`: P(some candidate matches) |
|
| 18 |
|
| 19 |
-
LayaLink judges candidates you supply; it does not search an ontology.
|
| 20 |
-
lexical or embedding search) and let LayaLink decide among the candidates.
|
| 21 |
|
| 22 |
## Installation
|
| 23 |
|
|
@@ -25,8 +32,7 @@ lexical or embedding search) and let LayaLink decide among the candidates.
|
|
| 25 |
pip install "laya @ git+https://github.com/NandhaKishorM/laya.git@80a1da1fa5448ea12163f4d977935625a0aea670"
|
| 26 |
```
|
| 27 |
|
| 28 |
-
This is the `laya` version LayaLink was trained and tested with (Python 3.10+).
|
| 29 |
-
in first with `hf auth login` (a read token is enough).
|
| 30 |
|
| 31 |
## Quickstart
|
| 32 |
|
|
@@ -302,23 +308,58 @@ Rank the 100 released candidates per source concept; public **valid** split, sco
|
|
| 302 |
|
| 303 |
The test sets are this project's own held-out splits (grouped so no concept, pair or sentence is shared with training), not official benchmarks, except the Bio-ML ranking above.
|
| 304 |
|
| 305 |
-
##
|
|
|
|
|
|
|
| 306 |
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
-
|
| 313 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 314 |
|
| 315 |
## Limitations
|
| 316 |
|
| 317 |
- A probability is a model estimate, not proof of logical equivalence. Check the logical consequences before asserting
|
| 318 |
-
`owl:equivalentClass`.
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
|
| 323 |
-
|
| 324 |
-
Biomappings CC0, NCBI corpora, BioNLP-Corpus sources).
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: convaiinnovations/laya
|
| 4 |
library_name: laya
|
| 5 |
+
model_name: LayaLink
|
| 6 |
+
tags:
|
| 7 |
+
- ontology-matching
|
| 8 |
+
- ontology-alignment
|
| 9 |
+
- entity-linking
|
| 10 |
+
- concept-mapping
|
| 11 |
+
- biomedical
|
| 12 |
+
- knowledge-graphs
|
| 13 |
+
- laya
|
| 14 |
+
- OAEI
|
| 15 |
---
|
| 16 |
|
| 17 |
# LayaLink
|
| 18 |
|
| 19 |
+
LayaLink is a typed decisions for concept mapping and alignment. It is finetuned on [`convaiinnovations/laya`](https://huggingface.co/convaiinnovations/laya).
|
|
|
|
| 20 |
|
| 21 |
| Task | Input (`state`) | Questions and answers |
|
| 22 |
|---|---|---|
|
|
|
|
| 24 |
| **entity_linking** | a text mention, its sentence, one candidate concept | `mapping`: `match`, `no_match`, `insufficient`; `accept`: P(enough evidence to accept) |
|
| 25 |
| **concept_selection** | a mention, its sentence, a list of candidate concepts | `concept`: the matching candidate's id or `none`; `resolvable`: P(some candidate matches) |
|
| 26 |
|
| 27 |
+
LayaLink judges candidates you supply; it does not search an ontology.
|
|
|
|
| 28 |
|
| 29 |
## Installation
|
| 30 |
|
|
|
|
| 32 |
pip install "laya @ git+https://github.com/NandhaKishorM/laya.git@80a1da1fa5448ea12163f4d977935625a0aea670"
|
| 33 |
```
|
| 34 |
|
| 35 |
+
This is the `laya` version LayaLink was trained and tested with (Python 3.10+).
|
|
|
|
| 36 |
|
| 37 |
## Quickstart
|
| 38 |
|
|
|
|
| 308 |
|
| 309 |
The test sets are this project's own held-out splits (grouped so no concept, pair or sentence is shared with training), not official benchmarks, except the Bio-ML ranking above.
|
| 310 |
|
| 311 |
+
## Data Sources
|
| 312 |
+
|
| 313 |
+
The **LayaLink** training dataset integrates ontology alignment, biomedical entity normalization, and named entity recognition (NER) resources to support both **concept-to-concept alignment** and **mention-to-concept mapping**.
|
| 314 |
|
| 315 |
+
### Data Sources
|
| 316 |
+
|
| 317 |
+
The dataset combines the following resources:
|
| 318 |
+
|
| 319 |
+
| Source | Datasets | Description |
|
| 320 |
+
|---|---|---|
|
| 321 |
+
| **OAEI 2025** | `oaei_anatomy`, `oaei_conference` | Reference alignments from the Anatomy and Conference tracks |
|
| 322 |
+
| **OAEI Bio-ML 2026** | `bioml2026` | NCIT–DOID training reference alignments only |
|
| 323 |
+
| **Biomappings** | `mappings` | Curated biomedical concept mappings |
|
| 324 |
+
| **NCBI Normalization Corpora** | `ncbi_corpora` | Entity normalization annotations from NCBI-disease and BC5CDR |
|
| 325 |
+
| **BioNLP-Corpus** | `ner_bionlp/*` | Biomedical entity mentions from eight NER datasets, linked to candidate ontology concepts using lexical and semantic matching |
|
| 326 |
+
|
| 327 |
+
The BioNLP-Corpus collection includes:
|
| 328 |
+
|
| 329 |
+
- `BC2GM` — Gene and protein mentions
|
| 330 |
+
- `BC4CHEMD` — Chemical and drug mentions
|
| 331 |
+
- `BC5CDR-chem` — Chemical mentions
|
| 332 |
+
- `BC5CDR-disease` — Disease mentions
|
| 333 |
+
- `JNLPBA` — Biomedical entity mentions
|
| 334 |
+
- `NCBI-disease` — Disease mentions
|
| 335 |
+
- `linnaeus` — Species mentions
|
| 336 |
+
- `s800` — Species mentions
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
### Training Infrastructure
|
| 340 |
+
|
| 341 |
+
LayaLink was fine-tuned using **two NVIDIA H100 GPUs**, leveraging multi-GPU acceleration for training on the combined ontology alignment and biomedical entity mapping datasets.
|
| 342 |
+
|
| 343 |
+
| Component | Configuration |
|
| 344 |
+
|---|---|
|
| 345 |
+
| **GPU** | 2 × NVIDIA H100 |
|
| 346 |
+
| **Training** | Multi-GPU fine-tuning |
|
| 347 |
+
| **Training data** | Ontology alignments and biomedical entity mappings |
|
| 348 |
+
| **Data split** | 80% training / 10% calibration / 10% testing |
|
| 349 |
+
|
| 350 |
+
Benchmark compliance: In accordance with the OAEI Bio-ML 2026 rules, MONDO and UMLS were not used.
|
| 351 |
|
| 352 |
## Limitations
|
| 353 |
|
| 354 |
- A probability is a model estimate, not proof of logical equivalence. Check the logical consequences before asserting
|
| 355 |
+
`owl:equivalentClass`.
|
| 356 |
+
|
| 357 |
+
## License
|
| 358 |
+
|
| 359 |
+
**LayaLink** is released under the **Apache License 2.0 (Apache-2.0)**.
|
| 360 |
+
|
| 361 |
+
The license permits commercial use, modification, distribution, and redistribution, subject to its terms.
|
| 362 |
+
|
| 363 |
+
See the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) for details.
|
| 364 |
|
| 365 |
+
**Note:** The Apache-2.0 license applies to the LayaLink model and original code. Third-party datasets, ontologies, and other resources retain their respective licenses and usage restrictions.
|
|
|