update the way of pre-processing, to use dictionary instead of edit text
use text as pipeline stage