tdubon commited on
Commit
1379442
·
1 Parent(s): 70cda52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -11,10 +11,10 @@ nlp = spacy.load("en_core_web_md")
11
  def process_text(text1):
12
  d = load(text1)
13
  return [
14
- for ent in doc1.ents:
15
- print(ent.text, ent.label_)
16
- for ent in doc1.ents:
17
- print(ent.label_, spacy.explain(ent.label_))
18
  ]
19
 
20
  def load(text):
 
11
  def process_text(text1):
12
  d = load(text1)
13
  return [
14
+ (for ent in doc1.ents:
15
+ print(ent.text, ent.label_))
16
+ (for ent in doc1.ents:
17
+ print(ent.label_, spacy.explain(ent.label_)))
18
  ]
19
 
20
  def load(text):