now.app.base.preprocess module#
- now.app.base.preprocess.preprocess_text(d)[source]#
Splits the text by sentences and puts each sentence into the chunk chunk level.
Generates sentence chunks: Before Document(chunks=[Document(text=’s1. s2. s3’)])
After Document(chunks=[Document(text=None, chunks=[Document(‘s1’), Document(‘s2’)..])])
- Return type
Document