-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadd_annotations.py
More file actions
63 lines (57 loc) · 1.63 KB
/
add_annotations.py
File metadata and controls
63 lines (57 loc) · 1.63 KB
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
import json
spans = []
item = {}
item["start"] = 0
item["end"] = 0
item["token_start"] = 0
item["token_end"] = 0
item["label"] = ""
instruments = [
"MLS",
"Microwave Limb Sounder",
"SMR",
"Sub-Millimetre Radiometer",
"Sub-Millimeter Radiometer",
"ACE-FTS",
"Fourier Transform Ultra-Violet Spectrometer",
"SCIAMACHY",
"Scanning Imaging Absorption Spectrometer for Atmospheric Chartography",
"MIPAS",
"Michelson Interferometer for Passive Atmospheric Sounding",
"GEOS",
"Goddard Earth Observing System",
"IASI",
"Infrared Atmospheric Sounding Interferometer",
"HWV",
"Harvard Water Vapor instrument",
"CFH",
"Cryogenic Frostpoint Hygrometer",
"JLH",
"JPL Laser Hygrometer",
"OSIRIS",
"Optical Spectrograph and Infrared Imager System",
"CLAES",
"Cryogenic Limb Array Etalon Spectrometer",
"CALIOP",
"Cloud-Aerosol Lidar with Orthogonal Polarization",
"TOMS",
"total ozone mapping spectrometer",
"MODIS",
"Moderate Resolution Imaging Spectroradiometer",
"OMI",
"Ozone Monitoring Instrument"
]
spacecraft = ["Aura", "AURA", "Odin", "ODIN", "Envisat", "ENVISAT", "UARS", "Upper Atmosphere Research Satellite"]
models = []
experiments = ["ACE", "Atmospheric Chemistry Experiment"]
locations = [] # DOn't know if I want this one
algorithms = []
# Take in data from annotations - Copy.jsonl
# for each JSON
# Check if we have spans
# if yes, spans = spans, if no initialize spans
# text = JSON text
# Substring checking
# spans.append(item)
# spans.append(item)
print(spans)