utils
some utility functions
segment
segment (text:str, unit:str='paragraph', maxchars:int=2048)
Segments text into a list of paragraphs or sentences depending on value of unit
(one of {'paragraph', 'sentence'}
. The maxchars
parameter is the maximum size of any unit of text.
split_list
split_list (input_list, chunk_size)
get_datadir
get_datadir ()
download
download (url, filename, verify=False)