Update video2.py
Browse files
video2.py
CHANGED
|
@@ -112,7 +112,7 @@ def analyze_and_segment(text):
|
|
| 112 |
global_index = 0
|
| 113 |
|
| 114 |
for word in words:
|
| 115 |
-
clean_w = word.strip(".,!?;:
|
| 116 |
if not clean_w:
|
| 117 |
if current_words:
|
| 118 |
current_words[-1] += word
|
|
|
|
| 112 |
global_index = 0
|
| 113 |
|
| 114 |
for word in words:
|
| 115 |
+
clean_w = word.strip(".,!?;:'")
|
| 116 |
if not clean_w:
|
| 117 |
if current_words:
|
| 118 |
current_words[-1] += word
|