Spaces:
Runtime error
Runtime error
Commit
·
99c4583
1
Parent(s):
791e590
Update app.py
Browse files
app.py
CHANGED
@@ -7,16 +7,7 @@ model = pipeline("ner", model="/home/user/app/mendobert/", tokenizer="indolem/in
|
|
7 |
|
8 |
def text_analysis(text):
|
9 |
doc = model(text)
|
10 |
-
|
11 |
-
html = (
|
12 |
-
"<div style='max-width:100%; max-height:360px; overflow:auto'>"
|
13 |
-
+ html
|
14 |
-
+ "</div>"
|
15 |
-
)
|
16 |
-
pos_count = {
|
17 |
-
"char_count": len(text),
|
18 |
-
"token_count": 0,
|
19 |
-
}
|
20 |
pos_tokens = []
|
21 |
|
22 |
for token in doc:
|
|
|
7 |
|
8 |
def text_analysis(text):
|
9 |
doc = model(text)
|
10 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
pos_tokens = []
|
12 |
|
13 |
for token in doc:
|