I am implementing Segmenter and SpellCorrector using corpus generated by me, and when ever I instantiate corpus for Segmenter or SpellCorrector it return me with the error as

Corpus was generated as mention using script provided at site-package/ekphrasis/tools/
I am running these in docker container and instantiate corpus is implement at init.py
any resolution to it
I also thought that something is wrong with my corpus so i also ran it with corpus="english" and still same problem