How to use frankwong2001/2_modernbert-embed-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("frankwong2001/2_modernbert-embed-base") sentences = [ "The Technician (Automatic Fare Collection) works in a team to perform preventive and corrective maintenance of Automatic Fare Collection (AFC) Line Replacement Units (LRUs). He/She is responsible for the preparation of materials, tools, equipment and checklists required. He also assists in the conduct of fault analysis and testing to improve the reliability of the AFC systems as well as supervises the work of contractors and external stakeholders in ensuring compliance to safety requirements and operating standards. He is required to carry out his duties in the depot, workshop and/or at various train stations during train operating hours. He is a team player and a well-organised individual who is able to work under pressure and carry out his duties professionally in public access areas.", "The Technician/Coordinator (Operations and Maintenance) plays a crucial role in guaranteeing that all engineering systems and equipment operate smoothly and efficiently. This position involves conducting maintenance activities on various equipment according to established Standard Operating Procedures (SOPs). The individual adheres to corporate policies and best practices, ensuring that all tasks are performed safely and meet regulatory standards. Additionally, he/she follows emergency protocols and complies with workplace safety and health (WSH) regulations. This role typically involves working under guidance and requires strong collaboration skills to effectively communicate with both internal and external stakeholders. The Technician/Coordinator is also expected to be present on-site, work in shifts, and may need to be available for on-call duties.", "The Technician (Automatic Fare Collection) leads a team to conduct routine and emergency repairs of Public Transport Systems (PTS) Line Maintenance Units (LMUs). He/She is tasked with sourcing materials, tools, and equipment while also preparing reports required for compliance checks. He further manages the evaluation of system performance and oversees the training of junior staff and external vendors to guarantee adherence to operational metrics and quality standards. This role is conducted exclusively in corporate offices and training facilities during non-operational hours. The candidate must be a self-motivated and meticulous individual who can work independently and handle complex projects in restricted areas.", "The Technician (Automatic Fare Collection) collaborates with a team to execute both preventive and corrective maintenance on Automatic Fare Collection (AFC) Line Replacement Units (LRUs). This role involves preparing the necessary materials, tools, and equipment, as well as creating checklists for efficient task execution. Additionally, the technician aids in fault analysis and testing to enhance the reliability of AFC systems and oversees the work of contractors and external partners to ensure adherence to safety standards and operational protocols. Duties are performed in various settings, including depots, workshops, and train stations during operational hours. The ideal candidate is a team-oriented and organized professional who thrives under pressure and maintains a high level of professionalism in public environments." ] 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!