segmentator to ws_generator and Text funcionally incorpored to Doc