reconstruct wordseg.py