Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|