Add category in extract_metadata and corpus_root in config