ethaneng commited on
Commit
6c587e1
·
verified ·
1 Parent(s): 4104e8f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -3
README.md CHANGED
@@ -1,3 +1,67 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: token-classification
4
+ tags:
5
+ - GLiNER,
6
+ - entity recognition,
7
+ - NER,
8
+ - aviation safety
9
+ language:
10
+ - en
11
+ base_model:
12
+ - numind/NuNER_Zero
13
+ ---
14
+
15
+ aviation-ner is a fine-tuned a transformer based model to identify and extract aviation hazards associated with product factors from Service Difficulty Reports. The work is a collaboration between FAA and Boeing data scientist teams. The NER model will enhance searchability and facilitate clustering and trend analysis of safety events.
16
+
17
+ Entity Definition Flight Phase (FLT)
18
+ It references to the IATA taxonomy that focuses on safety management. IATA includes flight planning and ground servicing phases since these phases can directly impact a flight.
19
+
20
+ Product Location (LOC)
21
+ A location within the airplane and directional information which disambiguates one Product Factor from another or helps to identify each aircraft component specifically
22
+
23
+ Crew Action (ACT)
24
+ A task which is/was carried out to attempt to resolve/correct a Product Condition excluding maintenance action. Examples: follow QRH, complied with procedure, run or accomplished procedure, disable/enable systems, turn on/off systems, change state of the airplane or its systems, change flight phase, change flight altitude, etc. Communication related actions such as request, call, notify, and notice are excluded.
25
+
26
+ Product (PROD)
27
+ Airplane and components/equipment/systems installed on the delivered product. Typically, this means something that you can touch, hold, remove, replace, control or interact with. Examples: tire pressure, software, navigation database, and cabin pressure.
28
+
29
+ Product Condition (PCON)
30
+ A specific quality, behavior, or situation with regards to a Product Factor or Product Location. Examples: Smoke, Fire, Fumes, Odor, Loss of Aircraft Control, FOD, Fuel Issue, Gear Up Landing, Ground Strike, Jet Blast, Loss of VLOS
31
+
32
+ Bird strike or Animal strike (BIRD)
33
+ Bird strike or a near miss between an aircraft and wildlife, during high-speed take-off or landing. For animal strike, an impact/collision between an aircraft and wildlife (Deer, elk, coyote, fox), during high-speed take-off or landing
34
+
35
+ Emergency or Abnormal Situation (SIT)
36
+ An emergency situation is one in which the safety of the aircraft or of persons on board or on the ground is endangered for any reason. An abnormal situation is one in which it is no longer possible to continue the flight using normal procedures but the safety of the aircraft or persons on board or on the ground is not in danger. Examples: Evacuated, Flight Cancelled/Delayed, Diverted, Executed Go Around / Missed Approach, Inflight Shutdown, Exited Penetrated Airspace, FLC Overrode Automation, FLC Complied with Automation / Advisory, Landed as Precaution, Landed in Emergency Condition, Overcame Equipment Problem, Regained Aircraft Control, Rejected Takeoff, Requested ATC Assistance/Clarification, Returned to Clearance, Returned to Departure Airport, Returned to Gate, Returned to Home, Took Evasive Action
37
+
38
+
39
+ ## Installation & Usage
40
+
41
+ ```
42
+ !pip install gliner==0.1.12
43
+ ```
44
+
45
+ **NuZero requires labels to be lower-cased**
46
+
47
+ ```python
48
+ from gliner import GLiNER
49
+
50
+ def merge_entities(entities):
51
+ if not entities:
52
+ return []
53
+ merged = []
54
+ current = entities[0]
55
+ for next_entity in entities[1:]:
56
+ if next_entity['label'] == current['label'] and (next_entity['start'] == current['end'] + 1 or next_entity['start'] == current['end']):
57
+ current['text'] = text[current['start']: next_entity['end']].strip()
58
+ current['end'] = next_entity['end']
59
+ else:
60
+ merged.append(current)
61
+ current = next_entity
62
+ # Append the last entity
63
+ merged.append(current)
64
+ return merged
65
+
66
+
67
+ model = GLiNER.from_pretrained("numind/NuNerZero")