Spaces:
Running
Running
escaped colon
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ if sentence:
|
|
| 92 |
table_md += "| " + " | ".join(["---"]*10) + " |\n"
|
| 93 |
for line in ud_output[2:]:
|
| 94 |
# Each UD line as a table row
|
| 95 |
-
cells = line.replace('_', '\\_').replace('|', '|').split('\t')
|
| 96 |
table_md += "| " + " | ".join(cells) + " |\n"
|
| 97 |
table_md += "</div>" # Close the RTL div
|
| 98 |
print(table_md)
|
|
|
|
| 92 |
table_md += "| " + " | ".join(["---"]*10) + " |\n"
|
| 93 |
for line in ud_output[2:]:
|
| 94 |
# Each UD line as a table row
|
| 95 |
+
cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
|
| 96 |
table_md += "| " + " | ".join(cells) + " |\n"
|
| 97 |
table_md += "</div>" # Close the RTL div
|
| 98 |
print(table_md)
|