Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

**OntoAligner** is a Python library designed to simplify ontology alignment and matching for researchers, practitioners, and developers. With a modular architecture and robust features, OntoAligner provides powerful tools to bridge ontologies effectively.

📘 **Explore the OntoAligner tutorial [here](tutorial/README.md).**

## 🧪 Installation

Expand Down
8 changes: 7 additions & 1 deletion docs/source/aligner/llm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ This module guides you through a step-by-step process for performing ontology al

# post-processing imports
from ontoaligner.postprocess import TFIDFLabelMapper, llm_postprocessor

# for batching the datasets
from torch.utils.data import DataLoader

# to see the progress
from tqdm import tqdm
::

.. tab:: ➡️ 2: Parse and Encode
Expand Down Expand Up @@ -282,7 +288,7 @@ To use decoder based aligner based technique:

.. code-block:: python

from ontoaligner.aligner import FlanT5LEncoderDecoderLM
from ontoaligner.aligner import AutoModelDecoderLLM

model = AutoModelDecoderLLM()
model.load(path="...")
Expand Down
5 changes: 2 additions & 3 deletions docs/source/aligner/rag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ This guide walks you through the process of ontology matching using the OntoAlig
encoded_ontology = encoder_model(source=dataset['source'], target=dataset['target'])

#Step 4. Configure the Retriever and LLM
config = {
"retriever_config": {"device": 'cuda', "top_k": 5, "threshold": 0.1},
"llm_config": {
retriever_config = {"device": 'cuda', "top_k": 5, "threshold": 0.1}
llm_config = {
"device": "cuda", "batch_size": 32,
"answer_set": {"yes": ["yes", "true"], "no": ["no", "false"]}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/source/usecases/ecommerce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The visualization below illustrates how ontologies and their corresponding align

.. raw:: html

<iframe src="../_static/amazon-ebay-alignment.html.html"
<iframe src="../_static/amazon-ebay-alignment.html"
width="90%"
height="900"
style="border:none;">
Expand Down
Loading