added option to extract POS tags