ethaneng commited on
Commit
5af290b
·
verified ·
1 Parent(s): d64ea0d

Update README.md

Browse files

-added pip install git repo to boeing ner
-added import os
-fixed syntax error

Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -54,6 +54,7 @@ Examples: Evacuated, Flight Cancelled/Delayed, Diverted, Executed Go Around / Mi
54
 
55
  ```
56
  !pip install gliner==0.1.12
 
57
  ```
58
 
59
  **NuZero requires labels to be lower-cased**
@@ -61,6 +62,7 @@ Examples: Evacuated, Flight Cancelled/Delayed, Diverted, Executed Go Around / Mi
61
  ```python
62
  import pandas as pd
63
  import re
 
64
  import time
65
  from gliner import GLiNER
66
  from ner_tokenization import NerTokenization
@@ -70,8 +72,7 @@ class NERTagging:
70
 
71
  def __init__(self, model_path):
72
 
73
- if (os.path.exists(model_path))
74
- self.model = GLiNER.from_pretrained(model_path, local_files_only=True)
75
  else: self.model = GLiNER.from_pretrained(model_path)
76
 
77
  self.tokenizer = NerTokenization()
 
54
 
55
  ```
56
  !pip install gliner==0.1.12
57
+ !pip install git+https://github.com/Boeing/aviation_ner_sdr@main
58
  ```
59
 
60
  **NuZero requires labels to be lower-cased**
 
62
  ```python
63
  import pandas as pd
64
  import re
65
+ import os
66
  import time
67
  from gliner import GLiNER
68
  from ner_tokenization import NerTokenization
 
72
 
73
  def __init__(self, model_path):
74
 
75
+ if (os.path.exists(model_path)): self.model = GLiNER.from_pretrained(model_path, local_files_only=True)
 
76
  else: self.model = GLiNER.from_pretrained(model_path)
77
 
78
  self.tokenizer = NerTokenization()