Spaces:
Runtime error
Runtime error
Commit
·
86474e2
1
Parent(s):
441a387
Update main.py
Browse files
main.py
CHANGED
@@ -1,7 +1,3 @@
|
|
1 |
-
import sys
|
2 |
-
|
3 |
-
import requests
|
4 |
-
|
5 |
from countriesIdentification import identify_locations
|
6 |
from datesIdentification import dates_binding
|
7 |
from magnitudeIdentification import magnitude_binding
|
@@ -9,7 +5,6 @@ from comparativesIdentification import comparatives_binding
|
|
9 |
from earthquaqeIdentification import identify_earthquake_event
|
10 |
|
11 |
|
12 |
-
|
13 |
def process_final_dict(final_dictionary):
|
14 |
"""
|
15 |
Function to convert each one of the error codes from each component into a relevant code number to be handled by the SF
|
@@ -152,7 +147,6 @@ def replace_zero_with_null(d):
|
|
152 |
return d
|
153 |
|
154 |
|
155 |
-
|
156 |
def process_json_sf(nl_json, sentence):
|
157 |
"""
|
158 |
Function to conver the captured information an a relevant json format
|
@@ -173,7 +167,6 @@ def process_json_sf(nl_json, sentence):
|
|
173 |
|
174 |
|
175 |
|
176 |
-
|
177 |
def main(sentence):
|
178 |
"""
|
179 |
Function to bind together all the info and be executed
|
|
|
|
|
|
|
|
|
|
|
1 |
from countriesIdentification import identify_locations
|
2 |
from datesIdentification import dates_binding
|
3 |
from magnitudeIdentification import magnitude_binding
|
|
|
5 |
from earthquaqeIdentification import identify_earthquake_event
|
6 |
|
7 |
|
|
|
8 |
def process_final_dict(final_dictionary):
|
9 |
"""
|
10 |
Function to convert each one of the error codes from each component into a relevant code number to be handled by the SF
|
|
|
147 |
return d
|
148 |
|
149 |
|
|
|
150 |
def process_json_sf(nl_json, sentence):
|
151 |
"""
|
152 |
Function to conver the captured information an a relevant json format
|
|
|
167 |
|
168 |
|
169 |
|
|
|
170 |
def main(sentence):
|
171 |
"""
|
172 |
Function to bind together all the info and be executed
|