Extracting subsentences according to window sizes