Spaces:
Runtime error
Runtime error
Victoria Slocum
commited on
Commit
Β·
804e6f2
1
Parent(s):
74ea483
Fix: Change wording
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import random
|
|
| 5 |
from spacy.tokens import Span
|
| 6 |
import gradio as gr
|
| 7 |
import pandas as pd
|
| 8 |
-
# import cairosvg
|
| 9 |
import base64
|
| 10 |
|
| 11 |
|
|
@@ -166,12 +165,12 @@ with demo:
|
|
| 166 |
with gr.Column():
|
| 167 |
gr.Markdown("# Pipeline Visualizer")
|
| 168 |
gr.Markdown(
|
| 169 |
-
"### Visualize parts of the spaCy pipeline in an interactive demo")
|
| 170 |
with gr.Column():
|
| 171 |
gr.Image("pipeline.svg")
|
| 172 |
with gr.Box():
|
| 173 |
with gr.Column():
|
| 174 |
-
gr.Markdown(" ## Choose a language model and text")
|
| 175 |
with gr.Row():
|
| 176 |
with gr.Column():
|
| 177 |
model_input = gr.Dropdown(
|
|
@@ -196,7 +195,7 @@ with demo:
|
|
| 196 |
with gr.Row():
|
| 197 |
with gr.Column():
|
| 198 |
gr.Markdown(
|
| 199 |
-
"## [Dependency Parser](https://spacy.io/usage/visualizers#dep)")
|
| 200 |
gr.Markdown(
|
| 201 |
"The dependency visualizer shows part-of-speech tags and syntactic dependencies")
|
| 202 |
with gr.Column():
|
|
@@ -232,7 +231,7 @@ with demo:
|
|
| 232 |
with gr.Row():
|
| 233 |
with gr.Column():
|
| 234 |
gr.Markdown(
|
| 235 |
-
"## [Entity Recognizer](https://spacy.io/usage/visualizers#ent)")
|
| 236 |
gr.Markdown(
|
| 237 |
"The entity visualizer highlights named entities and their labels in a text")
|
| 238 |
with gr.Column():
|
|
@@ -251,7 +250,7 @@ with demo:
|
|
| 251 |
with gr.Row():
|
| 252 |
with gr.Column():
|
| 253 |
gr.Markdown(
|
| 254 |
-
"## [Token Properties](https://spacy.io/usage/linguistic-features)")
|
| 255 |
gr.Markdown(
|
| 256 |
"When you put in raw text to spaCy, it returns a Doc object with different linguistic features")
|
| 257 |
with gr.Column():
|
|
@@ -274,9 +273,9 @@ with demo:
|
|
| 274 |
with gr.Row():
|
| 275 |
with gr.Column():
|
| 276 |
gr.Markdown(
|
| 277 |
-
"## [Word and Phrase Similarity](https://spacy.io/usage/linguistic-features#vectors-similarity)")
|
| 278 |
gr.Markdown(
|
| 279 |
-
"Words and spans have similarity ratings based
|
| 280 |
with gr.Column():
|
| 281 |
with gr.Row():
|
| 282 |
with gr.Column():
|
|
@@ -302,7 +301,7 @@ with demo:
|
|
| 302 |
with gr.Row():
|
| 303 |
with gr.Column():
|
| 304 |
gr.Markdown(
|
| 305 |
-
"## [Spans](https://spacy.io/usage/visualizers#span)")
|
| 306 |
gr.Markdown(
|
| 307 |
"The span visualizer highlights overlapping spans in a text")
|
| 308 |
with gr.Column():
|
|
|
|
| 5 |
from spacy.tokens import Span
|
| 6 |
import gradio as gr
|
| 7 |
import pandas as pd
|
|
|
|
| 8 |
import base64
|
| 9 |
|
| 10 |
|
|
|
|
| 165 |
with gr.Column():
|
| 166 |
gr.Markdown("# Pipeline Visualizer")
|
| 167 |
gr.Markdown(
|
| 168 |
+
"### Visualize parts of the spaCy pipeline in an interactive Gradio demo")
|
| 169 |
with gr.Column():
|
| 170 |
gr.Image("pipeline.svg")
|
| 171 |
with gr.Box():
|
| 172 |
with gr.Column():
|
| 173 |
+
gr.Markdown(" ## Choose a language model and the inputted text")
|
| 174 |
with gr.Row():
|
| 175 |
with gr.Column():
|
| 176 |
model_input = gr.Dropdown(
|
|
|
|
| 195 |
with gr.Row():
|
| 196 |
with gr.Column():
|
| 197 |
gr.Markdown(
|
| 198 |
+
"## [π Dependency Parser](https://spacy.io/usage/visualizers#dep)")
|
| 199 |
gr.Markdown(
|
| 200 |
"The dependency visualizer shows part-of-speech tags and syntactic dependencies")
|
| 201 |
with gr.Column():
|
|
|
|
| 231 |
with gr.Row():
|
| 232 |
with gr.Column():
|
| 233 |
gr.Markdown(
|
| 234 |
+
"## [π Entity Recognizer](https://spacy.io/usage/visualizers#ent)")
|
| 235 |
gr.Markdown(
|
| 236 |
"The entity visualizer highlights named entities and their labels in a text")
|
| 237 |
with gr.Column():
|
|
|
|
| 250 |
with gr.Row():
|
| 251 |
with gr.Column():
|
| 252 |
gr.Markdown(
|
| 253 |
+
"## [π Token Properties](https://spacy.io/usage/linguistic-features)")
|
| 254 |
gr.Markdown(
|
| 255 |
"When you put in raw text to spaCy, it returns a Doc object with different linguistic features")
|
| 256 |
with gr.Column():
|
|
|
|
| 273 |
with gr.Row():
|
| 274 |
with gr.Column():
|
| 275 |
gr.Markdown(
|
| 276 |
+
"## [π Word and Phrase Similarity](https://spacy.io/usage/linguistic-features#vectors-similarity)")
|
| 277 |
gr.Markdown(
|
| 278 |
+
"Words and spans have similarity ratings based on their word vectors")
|
| 279 |
with gr.Column():
|
| 280 |
with gr.Row():
|
| 281 |
with gr.Column():
|
|
|
|
| 301 |
with gr.Row():
|
| 302 |
with gr.Column():
|
| 303 |
gr.Markdown(
|
| 304 |
+
"## [π Spans](https://spacy.io/usage/visualizers#span)")
|
| 305 |
gr.Markdown(
|
| 306 |
"The span visualizer highlights overlapping spans in a text")
|
| 307 |
with gr.Column():
|