Spaces:
Sleeping
Sleeping
Update classification.py
Browse files- classification.py +89 -1
classification.py
CHANGED
|
@@ -4,7 +4,95 @@ from sentence_transformers import SentenceTransformer, util
|
|
| 4 |
import numpy as np
|
| 5 |
import torch
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def addCategories(df,df_all):
|
| 10 |
categories = df.to_dict("records")
|
|
|
|
| 4 |
import numpy as np
|
| 5 |
import torch
|
| 6 |
|
| 7 |
+
|
| 8 |
+
# Categories
|
| 9 |
+
categories = [
|
| 10 |
+
{
|
| 11 |
+
"topic": "Confidentiality and Privacy Protection",
|
| 12 |
+
"description": "This topic covers the protection of confidentiality, privacy, and integrity in security systems. It also includes authentication and authorization processes.",
|
| 13 |
+
"experts": ["Mireille"]
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"topic": "Distributed Trust and End-User Trust Models",
|
| 17 |
+
"description": "This topic focuses on distributed trust models and how end-users establish trust in secure systems.",
|
| 18 |
+
"experts": ["Mireille", "Khawla"]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"topic": "Secure Element and Key Provisioning",
|
| 22 |
+
"description": "This topic involves the secure element in systems and the process of key provisioning.",
|
| 23 |
+
"experts": ["Mireille"]
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"topic": "Residential Gateway Security",
|
| 27 |
+
"description": "This topic covers the security aspects of Residential Gateways.",
|
| 28 |
+
"experts": ["Mireille"]
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"topic": "Standalone Non-Public Network (SNPN) Inter-Connection and Cybersecurity",
|
| 32 |
+
"description": "This topic focuses on the inter-connection of Standalone Non-Public Networks and related cyber-security topics.",
|
| 33 |
+
"experts": ["Khawla"]
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"topic": "Distributed Ledger and Blockchain in SNPN",
|
| 37 |
+
"description": "This topic covers the use of distributed ledger technology and blockchain in securing Standalone Non-Public Networks.",
|
| 38 |
+
"experts": ["Khawla"]
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"topic": "Distributed Networks and Communication",
|
| 42 |
+
"description": "This topic involves distributed networks such as mesh networks, ad-hoc networks, and multi-hop networks, and their cyber-security aspects.",
|
| 43 |
+
"experts": ["Guillaume"]
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"topic": "Swarm of Drones and Unmanned Aerial Vehicles Network Infrastructure",
|
| 47 |
+
"description": "This topic covers the network infrastructure deployed by Swarm of Drones and Unmanned Aerial Vehicles.",
|
| 48 |
+
"experts": ["Guillaume"]
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"topic": "USIM and Over-the-Air Services",
|
| 52 |
+
"description": "This topic involves USIM and related over-the-air services such as Steering of Roaming, roaming services, network selection, and UE configuration.",
|
| 53 |
+
"experts": ["Vincent"]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"topic": "Eco-Design and Societal Impact of Technology",
|
| 57 |
+
"description": "This topic covers eco-design concepts, including energy saving, energy efficiency, carbon emissions, and the societal impact of technology.",
|
| 58 |
+
"experts": ["Pierre"]
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"topic": "Service Requirements of New Services",
|
| 62 |
+
"description": "This topic involves defining service requirements for new services, detecting low signals of new trends and technologies, and assessing their impact on USIM services or over-the-air services.",
|
| 63 |
+
"experts": ["Ly-Thanh"]
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"topic": "Satellite and Non Terrestrial Networks",
|
| 67 |
+
"description": "This topic covers satellite networks, Non Terrestrial Networks, Private Networks, IoT, Inter Satellite communication, and Radio Access Network.",
|
| 68 |
+
"experts": ["Nicolas"]
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"topic": "Public Safety and Emergency Communication",
|
| 72 |
+
"description": "This topic involves Public Safety Communication, Military Communication, Emergency Calls, Emergency Services, Disaster Communication Access, and other related areas.",
|
| 73 |
+
"experts": ["Dorin"]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"topic": "Identifying the Human User of a Subscription",
|
| 77 |
+
"description": "This topic involves methods and processes for identifying the human user associated with a subscription.",
|
| 78 |
+
"experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"topic": "Authentication and Authorization of Users and Restrictions on Users",
|
| 82 |
+
"description": "This topic covers authentication and authorization processes, as well as restrictions imposed on users.",
|
| 83 |
+
"experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"topic": "Exposure of User Identity Profile Information",
|
| 87 |
+
"description": "This topic involves the exposure of user identity profile information and its security implications.",
|
| 88 |
+
"experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"topic": "Identifying non-3GPP Devices Connecting behind a UE or 5G-RG",
|
| 92 |
+
"description": "This topic involves identifying non-3GPP devices connecting behind a UE (User Equipment) or 5G-RG (5G Residential Gateway).",
|
| 93 |
+
"experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
|
| 94 |
+
}
|
| 95 |
+
]
|
| 96 |
|
| 97 |
def addCategories(df,df_all):
|
| 98 |
categories = df.to_dict("records")
|