1from sentence_transformers import CrossEncoder
2
3# Download from the 🤗 Hub
4model = CrossEncoder("cross_encoder_model_id")
5# Get scores for pairs of inputs
6pairs = [
7 ["ARCN's mandate centers on planning, coordinating, supervising, and regulating agricultural research, training, and extension activities in National Agricultural Research Institutes (NARIs), Federal Colleges of Agriculture (FCAs), and related institutions. Core functions include advising the Federal Government on national policies and priorities in agricultural research, training, and extension; preparing periodic master plans for agricultural research, training, and extension with financial requirements for implementation; ensuring approved master plan implementation by appropriate research institutes, universities, and other bodies; supervising and coordinating research, training, and extension activities of institutes under its aegis; preparing annual budgets for agricultural research, training, and extension programs and receiving grants for allocation to institutes; allocating research grants to institutes, universities, and other bodies; promoting collaboration between Nigerian agricultural scientists and international counterparts; establishing and maintaining a National Agricultural Science Library and Documentation Centre; publishing or sponsoring publication of research results in agricultural sciences; and carrying out activities furthering advancement of research, training, and extension in agricultural sciences.\n\nThe Council operates through six technical departments (Planning, Research & Statistics; Plant Resources; Livestock; Fisheries & Aquaculture; Agricultural Extension & Socio-Economics; and Knowledge Management & Communications) plus two service departments (Administration and Finance & Accounts). ARCN supervises numerous institutes including commodity research institutes for cereals, root crops, horticultural crops, oil palm, cocoa, rubber, and stored products, among others. Governed by a Board appointed by the President and led by an Executive Secretary, ARCN operates under the Federal Ministry of Agriculture and Food Security.", 'CONSTRUCTION AND INSTALLATION OF SOLAR POWERED STREET LIGHTS TO IMPROVE ACCESS IN RURAL COMMUNITIES OF NORTH EAST'],
8 ["The Federal Ministry of Works (previously Federal Ministry of Works and Housing before housing separation in 2019) is responsible for construction, rehabilitation and maintenance of federal roads, bridges and related infrastructure. Following President Tinubu's October 2024 cabinet reshuffle, housing functions previously reintegrated were again separated, with Works Ministry focusing exclusively on roads and bridges infrastructure. The Ministry manages over 35,000 kilometers of federal roads including major highways, interstate roads, and roads connecting state capitals. The Ministry coordinates through Federal Roads Maintenance Agency (FERMA) for road maintenance.\n\n**Core Mandate:** To construct, rehabilitate and maintain federal roads and bridges infrastructure ensuring safe and efficient road transportation network across Nigeria.\n\n**Statutory Functions:**\n(a) Construct federal roads, highways and interstate roads\n(b) Rehabilitate and maintain existing federal roads network\n(c) Construct and maintain federal bridges including major river crossings\n(d) Coordinate Federal Roads Maintenance Agency (FERMA) for routine road maintenance\n(e) Develop Federal Roads Development Plan prioritizing critical road infrastructure\n(f) Award contracts for road and bridge construction through competitive bidding\n(g) Supervise road construction projects ensuring quality standards compliance\n(h) Manage federal roads budgets and coordinate road sector financing\n(i) Promote public-private partnerships for road infrastructure development\n(j) Coordinate road safety infrastructure including road markings, signage and street lighting\n(k) Develop road design standards and specifications for federal roads\n(l) Coordinate environmental impact assessments for road projects\n(m) Manage right-of-way acquisition and resettlement for road construction\n(n) Promote sustainable road construction using appropriate technology\n(j) Coordinate regional road integration within ECOWAS framework\n(p) Manage federal roads assets and roads inventory database\n(q) Facilitate technology adoption including concrete roads and road management systems\n(r) Coordinate flood control measures for roads and drainage systems\n(s) Promote local content and indigenous contractors in road construction\n(t) Coordinate legacy roads projects and Presidential Infrastructure Development Fund (PIDF) roads", 'CONSTRUCTION OF MPU-ISHIAGU ROAD (SPUR IN ISHIAGU)\n'],
9 ["The Federal College of Horticultural Technology, Dadin Kowa, is a government-owned tertiary institution located at Dadin Kowa, Yamaltu Deba Local Government Area of Gombe State, Nigeria. Approved and established with effect from April 19, 2002, by President Chief Olusegun Obasanjo's administration, the college became the first of its kind in Sub-Saharan Africa. The college is covered by Decree 35 of June 1975 on establishment of Agricultural Research Institutes and conduct of training. Operating as a research institution under the Agricultural Research Council of Nigeria (ARCN) supervised by Federal Ministry of Agriculture and Rural Development, the college is accredited by National Board for Technical Education (NBTE) to award National Diploma (ND) and Higher National Diploma (HND) certificates. The college's core mandate is to train and improve manpower in Horticultural and Landscaping Technology. Specific functions include: (a) to provide specialized training in horticulture through National Diploma and Higher National Diploma programmes approved by NBTE; (b) to train technicians and technologists in general horticulture, floriculture, vegetable production, orchard establishment and management; (c) to provide education in agroforestry practices related to horticultural systems; (d) to train personnel in horticulture management technology; (e) to provide training in agriculture extension management for horticultural enterprises; (f) to educate students in cooperative economic management for horticultural marketing; (g) to train personnel in science laboratory technology supporting horticultural research; (h) to provide training in fishery technology and animal health and production technology; (i) to offer certificate programmes in general horticulture, floriculture, vegetable production, orchard establishment and agroforestry (1-year duration); (j) to conduct training and empowerment of youth and women in mango, guava and fruit production; (k) to provide training in orchard establishment and management; (l) to offer capacity building in modern farming technology and post-harvest handling techniques; (m) to conduct research in horticultural sciences; and (n) to empower students for labour market and self-employment. As of 2017, the institution trained 1,500 youths from 36 states in agriculture and plant production, having graduated over 1,354 students.", 'ALTERNATIVE ENERGY SOURCE FOR COMMUNITY STREET LIGHTING IN LAGOS MULTIPLE LOT'],
10 ['Federal Ministry of Interior is ministry overseeing internal security agencies, immigration, prisons and civil defense. Located in Abuja, operating under executive branch with Minister of Interior appointed by President. Supervises Nigeria Immigration Service controlling borders and immigration. Oversees Nigeria Prisons Service (now Nigerian Correctional Service) managing correctional facilities. Coordinates Nigeria Security and Civil Defence Corps providing infrastructure security. Manages Federal Fire Service for firefighting and emergency response. Formulates policies on internal security, immigration, corrections and civil protection. Coordinates border management and immigration control. Oversees prison reforms and correctional rehabilitation programs. Manages national identity cards and civil registration. Coordinates disaster management and emergency response. Supervises passport issuance and visa policies. Addresses challenges from porous borders, prison congestion, inadequate civil defense and security threats. Collaborates with Ministry of Defence, NSA and security architecture. Critical for internal security, border control, corrections and civil protection.\n\n**Core Mandate:** To oversee internal security agencies, manage immigration and borders, supervise correctional services, coordinate civil defense and ensure internal security and civil protection.\n\n**Statutory Functions:**\n(a) Supervise Nigeria Immigration Service managing borders and immigration control\n(b) Oversee Nigerian Correctional Service (formerly Prisons) and correctional facilities\n(c) Coordinate Nigeria Security and Civil Defence Corps protecting infrastructure\n(d) Manage Federal Fire Service providing firefighting and emergency response\n(e) Formulate policies on internal security and civil protection\n(f) Coordinate border management across land, air and sea entry points\n(g) Oversee immigration policies, visa requirements and entry regulations\n(h) Supervise passport issuance through immigration service\n(i) Manage correctional reforms and prison decongestion initiatives\n(j) Oversee rehabilitation and reintegration programs for inmates\n(k) Coordinate civil defense and critical infrastructure protection\n(l) Manage disaster response and emergency management coordination\n(m) Supervise national identity card and civil registration systems\n(n) Address prison congestion and awaiting trial detainees issues\n(o) Combat human trafficking through immigration controls\n(p) Prevent irregular migration and border infiltration\n(q) Coordinate with customs on border management\n(r) Collaborate with Ministry of Defence and NSA on security\n(s) Engage neighboring countries on cross-border security\n(t) Advance internal security, effective border control and correctional rehabilitation through coordinated management of immigration, prisons and civil defense agencies', 'REHABILITATION OF MINISTRY BUILDINGS (ZONAL OFFICES AT MINNA, NIGER STATE\n'],
11 ["National Biotechnology Development Agency is federal agency promoting biotechnology research, development and commercialization. Headquartered in Abuja with biotechnology centers nationwide, operating under Federal Ministry of Science and Technology. Established to harness biotechnology for national development addressing food security, health and industrial challenges. Operates biotechnology research centers conducting agricultural, medical and industrial biotechnology. Develops genetically modified crops including disease-resistant varieties. Conducts vaccine development and biopharmaceutical research. Researches industrial biotechnology for bio-based products. Promotes tissue culture for crop propagation. Develops biosensors and diagnostic technologies. Provides biotechnology training and capacity building. Operates modern biotechnology laboratories with genetic engineering facilities. Collaborates with universities, research institutes and biotech companies. Promotes bioentrepreneurship and biotechnology commercialization. Addresses challenges from limited commercialization, biosafety regulations and technology transfer gaps. Complements NBMA's regulatory role focusing on research and development. Critical for biotechnology innovation, technology development and applying genetic engineering to Nigeria's development challenges.\n\n**Core Mandate:** To promote biotechnology research and development, build biotechnology capacity, commercialize biotechnology innovations and apply biotechnology to agriculture, health and industrial development.\n\n**Statutory Functions:**\n(a) Promote biotechnology research and development in Nigeria\n(b) Operate biotechnology research centers nationwide\n(c) Conduct agricultural biotechnology developing improved crop varieties\n(d) Research medical biotechnology for vaccines and biopharmaceuticals\n(e) Develop industrial biotechnology for bio-based products\n(f) Promote tissue culture for mass plant propagation\n(g) Develop biosensors and diagnostic technologies\n(h) Conduct genetic engineering research\n(i) Operate modern biotechnology laboratories\n(j) Provide biotechnology training and capacity building\n(k) Train biotechnology scientists and technicians\n(l) Promote bioentrepreneurship and startup development\n(m) Commercialize biotechnology research outcomes\n(n) Facilitate technology transfer to industries\n(o) Develop biotechnology policies and strategies\n(p) Promote public understanding of biotechnology\n(q) Collaborate with universities and research institutes\n(r) Coordinate with NBMA on biosafety compliance\n(s) Engage international biotechnology organizations\n(t) Advance biotechnology innovation addressing food security, health and industrial development through research, training and commercialization", 'INSTALLATION OF SOLAR POWER SYSTEM FOR THE CENTRE OFFICE (ADIABO)\n'],
12]
13scores = model.predict(pairs)
14print(scores)
15# [[ 4.8895 -3.8417]
16# [-3.4721 4.0758]
17# [ 4.8809 -3.8417]
18# [-2.9645 3.31 ]
19# [-3.5223 4.2028]]