Find jurisdiction

This commit is contained in:
theta00 2022-05-03 14:56:00 +02:00
parent e3b81c05f4
commit 1ef61ecf9b
2 changed files with 273 additions and 0 deletions

19
run.py
View File

@ -51,3 +51,22 @@ with open('test-A/out.tsv', 'w') as file:
else:
file.write('\n')
# In[45]:
with open('train/in.tsv', 'r', encoding='utf8') as file:
lines = file.readlines()
# In[46]:
with open('train/out.tsv', 'w') as file:
for line in lines:
jur = regex.search(line)
if jur:
file.write('jurisdiction=' + jur.group().replace(' ', '_') +'\n')
else:
file.write('\n')

254
train/out.tsv Normal file
View File

@ -0,0 +1,254 @@
jurisdiction=Oregon
jurisdiction=Delaware
jurisdiction=Florida
jurisdiction=Pennsylvania
jurisdiction=California
jurisdiction=California
jurisdiction=Virgin_Islands
jurisdiction=Delaware
jurisdiction=Illinois
jurisdiction=New_York
jurisdiction=Delaware
jurisdiction=Iowa
jurisdiction=Delaware
jurisdiction=Indiana
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Colorado
jurisdiction=Georgia
jurisdiction=New_York
jurisdiction=Oregon
jurisdiction=Pennsylvania
jurisdiction=Delaware
jurisdiction=Florida
jurisdiction=Delaware
jurisdiction=Illinois
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=California
jurisdiction=California
jurisdiction=Missouri
jurisdiction=Oregon
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Connecticut
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=Illinois
jurisdiction=Idaho
jurisdiction=Florida
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Minnesota
jurisdiction=Virginia
jurisdiction=California
jurisdiction=Nevada
jurisdiction=Nevada
jurisdiction=New_York
jurisdiction=Washington
jurisdiction=Pennsylvania
jurisdiction=Ohio
jurisdiction=Nevada
jurisdiction=Georgia
jurisdiction=Massachusetts
jurisdiction=Texas
jurisdiction=New_York
jurisdiction=New_York
jurisdiction=Virginia
jurisdiction=Wisconsin
jurisdiction=Nevada
jurisdiction=Oregon
jurisdiction=Pennsylvania
jurisdiction=Ohio
jurisdiction=Delaware
jurisdiction=South_Dakota
jurisdiction=New_York
jurisdiction=Indiana
jurisdiction=Pennsylvania
jurisdiction=Minnesota
jurisdiction=Kansas
jurisdiction=Florida
jurisdiction=Illinois
jurisdiction=Indiana
jurisdiction=Delaware
jurisdiction=Illinois
jurisdiction=California
jurisdiction=California
jurisdiction=California
jurisdiction=Maine
jurisdiction=North_Carolina
jurisdiction=Delaware
jurisdiction=Georgia
jurisdiction=Missouri
jurisdiction=New_York
jurisdiction=Georgia
jurisdiction=New_York
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Oregon
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=Connecticut
jurisdiction=Utah
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Ohio
jurisdiction=California
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=South_Carolina
jurisdiction=Texas
jurisdiction=New_York
jurisdiction=Nevada
jurisdiction=Georgia
jurisdiction=Massachusetts
jurisdiction=Texas
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=New_Jersey
jurisdiction=Pennsylvania
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Nevada
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Oregon
jurisdiction=North_Carolina
jurisdiction=Pennsylvania
jurisdiction=Maryland
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=Massachusetts
jurisdiction=District_
jurisdiction=New_York
jurisdiction=Missouri
jurisdiction=Virginia
jurisdiction=California
jurisdiction=Delaware
jurisdiction=California
jurisdiction=Wisconsin
jurisdiction=Washington
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Puerto_Rico
jurisdiction=Delaware
jurisdiction=Massachusetts
jurisdiction=Delaware
jurisdiction=Ohio
jurisdiction=Illinois
jurisdiction=New_York
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Massachusetts
jurisdiction=Delaware
jurisdiction=Utah
jurisdiction=Washington
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=California
jurisdiction=Colorado
jurisdiction=Kansas
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Washington
jurisdiction=Kentucky
jurisdiction=Michigan
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=California
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Texas
jurisdiction=New_York
jurisdiction=New_York
jurisdiction=Delaware
jurisdiction=Missouri
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Florida
jurisdiction=Delaware
jurisdiction=Oregon
jurisdiction=New_York
jurisdiction=New_York
jurisdiction=Texas
jurisdiction=District_
jurisdiction=Florida
jurisdiction=Delaware
jurisdiction=Alabama
jurisdiction=Delaware
jurisdiction=Indiana
jurisdiction=Oregon
jurisdiction=Minnesota
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=California
jurisdiction=New_York
jurisdiction=Delaware
jurisdiction=Colorado
jurisdiction=Pennsylvania
jurisdiction=New_York
jurisdiction=Indiana
jurisdiction=California
jurisdiction=Pennsylvania
jurisdiction=Massachusetts
jurisdiction=Delaware
jurisdiction=Virginia
jurisdiction=Ohio
jurisdiction=Illinois
jurisdiction=California
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Oregon
jurisdiction=Texas
jurisdiction=Texas
jurisdiction=Michigan
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Florida
jurisdiction=Delaware
jurisdiction=Ohio
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Georgia
jurisdiction=New_York
jurisdiction=Massachusetts
jurisdiction=Texas
jurisdiction=New_York
jurisdiction=Pennsylvania
jurisdiction=Michigan
jurisdiction=Washington
jurisdiction=Ohio
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=California
jurisdiction=California
jurisdiction=Delaware
jurisdiction=Delaware
jurisdiction=Ohio
jurisdiction=Delaware
jurisdiction=New_York
jurisdiction=California
jurisdiction=Pennsylvania
jurisdiction=New_York
jurisdiction=District_
jurisdiction=Delaware
jurisdiction=Florida
jurisdiction=Delaware
jurisdiction=District_
jurisdiction=California
jurisdiction=Delaware
1 jurisdiction=Oregon
2 jurisdiction=Delaware
3 jurisdiction=Florida
4 jurisdiction=Pennsylvania
5 jurisdiction=California
6 jurisdiction=California
7 jurisdiction=Virgin_Islands
8 jurisdiction=Delaware
9 jurisdiction=Illinois
10 jurisdiction=New_York
11 jurisdiction=Delaware
12 jurisdiction=Iowa
13 jurisdiction=Delaware
14 jurisdiction=Indiana
15 jurisdiction=Delaware
16 jurisdiction=Delaware
17 jurisdiction=New_York
18 jurisdiction=Delaware
19 jurisdiction=Delaware
20 jurisdiction=Colorado
21 jurisdiction=Georgia
22 jurisdiction=New_York
23 jurisdiction=Oregon
24 jurisdiction=Pennsylvania
25 jurisdiction=Delaware
26 jurisdiction=Florida
27 jurisdiction=Delaware
28 jurisdiction=Illinois
29 jurisdiction=Delaware
30 jurisdiction=Delaware
31 jurisdiction=California
32 jurisdiction=California
33 jurisdiction=Missouri
34 jurisdiction=Oregon
35 jurisdiction=Delaware
36 jurisdiction=Delaware
37 jurisdiction=Connecticut
38 jurisdiction=Delaware
39 jurisdiction=New_York
40 jurisdiction=Illinois
41 jurisdiction=Idaho
42 jurisdiction=Florida
43 jurisdiction=Delaware
44 jurisdiction=Delaware
45 jurisdiction=Minnesota
46 jurisdiction=Virginia
47 jurisdiction=California
48 jurisdiction=Nevada
49 jurisdiction=Nevada
50 jurisdiction=New_York
51 jurisdiction=Washington
52 jurisdiction=Pennsylvania
53 jurisdiction=Ohio
54 jurisdiction=Nevada
55 jurisdiction=Georgia
56 jurisdiction=Massachusetts
57 jurisdiction=Texas
58 jurisdiction=New_York
59 jurisdiction=New_York
60 jurisdiction=Virginia
61 jurisdiction=Wisconsin
62 jurisdiction=Nevada
63 jurisdiction=Oregon
64 jurisdiction=Pennsylvania
65 jurisdiction=Ohio
66 jurisdiction=Delaware
67 jurisdiction=South_Dakota
68 jurisdiction=New_York
69 jurisdiction=Indiana
70 jurisdiction=Pennsylvania
71 jurisdiction=Minnesota
72 jurisdiction=Kansas
73 jurisdiction=Florida
74 jurisdiction=Illinois
75 jurisdiction=Indiana
76 jurisdiction=Delaware
77 jurisdiction=Illinois
78 jurisdiction=California
79 jurisdiction=California
80 jurisdiction=California
81 jurisdiction=Maine
82 jurisdiction=North_Carolina
83 jurisdiction=Delaware
84 jurisdiction=Georgia
85 jurisdiction=Missouri
86 jurisdiction=New_York
87 jurisdiction=Georgia
88 jurisdiction=New_York
89 jurisdiction=Delaware
90 jurisdiction=Delaware
91 jurisdiction=Oregon
92 jurisdiction=Delaware
93 jurisdiction=New_York
94 jurisdiction=Connecticut
95 jurisdiction=Utah
96 jurisdiction=Delaware
97 jurisdiction=Delaware
98 jurisdiction=Ohio
99 jurisdiction=California
100 jurisdiction=Delaware
101 jurisdiction=New_York
102 jurisdiction=South_Carolina
103 jurisdiction=Texas
104 jurisdiction=New_York
105 jurisdiction=Nevada
106 jurisdiction=Georgia
107 jurisdiction=Massachusetts
108 jurisdiction=Texas
109 jurisdiction=Delaware
110 jurisdiction=New_York
111 jurisdiction=New_Jersey
112 jurisdiction=Pennsylvania
113 jurisdiction=Delaware
114 jurisdiction=Delaware
115 jurisdiction=Nevada
116 jurisdiction=Delaware
117 jurisdiction=Delaware
118 jurisdiction=Delaware
119 jurisdiction=Oregon
120 jurisdiction=North_Carolina
121 jurisdiction=Pennsylvania
122 jurisdiction=Maryland
123 jurisdiction=Delaware
124 jurisdiction=Delaware
125 jurisdiction=New_York
126 jurisdiction=Massachusetts
127 jurisdiction=District_
128 jurisdiction=New_York
129 jurisdiction=Missouri
130 jurisdiction=Virginia
131 jurisdiction=California
132 jurisdiction=Delaware
133 jurisdiction=California
134 jurisdiction=Wisconsin
135 jurisdiction=Washington
136 jurisdiction=Delaware
137 jurisdiction=Delaware
138 jurisdiction=Puerto_Rico
139 jurisdiction=Delaware
140 jurisdiction=Massachusetts
141 jurisdiction=Delaware
142 jurisdiction=Ohio
143 jurisdiction=Illinois
144 jurisdiction=New_York
145 jurisdiction=Delaware
146 jurisdiction=Delaware
147 jurisdiction=Massachusetts
148 jurisdiction=Delaware
149 jurisdiction=Utah
150 jurisdiction=Washington
151 jurisdiction=Delaware
152 jurisdiction=Delaware
153 jurisdiction=California
154 jurisdiction=Colorado
155 jurisdiction=Kansas
156 jurisdiction=Delaware
157 jurisdiction=Delaware
158 jurisdiction=Delaware
159 jurisdiction=Washington
160 jurisdiction=Kentucky
161 jurisdiction=Michigan
162 jurisdiction=Delaware
163 jurisdiction=Delaware
164 jurisdiction=Delaware
165 jurisdiction=Delaware
166 jurisdiction=Delaware
167 jurisdiction=California
168 jurisdiction=Delaware
169 jurisdiction=Delaware
170 jurisdiction=Delaware
171 jurisdiction=Texas
172 jurisdiction=New_York
173 jurisdiction=New_York
174 jurisdiction=Delaware
175 jurisdiction=Missouri
176 jurisdiction=Delaware
177 jurisdiction=Delaware
178 jurisdiction=Florida
179 jurisdiction=Delaware
180 jurisdiction=Oregon
181 jurisdiction=New_York
182 jurisdiction=New_York
183 jurisdiction=Texas
184 jurisdiction=District_
185 jurisdiction=Florida
186 jurisdiction=Delaware
187 jurisdiction=Alabama
188 jurisdiction=Delaware
189 jurisdiction=Indiana
190 jurisdiction=Oregon
191 jurisdiction=Minnesota
192 jurisdiction=Delaware
193 jurisdiction=Delaware
194 jurisdiction=California
195 jurisdiction=New_York
196 jurisdiction=Delaware
197 jurisdiction=Colorado
198 jurisdiction=Pennsylvania
199 jurisdiction=New_York
200 jurisdiction=Indiana
201 jurisdiction=California
202 jurisdiction=Pennsylvania
203 jurisdiction=Massachusetts
204 jurisdiction=Delaware
205 jurisdiction=Virginia
206 jurisdiction=Ohio
207 jurisdiction=Illinois
208 jurisdiction=California
209 jurisdiction=Delaware
210 jurisdiction=Delaware
211 jurisdiction=Oregon
212 jurisdiction=Texas
213 jurisdiction=Texas
214 jurisdiction=Michigan
215 jurisdiction=Delaware
216 jurisdiction=Delaware
217 jurisdiction=Florida
218 jurisdiction=Delaware
219 jurisdiction=Ohio
220 jurisdiction=Delaware
221 jurisdiction=Delaware
222 jurisdiction=Delaware
223 jurisdiction=Georgia
224 jurisdiction=New_York
225 jurisdiction=Massachusetts
226 jurisdiction=Texas
227 jurisdiction=New_York
228 jurisdiction=Pennsylvania
229 jurisdiction=Michigan
230 jurisdiction=Washington
231 jurisdiction=Ohio
232 jurisdiction=Delaware
233 jurisdiction=Delaware
234 jurisdiction=California
235 jurisdiction=California
236 jurisdiction=Delaware
237 jurisdiction=Delaware
238 jurisdiction=Ohio
239 jurisdiction=Delaware
240 jurisdiction=New_York
241 jurisdiction=California
242 jurisdiction=Pennsylvania
243 jurisdiction=New_York
244 jurisdiction=District_
245 jurisdiction=Delaware
246 jurisdiction=Florida
247 jurisdiction=Delaware
248 jurisdiction=District_
249 jurisdiction=California
250 jurisdiction=Delaware