Sentence Similarity
Transformers.js
ONNX
sentence-transformers
English
mpnet
feature-extraction
Generated from Trainer
dataset_size:5579240
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use onnx-community/JobBERT-v2-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/JobBERT-v2-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('sentence-similarity', 'onnx-community/JobBERT-v2-ONNX'); - sentence-transformers
How to use onnx-community/JobBERT-v2-ONNX with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("onnx-community/JobBERT-v2-ONNX") sentences = [ "Program Coordinator RN", "discuss the medical history of the healthcare user, evidence-based approach in general practice, apply various lifting techniques, establish daily priorities, manage time, demonstrate disciplinary expertise, tolerate sitting for long periods, think critically, provide professional care in nursing, attend meetings, represent union members, nursing science, manage a multidisciplinary team involved in patient care, implement nursing care, customer service, work under supervision in care, keep up-to-date with training subjects, evidence-based nursing care, operate lifting equipment, follow code of ethics for biomedical practices, coordinate care, provide learning support in healthcare", "provide written content, prepare visual data, design computer network, deliver visual presentation of data, communication, operate relational database management system, ICT communications protocols, document management, use threading techniques, search engines, computer science, analyse network bandwidth requirements, analyse network configuration and performance, develop architectural plans, conduct ICT code review, hardware architectures, computer engineering, video-games functionalities, conduct web searches, use databases, use online tools to collaborate", "nursing science, administer appointments, administrative tasks in a medical environment, intravenous infusion, plan nursing care, prepare intravenous packs, work with nursing staff, supervise nursing staff, clinical perfusion" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!