csukuangfj
commited on
Commit
•
815053b
1
Parent(s):
c98790c
small fixes
Browse files
decode.py
CHANGED
@@ -123,6 +123,8 @@ def decode(
|
|
123 |
elif len(all_text[-1][0].encode()) == 1 and len(seg.text[0].encode()) == 1:
|
124 |
all_text.append(" ")
|
125 |
all_text.append(seg.text)
|
|
|
|
|
126 |
|
127 |
if punct is not None:
|
128 |
seg.text = punct.add_punctuation(seg.text)
|
|
|
123 |
elif len(all_text[-1][0].encode()) == 1 and len(seg.text[0].encode()) == 1:
|
124 |
all_text.append(" ")
|
125 |
all_text.append(seg.text)
|
126 |
+
else:
|
127 |
+
all_text.append(seg.text)
|
128 |
|
129 |
if punct is not None:
|
130 |
seg.text = punct.add_punctuation(seg.text)
|