Skip to content

Commit 8026e60

Browse files
committed
Refactor dataset processing and LLM classes; add example datasets and system message
1 parent 800bb34 commit 8026e60

File tree

7 files changed

+337
-41
lines changed

7 files changed

+337
-41
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{"id":1,"text":"To support reviewers with making choices, CyberChair provides them with several webpages containing overviews of the submitted abstracts.","entities":[{"id":1,"label":"Purpose","start_offset":3,"end_offset":40},{"id":2,"label":"Subject","start_offset":42,"end_offset":52},{"id":3,"label":"Action","start_offset":53,"end_offset":61},{"id":4,"label":"Resource","start_offset":80,"end_offset":88}],"relations":[],"Comments":[]}
2+
{"id":2,"text":"CyberChair generates a paper distribution proposal for the PCC.","entities":[{"id":5,"label":"Subject","start_offset":0,"end_offset":10},{"id":6,"label":"Action","start_offset":11,"end_offset":20},{"id":7,"label":"Resource","start_offset":23,"end_offset":50}],"relations":[],"Comments":[]}
3+
{"id":3,"text":"As soon as the full paper deadline has passed, the papers can be assigned to the reviewers.","entities":[{"id":8,"label":"Resource","start_offset":51,"end_offset":57},{"id":9,"label":"Action","start_offset":65,"end_offset":73},{"id":10,"label":"Condition","start_offset":11,"end_offset":45}],"relations":[],"Comments":[]}

datasets/process.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Dataset Processing Module - Handles loading and processing datasets
33
"""
44

5-
from calendar import c
65
from pathlib import Path
76
import os
87
import re
Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<PolicySet xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyCombiningAlgId="urn:oasis:names:tc:xacml:3.0:policy-combining-algorithm:permit-overrides" PolicySetId="sli-mli-interface" Version="1.0">
3+
<Target>
4+
<AnyOf>
5+
<AllOf>
6+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
7+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VIO</AttributeValue>
8+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/subject/subject-role" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/>
9+
</Match>
10+
</AllOf>
11+
</AnyOf>
12+
</Target>
13+
<Policy PolicyId="mli-interface" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides" Version="1.0">
14+
<Target>
15+
<AnyOf>
16+
<AllOf>
17+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
18+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VIO</AttributeValue>
19+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/subject/subject-role" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
20+
</Match>
21+
</AllOf>
22+
</AnyOf>
23+
</Target>
24+
<Rule Effect="Permit" RuleId="mli:replanning:vr-it-operations">
25+
<Target>
26+
<AnyOf>
27+
<AllOf>
28+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
29+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR-IT</AttributeValue>
30+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
31+
</Match>
32+
</AllOf>
33+
</AnyOf>
34+
<AnyOf>
35+
<AllOf>
36+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
37+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">MLI:ReplanningVI:Add-VR-IT</AttributeValue>
38+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
39+
</Match>
40+
</AllOf>
41+
<AllOf>
42+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
43+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">MLI:ReplanningVI:Modify-VR-IT</AttributeValue>
44+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
45+
</Match>
46+
</AllOf>
47+
<AllOf>
48+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
49+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">MLI:ReplanningVI:Delete-VR-IT</AttributeValue>
50+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
51+
</Match>
52+
</AllOf>
53+
</AnyOf>
54+
</Target>
55+
</Rule>
56+
</Policy>
57+
<Policy PolicyId="sli-interface" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides" Version="1.0">
58+
<Target>
59+
<AnyOf>
60+
<AllOf>
61+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
62+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VIO</AttributeValue>
63+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/subject/subject-role" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
64+
</Match>
65+
</AllOf>
66+
</AnyOf>
67+
</Target>
68+
<Rule Effect="Permit" RuleId="sli:operations">
69+
<Target>
70+
<AnyOf>
71+
<AllOf>
72+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
73+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR</AttributeValue>
74+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
75+
</Match>
76+
</AllOf>
77+
</AnyOf>
78+
<AnyOf>
79+
<AllOf>
80+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
81+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Decommission-VR-IT</AttributeValue>
82+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
83+
</Match>
84+
</AllOf>
85+
<AllOf>
86+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
87+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Operate-VR</AttributeValue>
88+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
89+
</Match>
90+
</AllOf>
91+
<AllOf>
92+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
93+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Add-VirtualNetworkIf</AttributeValue>
94+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
95+
</Match>
96+
</AllOf>
97+
<AllOf>
98+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
99+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Remove-VirtualNetworkIf</AttributeValue>
100+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
101+
</Match>
102+
</AllOf>
103+
<AllOf>
104+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
105+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Create-StorageImage</AttributeValue>
106+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
107+
</Match>
108+
</AllOf>
109+
<AllOf>
110+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
111+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Remove-StorageImage</AttributeValue>
112+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
113+
</Match>
114+
</AllOf>
115+
</AnyOf>
116+
</Target>
117+
</Rule>
118+
<Rule Effect="Permit" RuleId="sli:vr-rp-info">
119+
<Target>
120+
<AnyOf>
121+
<AllOf>
122+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
123+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR-RP-Info</AttributeValue>
124+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
125+
</Match>
126+
</AllOf>
127+
</AnyOf>
128+
<AnyOf>
129+
<AllOf>
130+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
131+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Get-Available-VR-Pool-IT</AttributeValue>
132+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
133+
</Match>
134+
</AllOf>
135+
</AnyOf>
136+
</Target>
137+
</Rule>
138+
<Rule Effect="Permit" RuleId="sli:node-monitoring-actions">
139+
<Target>
140+
<AnyOf>
141+
<AllOf>
142+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
143+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR-State-Info</AttributeValue>
144+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
145+
</Match>
146+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
147+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR-Power-Info</AttributeValue>
148+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
149+
</Match>
150+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
151+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR-Status-Info</AttributeValue>
152+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
153+
</Match>
154+
</AllOf>
155+
</AnyOf>
156+
<AnyOf>
157+
<AllOf>
158+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
159+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Monitor-VR-Info</AttributeValue>
160+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
161+
</Match>
162+
</AllOf>
163+
</AnyOf>
164+
</Target>
165+
</Rule>
166+
<Rule Effect="Permit" RuleId="sli:node-subscription-actions">
167+
<Target>
168+
<AnyOf>
169+
<AllOf>
170+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
171+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">VR-Info</AttributeValue>
172+
<AttributeDesignator AttributeId="http://authz-interop.org/AAA/xacml/resource/resource-type" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
173+
</Match>
174+
</AllOf>
175+
</AnyOf>
176+
<AnyOf>
177+
<AllOf>
178+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
179+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Subscribe-VR-Monitoring</AttributeValue>
180+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
181+
</Match>
182+
<Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
183+
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SLI:Unsubscribe-VR-Monitoring</AttributeValue>
184+
<AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
185+
</Match>
186+
</AllOf>
187+
</AnyOf>
188+
</Target>
189+
</Rule>
190+
</Policy>
191+
</PolicySet>

0 commit comments

Comments
 (0)