How to use nicolauduran45/e5-finetuned-entity-linking with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nicolauduran45/e5-finetuned-entity-linking") sentences = [ "query: Offshore Supply Vessel. Context: It was built in 2007 as an Offshore Supply Vessel (Offshore Supply Vessel) and later converted to a geotechnical drilling vessel by performing all necessary modifications and installing machinery required for drilling.", "passage: Light Detection and Ranging sensor [SEP] Sensor that uses light in form of a pulsed laser to measure ranges. [SEP] nan [SEP] LiDAR sensor", "passage: Bioenergy [SEP] Energy derived from organic biological materials including wood crops and waste [SEP] biomass power , bio-energy , biomass energy", "passage: Offshore Supply Vessel [SEP] A ship designed to transport supplies, equipment, and personnel to offshore oil and gas platforms, wind farms, and other marine installations. [SEP] PSV , platform supply vessel , offshore supply ship , supply ship , offshore supply vessel , platform supply ship" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!