Processing sketch with class detecting sentence similarity