finish the draft of lda/src/extract-cs.py