1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("petkopetkov/e5-large-v2-patent")
5# Run inference
6sentences = [
7 'query: LOCAL DECISION MAKING The present disclosure relates to the use of cryptographic techniques to facilitate local decision making at a gateway device interfacing between an operator device and edge devices, for example as can be found in Internet of Things infrastructures. Local decision making is facilitated in the context of end to end encryption of data between the edge device and operator device by enabling a function of the data to be computed without decrypting the data, for example using Functional Encryption (FE). Examples of edge devices are video surveillance cameras or utility consumption meters but the present disclosure is applicable to any other kind of edge device that produces data to be transmitted with end to end encryption. The disclosure is also not limited to IoT infrastructures. A method of local decision making in a communications system comprising an operator device in communication with a plurality of gateway devices and a plurality of edge devices in communication with each gateway device, the method comprising: receiving encrypted data at a gateway device from an edge device for transmission to the operator device, wherein the encrypted data is encrypted with a public key such that it can be decrypted with a corresponding private key and a function of the data can be computed without the private key, wherein the gateway device does not have access to the private key; applying, at the gateway device, an operator to the encrypted data to compute a value of a function of the input data without decrypting the encrypted data; determining, at the gateway device, an action to be taken based on the value; and taking the determined action. A method according to claim 1, wherein determining the action comprises deciding whether or how to transmit the encrypted input data to the operator and taking the determined action comprises transmitting or not transmitting the encrypted input data to the operator device based on the determination. A method according to claim 1 or 2 comprising receiving instances of encrypted data from respective edge devices and computing a respective value of the function for each instance of encrypted data, wherein determining the action comprises selecting which instances of the encrypted data to transmit and, or how to transmit them based on the computed values and the action comprises transmitting selected none, one or more of the received instances of encrypted data based on the computed values. A method according to claim 1, wherein the action comprises sending a control signal to the edge device and/or sending an alarm signal to the operator device. A method according to claim 1 or 4, comprising receiving instances of encrypted data from respective edge devices and computing a respective value of the function for each instance of encrypted data and determining the action to be taken based on the computed values, wherein the action comprises sending a control signal to the edge device and/or sending an alarm signal to the operator device. --> A method according to claim 1, 2 or 3, wherein the edge device or devices comprise a video camera, the encrypted input data comprises encrypted video data and encrypted motion data indicative of motion in frames of the video data and the function comprises a function of the motion data indicative of the amount of motion in frames of the video. A method according to claim 6, wherein the action comprises selecting a quality of video data to be transmitted to the operator based on the value. A method according to claim 1, 4 or 5, wherein the edge device or devices comprise a utility consumption meter and the encrypted input data comprises utility consumption data. A method according to any preceding claim, wherein the function comprises a sum. A method according to any preceding claim, wherein the function returns a value indicating whether a sum of magnitudes of the data exceed a threshold value. A method according any preceding claim, wherein the input data is encrypted using functional encryption. A gateway device for use in a communications system comprising an operator device in communication with a plurality of gateway devices and a plurality of edge devices in communication with each gateway device, wherein the gateway device is configured to implement a method according to any preceding claim and comprisesa memory storing computer instructions that, when run on a processor implement the method;a communications interface for receiving the encrypted input data from an edge device and for transmitting the encrypted data to an operator device; anda processor configured to execute the computer instructions to implement the method. A communications system comprising an operator device in communication with a plurality of gateway devices according to claim 11 and a plurality of edge devices in communication with each gateway device. A communications system according to claim 12, wherein connections between the gateway and edge devices have higher bandwidth and/or shorter latency than connections between the edge devices and the operator device.',
8 'passage: INFORMATION AND COMMUNICATION PROCESSING SYSTEM, METHOD, AND NETWORK NODE In a distributed information communication processing system in which a plurality of information communication devices provides a service through a network, response speed, electric power consumption, and further reliability are improved. The distributed information communication processing system which provides various services is configured by associating an entrance node (EN) which executes filtering near sensors, actuators, and terminals being information sources, an intelligent node (IN) which changes an information processing position and executes information processing and communication processing instead of a data center (DC), and a management node (MN) which manages these nodes. Thereby, real time type information processing can be realized. An information communication processing system in which an information processing device which can execute an application and a plurality of terminals requesting services are located, the system comprising: a first network node connected to the terminals; a second network node connected to the first network node though a first network and connected to the information processing device through a second network; and a management node for managing the first network node and the second network node, wherein the first network node sends a packet which has a destination to the information processing device through the second network node; the second network note analyzes the packet when the packet is received, outputs the packet to a processor when the second network node has the processor which can perform processes associated with the analyzed result, the packet, and the application, and sends a packet including the processed result by the processor to the first network node; and the information processing device executes the application when the packet is received through the second network node. The information communication processing system according to claim 1,wherein the first network node comprises: an interface which sends and receives a packet; and a processing unit which processes the packet which the interface receives, and --> wherein the processing unit performs calculation processing, filtering, or aggregation processing to the packet received from the terminals, further selects the processed result, and sends the selected result. The information communication processing system according to claim 2,wherein the processing unit generates a processing command based on the packet received from the second network node, and sends the processing command to the terminals. The information communication processing system according to claim 2,wherein, the processing unit sends stored data stored in the first network node through the interface when the received packet is a stored data request. The information communication processing system according to claim 2,wherein the management node comprises a management table which stores contents of the calculation processing, the filtering, or the aggregation processing of the first node, and sends the contents of the management table to the first network node. The information communication processing system according to claim 1,wherein the second network node comprises: a plurality of processors, the processors executing any application; and --> a communication control unit which can transfer the received packet to at least any one of destinations among the processors and external nodes other than the second network node. The information communication processing system according to claim 6,wherein the communication control unit associates the packets which correspond with at least a part of a header and a payload of the packets with the same flow according to a predetermined rule, comprises a table which indicates a destination of the flow, and changes a destination of the packets to the destination of the associated flow according to the table. The information communication processing system according to claim 7,wherein the communication control unit rewrites the destination in the table based on load information of the processors. The information communication processing system according to claim 7,wherein the management node generates a request for replicating the application which is performed in the information processing device or a request for rewriting the destination in the table to the second network node, and sends to the second network node; andwherein the second network node replicates the application or processing associated with the application in --> the processor or rewrite the destination in the table based on the rewriting request according to the request from the management node. The information communication processing system according to claim 6,wherein the management node comprises a management table which stores nominated information for changing an execution target of the application or the processing associated with the application which is executed by the processors of the second network node, and sends contents of the management table to the second network table. The information communication processing system according to claim 1,wherein processing associated with the application executed on the second network node is processing in which a processing result is notified to the first network node early, compared with an application executed on the information processing device. An information communication processing method for providing a service to a plurality of terminals, the method comprising the steps of: connecting a first network node connected to the terminal to a second network node through a first network; connecting the second network node to an information processing device through a second network; and for providing the service to the terminals, sending a packet which has a destination to the --> information processing device to the first network by using information obtained from the terminal in the first network node; outputting the packet to an information processing function unit which the second network node has or a node other than the second network node based on a destination and information included in the packet by the second network node when second network node receives the packet from the first network; sending a packet including a processing result to the packet processed by the information processing function unit to the first network node by the second network node; and receiving the packets including the processed result by the first network node to provide the service to the terminal. A second network node sending and receiving a packet through a first network connected to a first network node to which a plurality of terminals are connected and a second network connected to an information processing, the second network node comprising: a network interface unit connected to the first network and the second network; a communication control unit analyzing the packet received through the network interface unit and transferring the packet to any destination; and an information processing function unit to which the packet received through the network interface unit are transferred by the communication control unit and which executes a predetermined application for the packets. The second network node according to claim 13,wherein, by using a table which records a connection status and a destination made of the packet, the communication control unit changes a destination of the packets based on the destinations in the table. The second network node according to claim 14,wherein the communication control unit rewrites the destination of the flow based on load information of the information processing function unit. The second network node according to claim 14,wherein the communication control unit rewrites the destination of the flow in which the connection status is an unconnected status based on a request from the management node. The second network node according to claim 14,wherein the communication control unit rewrites the destination of the flow to the information processing function unit. The second network node according to claim 14,wherein the information processing function unit comprises a plurality of processors, and the communication control unit changes a destination of the packet to any one of the processors. The information communication processing method according to claim 12,wherein the terminals comprise a monitoring camera and --> an automatic door;the first network node extracts a face by the monitoring camera and sends extracted face image data to the second network node; andthe second network node sends a control signal for opening the automatic door to the first network node when the face image data corresponds to a face image database. The information communication processing method according to claim 12,wherein the terminals comprise a sensor and a monitoring camera;the first network node sends output of the sensor and image data of the monitoring camera to the second network node when the sensor output of the sensor exceeds a set threshold value; andthe second network node sends the image data to a previously registered user when the second network node detects an abnormal value from the sensor output. The information communication processing method according to claim 12,wherein the terminals comprise an acceleration sensor or a vibration sensor;the first network node separates effective quake data and ineffective quake data based on an output of the acceleration sensor or the vibration sensor, and sends the separated effective quake data to the second network node;, andthe second network node generates an alarm notification based on the received effective quake data, and sends the --> generated alarm notification to a previously registered user. The information communication processing method according to claim 12,wherein the terminals comprise an sensor and a camera; the first network node stores a sensor output of the sensor and image data of the camera, generates corresponding event information when the output of the sensor exceeds a set threshold value, and sends the event information to the second network node; andthe second network node sends a transfer request of the necessary sensor output and the necessary image data to the first network node based on the event information.',
9 'passage: INTRODUCER SHEATH, PLACEMENT DEVICE FOR BLOOD VESSEL TREATMENT INSTRUMENT, AND METHOD FOR SHORTENING INTRODUCER SHEATH A placement device (10) for a blood vessel treatment instrument has an introducer sheath (14) functioning as an outer tube, and also has an inner tube (16). The introducer sheath (14) has a flexible tube-shaped sheath body (18) and a hub (20) into which the base end of the sheath body (18) is inserted. The hub (20) takes up the base end of the sheath body (18) into the hub (20) by means of take-up shafts (30, 32) while tearing the base end of the sheath body (18) by cutting blades (72, 74), and thus the length of extension of the sheath body (18) from the hub (20) can be shortened. An introducer sheath (14, 14a, 14b) into which a long shaft is inserted, comprising: a flexible tube-shaped sheath body (18); and a hub (20) into which a proximal portion of the sheath body (18) is inserted, wherein the hub (20) takes up a proximal portion of the sheath body (18) into the hub (20) while tearing the proximal portion of the sheath body (18), whereby the length of extension of the sheath body (18) from the hub (20) can be shortened. The introducer sheath (14, 14a, 14b) according to claim 1,wherein the hub (20) has: a cutting section (28, 120) by which slits along an axial direction are formed in the sheath body (18); and a plurality of take-up shafts (30, 32) for respectively taking up terminal pieces of the sheath body (18) torn by the slits. The introducer sheath (14, 14a, 14b) according to claim 2, -->wherein the cutting section (28, 120) forms the slits in portions of the sheath body (18) which are on opposite sides with respect to a circumferential direction, andthe plurality of take-up shafts (30, 32) are two take-up shafts (30, 32) disposed at positions spaced from each other along the direction of splitting of the sheath body (18) by the slits. The introducer sheath (14, 14a) according to claim 2,wherein the cutting section (28, 120) has a plurality of cutting blades (72, 74) by which the slits are formed in circumferential-directionally different portions of the sheath body (18). The introducer sheath (14, 14a, 14b) according to claim 2,wherein the hub (20) further has an interlocking mechanism (106) by which the plurality of take-up shafts (30, 32) are rotated in an interlocked manner. The introducer sheath (14a) according to claim 2,wherein the hub (20) has rotation restraining --> mechanisms (104, 105) for inhibiting the take-up shafts (30, 32) from rotating in an unwinding direction. The introducer sheath (14, 14a, 14b) according to claim 2,wherein the hub (20) has: a hub body (31) provided with a hollow section in which the take-up shafts (30, 32) and the proximal portion of the sheath body (18) are housed; and a rotational operating section (34) which is rotationally operated from outside of the hub body (31) to thereby rotate the take-up shafts (30, 32), the hub body (31) being configured to be liquid-tight so that a liquid flowing into the inside of the hub (20) through the sheath body (18) does not leak to the exterior. A blood vessel treatment instrument placement device (10) by which a blood vessel treatment instrument (12) having a self-expanding function is fed to and placed indwelling in a desired treatment site in a blood vessel,wherein the placement device (10) includes an introducer sheath (14, 14a, 14b) having a sheath --> body (18) for housing the blood vessel treatment instrument (12) on an inner circumference of a distal portion thereof, andan inner tube (16) slidably inserted inside the sheath body (18);the introducer sheath (14, 14a, 14b) hasthe sheath body (18) which is flexible and tube-like in shape, anda hub (20) in which a proximal portion of the sheath body (18) is inserted; andthe hub (20) takes up a proximal portion of the sheath body (18) into the hub (20) while tearing the proximal portion of the sheath body (18), whereby the length of extension of the sheath body (18) from the hub (20) can be shortened. A method for shortening an introducer sheath (14, 14a, 14b) in which a long shaft is inserted, the method comprising: tearing a proximal portion of a sheath body (18); drawing the sheath body (18) into the hub (20) in which the proximal portion of the sheath body (18) is inserted; and taking up terminal pieces of the sheath body (18) --> having been torn.',
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 1024]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities.shape)
18# [3, 3]