Shunfeng Zheng commited on
Commit
6107bcc
·
verified ·
1 Parent(s): bf07ac2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,6 +46,7 @@ BASE_URL = ""
46
  model = ""
47
  types = ""
48
  nlp = spacy.load("en_core_web_md")
 
49
  gpe_selected = 'GPE'
50
  loc_selected = 'loc'
51
  rse_selected = 'rse'
@@ -186,7 +187,7 @@ def get_spatial_ent(doc):
186
  def extract_spatial_entities(text):
187
 
188
 
189
- nlp.add_pipe("spatial_pipeline", after="ner")
190
  doc = nlp(text)
191
 
192
  # 分句处理
 
46
  model = ""
47
  types = ""
48
  nlp = spacy.load("en_core_web_md")
49
+ nlp.add_pipe("spatial_pipeline", after="ner")
50
  gpe_selected = 'GPE'
51
  loc_selected = 'loc'
52
  rse_selected = 'rse'
 
187
  def extract_spatial_entities(text):
188
 
189
 
190
+
191
  doc = nlp(text)
192
 
193
  # 分句处理