add doclen calculating
light-weight tool to test train and test pipeline