Update visualizer_dev.py
Browse files- visualizer_dev.py +1 -1
visualizer_dev.py
CHANGED
|
@@ -100,7 +100,7 @@ def print_srl_frames_pretty(words, frames, show_grid=True, color=False):
|
|
| 100 |
t = tags[i]
|
| 101 |
if t == "O":
|
| 102 |
i += 1; continue
|
| 103 |
-
if t.endswith("-V"): #
|
| 104 |
spans.append(("V", i, i))
|
| 105 |
i += 1; continue
|
| 106 |
if t.startswith("B-"):
|
|
|
|
| 100 |
t = tags[i]
|
| 101 |
if t == "O":
|
| 102 |
i += 1; continue
|
| 103 |
+
if t.endswith("-V"): # may include/exclude the V span as you like
|
| 104 |
spans.append(("V", i, i))
|
| 105 |
i += 1; continue
|
| 106 |
if t.startswith("B-"):
|