This commit is contained in:
andrew (from workstation) 2020-10-16 22:26:24 +02:00
parent 0c0033e5b6
commit ace384c142

View File

@ -37,7 +37,7 @@ def split_docs(docs: typing.List[str]) -> typing.List[str]:
else:
result.append(token)
if len(result) > 1 and len(result[1].split(" ")) < 3:
if len(result) > 1 and len(result[-1].split(" ")) < 3:
result[-2] += f" {result[-1]}"
del result[-1]