Merge pull request #26 from liuhaozhe6788/develop

不将文本的冒号改为句点
This commit is contained in:
liuhaozhe6788
2022-12-30 21:06:28 +08:00
committed by GitHub
2 changed files with 0 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -231,7 +231,6 @@ if __name__ == '__main__':
text = text.replace('-', ' ')
text = text.replace(',', '.')
text = text.replace(';', '.')
text = text.replace(':', '.')
text = text.replace('~', ' to ')
text=hashtable.splitword(text)
texts = [i.text.strip() for i in nlp(text).sents] # split paragraph to sentences