Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def TextProcessor(txt):
|
|
57 |
#txt_summarization = summarizer(txt)
|
58 |
#result_01 = txt_summarization[0]
|
59 |
|
60 |
-
result_02 = ner(txt)
|
61 |
|
62 |
blob = TextBlob(txt)
|
63 |
POS_List = blob.tags
|
@@ -67,8 +67,8 @@ def TextProcessor(txt):
|
|
67 |
|
68 |
verb_phrases = [vp for vp in POS_List if "V" in vp[1][0]]
|
69 |
result_04 = verb_phrases
|
70 |
-
results = ("
|
71 |
-
#"Summary:", result_01['summary_text'],
|
72 |
return results
|
73 |
|
74 |
final = gr.Interface(fn = TextProcessor, inputs = "text", outputs = "text")
|
|
|
57 |
#txt_summarization = summarizer(txt)
|
58 |
#result_01 = txt_summarization[0]
|
59 |
|
60 |
+
#result_02 = ner(txt)
|
61 |
|
62 |
blob = TextBlob(txt)
|
63 |
POS_List = blob.tags
|
|
|
67 |
|
68 |
verb_phrases = [vp for vp in POS_List if "V" in vp[1][0]]
|
69 |
result_04 = verb_phrases
|
70 |
+
results = ("noun_phrases:", result_03, "verb_phrases:", result_04)
|
71 |
+
#"Summary:", result_01['summary_text'], "NER:", result_02,
|
72 |
return results
|
73 |
|
74 |
final = gr.Interface(fn = TextProcessor, inputs = "text", outputs = "text")
|