Fixed Extrach_vocab method

-- Removed duplicates from extract_vocab