from pathlib import Path


def paths_from_dataset_path(dataset_path):
    """
    Creates paths to the files required for searching the index.
    :param dataset_path: The path to the extracted dataset.
    :return: Paths to various important files/folders for searching the index.
    """
    dataset_path = Path(dataset_path)
    articles_path = dataset_path / 'articles/'
    sentences_path = dataset_path / 'cord_19_sentences.txt'
    mapping_path = dataset_path / 'cord_19_sent_to_article_mapping.json'
    metadata_path = dataset_path / 'metadata.csv'
    return articles_path, sentences_path, mapping_path, metadata_path