update TEXT.py to support sparse vector formation