Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from spacy_streamlit import visualize_parser
|
|
7 |
from spacy_streamlit import visualize_tokens
|
8 |
import base64
|
9 |
from PIL import Image
|
|
|
10 |
|
11 |
|
12 |
|
@@ -81,4 +82,7 @@ def visualize_parser(
|
|
81 |
visualize_parser(doc)
|
82 |
|
83 |
|
|
|
|
|
|
|
84 |
visualize_tokens(doc, attrs=["text", "lemma_", "pos_", "dep_"], title="Table view:", key="tokens")
|
|
|
7 |
from spacy_streamlit import visualize_tokens
|
8 |
import base64
|
9 |
from PIL import Image
|
10 |
+
import pandas
|
11 |
|
12 |
|
13 |
|
|
|
82 |
visualize_parser(doc)
|
83 |
|
84 |
|
85 |
+
pd.set_option('display.max_colwidth', None)
|
86 |
+
|
87 |
+
|
88 |
visualize_tokens(doc, attrs=["text", "lemma_", "pos_", "dep_"], title="Table view:", key="tokens")
|