Babelscape / wsl-retriever-e5-base-v2-wordnet-index

huggingface.co
Total runs: 218
24-hour runs: 1
7-day runs: 14
30-day runs: 191
Model's Last Updated: December 13 2024

Introduction of wsl-retriever-e5-base-v2-wordnet-index

Model Details of wsl-retriever-e5-base-v2-wordnet-index


Word Sense Linking: Disambiguating Outside the Sandbox

Conference Paper Hugging Face Collection

Model Description

The Word Sense Linking model is designed to identify and disambiguate spans of text to their most suitable senses from a reference inventory. The annotations are provided as sense keys from WordNet, a large lexical database of English.

Installation

Installation from PyPI:

git clone https://github.com/Babelscape/WSL
cd WSL
pip install -r requirements.txt
Usage

WSL is composed of two main components: a retriever and a reader. The retriever is responsible for retrieving relevant senses from a senses inventory (e.g WordNet), while the reader is responsible for extracting spans from the input text and link them to the retrieved documents. WSL can be used with the from_pretrained method to load a pre-trained pipeline.

from wsl import WSL
from wsl.inference.data.objects import WSLOutput

wsl_model = WSL.from_pretrained("Babelscape/wsl-base")
relik_out: WSLOutput = wsl_model("Bus drivers drive busses for a living.")
WSLOutput(
text='Bus drivers drive busses for a living.',
tokens=['Bus', 'drivers', 'drive', 'busses', 'for', 'a', 'living', '.'],
id=0,
spans=[
    Span(start=0, end=11, label='bus driver: someone who drives a bus', text='Bus drivers'),
    Span(start=12, end=17, label='drive: operate or control a vehicle', text='drive'),
    Span(start=18, end=24, label='bus: a vehicle carrying many passengers; used for public transport', text='busses'),
    Span(start=31, end=37, label='living: the financial means whereby one lives', text='living')
],
candidates=Candidates(
    candidates=[
                {"text": "bus driver: someone who drives a bus", "id": "bus_driver%1:18:00::", "metadata": {}},
                {"text": "driver: the operator of a motor vehicle", "id": "driver%1:18:00::", "metadata": {}},
                {"text": "driver: someone who drives animals that pull a vehicle", "id": "driver%1:18:02::", "metadata": {}},
                {"text": "bus: a vehicle carrying many passengers; used for public transport", "id": "bus%1:06:00::", "metadata": {}},
                {"text": "living: the financial means whereby one lives", "id": "living%1:26:00::", "metadata": {}}
    ]
),

)

Model Performance

Here you can find the performances of our model on the WSL evaluation dataset .

Validation (SE07)
Models P R F1
BEM_SUP 67.6 40.9 51.0
BEM_HEU 70.8 51.2 59.4
ConSeC_SUP 76.4 46.5 57.8
ConSeC_HEU 76.7 55.4 64.3
Our Model 73.8 74.9 74.4
Test (ALL_FULL)
Models P R F1
BEM_SUP 74.8 50.7 60.4
BEM_HEU 76.6 61.2 68.0
ConSeC_SUP 78.9 53.1 63.5
ConSeC_HEU 80.4 64.3 71.5
Our Model 75.2 76.7 75.9
Additional Information

Licensing Information : Contents of this repository are restricted to only non-commercial research purposes under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0) . Copyright of the dataset contents belongs to Babelscape.

Citation Information
@inproceedings{bejgu-etal-2024-wsl,
    title     = "Word Sense Linking: Disambiguating Outside the Sandbox",
    author    = "Bejgu, Andrei Stefan and Barba, Edoardo and Procopio, Luigi and Fern{\'a}ndez-Castro, Alberte and Navigli, Roberto",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2024",
    month     = aug,
    year      = "2024",
    address   = "Bangkok, Thailand",
    publisher = "Association for Computational Linguistics",
}

Contributions : Thanks to @andreim14 , @edobobo , @poccio and @navigli for adding this model.

Runs of Babelscape wsl-retriever-e5-base-v2-wordnet-index on huggingface.co

218
Total runs
1
24-hour runs
2
3-day runs
14
7-day runs
191
30-day runs

More Information About wsl-retriever-e5-base-v2-wordnet-index huggingface.co Model

More wsl-retriever-e5-base-v2-wordnet-index license Visit here:

https://choosealicense.com/licenses/cc-by-nc-sa-4.0

wsl-retriever-e5-base-v2-wordnet-index huggingface.co

wsl-retriever-e5-base-v2-wordnet-index huggingface.co is an AI model on huggingface.co that provides wsl-retriever-e5-base-v2-wordnet-index's model effect (), which can be used instantly with this Babelscape wsl-retriever-e5-base-v2-wordnet-index model. huggingface.co supports a free trial of the wsl-retriever-e5-base-v2-wordnet-index model, and also provides paid use of the wsl-retriever-e5-base-v2-wordnet-index. Support call wsl-retriever-e5-base-v2-wordnet-index model through api, including Node.js, Python, http.

wsl-retriever-e5-base-v2-wordnet-index huggingface.co Url

https://huggingface.co/Babelscape/wsl-retriever-e5-base-v2-wordnet-index

Babelscape wsl-retriever-e5-base-v2-wordnet-index online free

wsl-retriever-e5-base-v2-wordnet-index huggingface.co is an online trial and call api platform, which integrates wsl-retriever-e5-base-v2-wordnet-index's modeling effects, including api services, and provides a free online trial of wsl-retriever-e5-base-v2-wordnet-index, you can try wsl-retriever-e5-base-v2-wordnet-index online for free by clicking the link below.

Babelscape wsl-retriever-e5-base-v2-wordnet-index online free url in huggingface.co:

https://huggingface.co/Babelscape/wsl-retriever-e5-base-v2-wordnet-index

wsl-retriever-e5-base-v2-wordnet-index install

wsl-retriever-e5-base-v2-wordnet-index is an open source model from GitHub that offers a free installation service, and any user can find wsl-retriever-e5-base-v2-wordnet-index on GitHub to install. At the same time, huggingface.co provides the effect of wsl-retriever-e5-base-v2-wordnet-index install, users can directly use wsl-retriever-e5-base-v2-wordnet-index installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

wsl-retriever-e5-base-v2-wordnet-index install url in huggingface.co:

https://huggingface.co/Babelscape/wsl-retriever-e5-base-v2-wordnet-index

Url of wsl-retriever-e5-base-v2-wordnet-index

wsl-retriever-e5-base-v2-wordnet-index huggingface.co Url

Provider of wsl-retriever-e5-base-v2-wordnet-index huggingface.co

Babelscape
ORGANIZATIONS

Other API from Babelscape

huggingface.co

Total runs: 230
Run Growth: 200
Growth Rate: 86.96%
Updated:December 13 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 29 2024