add function to extract feature in vocabulary