/
parentheticals.py
416 lines (414 loc) · 7.25 KB
/
parentheticals.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
BLACKLIST = set([
'1970 acm turing lecture',
'1st ed.',
'1st edition',
'2nd ed.',
'3rd edition',
'abridged version',
'abstract',
'abstract of invited tutorial',
'abstract only',
'abstracts',
"acm president's letter",
'addison-wesley professional ruby series',
'a. m. turing award lecture',
'an announcement',
'an extended abstract',
'a preliminary version',
'avstract',
'awarded best paper!',
'awarded best paper',
'awarded best student paper!',
'awarded best student paper',
'best paper',
'brief announcement',
'brief announement',
'demo',
'demonstration description',
'detailed abstract',
'draft',
"editor's introduction",
'experience paper',
'extenced abstract',
'extended abstract',
'extended abstracts',
'extended announcement',
'extended anstract',
'extended astract',
'extended summary',
'extended version',
"guest editor's introduction",
"guest editors' introduction",
"guest editors' intruduction",
'indroduction to the special section on logic programming',
'interview',
'introduction to the special issue',
'introduction to the special section',
'intruduction to the special section',
'invited address',
'invited paper',
'keynote address',
'microsoft windows server system series',
'panel',
'panel abstract',
'panel session, abstract only',
'panel session - title only',
'panel session, title only',
'panel statement',
'partial report',
'pearl',
'podc 1984 invited address',
'poster',
'poster abstract',
'preliminary abstract',
'preliminary draught',
'preliminary report',
'preliminary reports',
'preliminary version',
'prentice hall open source software development series',
'proceedings',
'remarks',
'report of the jtec panel',
'reprint',
'second edition',
'short abstract',
'shortened version',
'sintra, portugal, 7-10 september 1998',
'summary',
"surveyors' forum",
'turing award lecture',
'tutorial',
'working paper',
'work in progress, abstract',
])
WHITELIST = set([
'!=',
'?',
'0, 1',
'1',
'1, 2',
'1, 342 times and counting',
'1600 cpi, phase encoded',
'1923 - 2008',
'1925-2008',
'1926-2008',
'1956-2005',
'1972-2006',
'1976-1978',
'1982',
'1993',
'1 + beta',
'1 + eps',
'1 + epsilon',
'1+, varepsilon;, beta',
'2 + epsilon',
'2+epsilon',
'2k',
'32x40 gbit/s',
'800 cpi, nrzi',
'802.6',
'9 track-200 and 800 cpi, nrzi and 1600 cpi, p.e.',
'a case of error reporting system',
'acsii',
'active suspension',
'acyclic',
'advances in information security',
'a fictional case study',
'aims',
'aims-2',
'aims-3',
'algorithm a433',
'algorithm a438',
'almost',
'alpha, beta',
'and a letter',
'and an app store',
'and beyond?',
'and beyond',
'and commit',
'and darwinian',
'and everthing in between',
'and everything else',
'and future',
'and how flash memory changes the rules',
'and how not',
'and how not to',
"and how they're sometimes found",
'and mistrust',
'and other',
'and others too!',
'and pretty good for quantum as well',
'and safety',
'and the sesame street syndrome',
'and trusting no one',
'a polynomial algorithm for 3-compatible colouring and the stubborn list partition problem',
'applications of comparative physical maps in molecular evolution',
'april 1984 special section',
'are not',
'arik, m. and akan, o.b.',
'a state-of-the-art report on omg/corba',
'a usaai',
'beta,gamma,delta',
'biastm',
'bpm',
'bsr',
'btx',
'bus',
'but we all see the point of tainting',
'byzantine agreement on uniformly random values',
'cam',
'cbids',
'c-fd3r mac',
'class hierarchical open interface for custom embedded systems',
'commerce edition',
'components + patterns',
'computer',
'computer communications and networks',
'conference report: compcon 96',
'connected',
'connectionless',
'console operator proficiency examination',
"cop's",
'cosers',
'cost',
'creation and use',
'csma/ri',
'cycles, and partitions',
'data',
'database',
'dctcp',
'de',
'deadlock detection',
'demo abstract',
'de-sco',
'deterministic',
'dft-msns',
'dir',
'dis',
'disco',
'd, k',
'double soft decision',
'dsdv',
'dynamic',
'early and often?',
'else',
'epsilon, delta',
'esair',
'even and odd orders',
'even order',
'expected time',
'fairly',
'fdna-03',
'febid 2010',
'ferrite',
'+-f(+-f(...+-f(x)...))',
'fitting distances by tree metrics',
'fiwi',
'for high-concurrency servers',
'for vlsi',
'fqse',
'gier algol',
'googling the internet',
'gradually',
'h-015',
'hdsl and adsl',
'h-k',
'hms',
'hopefully',
"hotpower'11",
"hotswup'09",
"hotswup'11",
'hyper',
"ifip/sec'84 proceedings",
"ifip/sec'85 proceedings",
'ii',
'iir',
'im',
'in',
'in cournot competition',
'incremental',
'indeterministic',
'information pollution',
'in java',
'in networking',
'intermittent assertions in proving program correctness',
'internals overview',
'intervals',
'isap',
'jsq',
'june 1962',
'<= k',
'k <= 6',
'k, r',
'ladis 2009',
'ladis 2011',
'lbc',
'ldl',
'ldl1',
'learning a string',
'lms',
'log ^c n',
'log c n',
'log n',
"maier's o-logic revisited",
'mar/apr 08 26-32',
'max, min',
'meta',
'milman',
'mis',
'mlr',
'm&m',
'mod p - mod m',
'more',
'mtit',
'mud',
'multi',
'multimesh',
'natural',
'n, d',
'nearly',
'nemo',
'netdb 2009',
'networks of workstations',
'nicta',
'n log n',
'non-',
'non',
'non-uniform message-passing',
"nossdav '93",
'not',
'not a privilege',
'not so',
'ns32532',
'n, t',
'object database and environment',
'odd and even orders',
'odd and, even orders',
'odd order',
'oetc',
'of communications',
'ofdma-pon',
'on behalf of john cocke',
'online',
'only',
"opensig'98",
'opsinet',
'optimal',
'oracle curve plotter',
'or, business processes for database researchers',
'or half-truths',
'or how to turn ideas into live systems in a breeze',
'or not',
'or, programs from outer space',
'or repetitive consensus',
'or, routing issues in mpls',
'or towards a standard ada subset',
'or vice versa',
'or why capabilities might have been invented',
'or, why mazes are easier to search than graphs',
'output',
'over',
'parallel',
'part 1',
'part 2',
'part i',
'part ii',
'part i: the architecture',
'pc-smz',
'physical design tuning',
'poly',
'polynomial algorithm for genomic distance problem',
'p, q',
'priority queue',
'probably',
"proc. sigmod'03",
'proposed',
'psa',
'psbgp',
'qpr-tcm',
'qspnet',
'rad-mud',
'ra-dsl',
'raid',
'rdkm',
're',
'really',
'rectangular matrices',
'remark on algorithms 352, 385, 392',
'repeated',
'rfcs',
'rladsms',
'rohc',
'rome',
'rwa',
's',
'satnet',
'sba',
's-bgp',
'sdd-1',
'secret',
'sembegs',
'semi',
'sharqfec',
'shielded',
'software',
'some',
'some preprocessing required',
"sosp'99",
'source',
'speed08',
's.p.m',
'spo protocol',
's, t',
'stack',
'standard',
'storage',
'stream-enabled',
'sundr',
'systor 2007',
't + 1',
'talking with julian gosper, jean-luc agathos, richard rutter, and terry coatta',
'the choice of decimal or binary representation',
'the odds are on his side',
'the open channel',
'the vasa',
'travelocity-based detouring',
'tribute, jonathan b. postel 1943-1998',
'turbo',
u'1935-2007',
u'1+epsilon',
u'1+\u03ad',
u'1 + \u03b5',
'un',
'unproven',
'unto',
'unweighted',
u'o, \u03ba',
'ural',
'ussr',
'very',
'viewpoint',
'vlsi',
'wavelength',
'weakly',
'wep',
'what is the info age?',
'what once was',
'what time will you die?',
'where will the brain power come from?',
'why id might not be strict',
'wie2009',
'wie2011',
'wit',
'without conditional statements',
'without it even noticing',
'without matrix multiplication',
'without powerdomains',
'workshop rewiew',
'worm',
'wyxiwyg',
'x',
'x.1500',
'xquery by example',
])
TRANSLATE = {'ISDN, panel': 'ISDN'}