def get_metadata(folder, usecols=[]):
    '\n    Loads and returns the article metadata.\n    The algorithms expect the format to be a Dataframe with two columns:\n    - "resource_id": unique id for the article\n    - "text": full text of the article (without html tags)\n    '
    if (not usecols):
        usecols = ['text', 'resource_id']
    metadata = pd.read_csv(f'{folder}/meta.csv', usecols=usecols)
    return metadata.dropna(subset=['text'])
Loads and returns the article metadata.
The algorithms expect the format to be a Dataframe with two columns:
- "resource_id": unique id for the article
- "text": full text of the article (without html tags)
def get_metadata(folder, usecols=[]):
    '\n    Loads and returns the article metadata.\n    The algorithms expect the format to be a Dataframe with two columns:\n    - "resource_id": unique id for the article\n    - "text": full text of the article (without html tags)\n    '
    if (not usecols):
        usecols = ['text', 'resource_id']
    metadata = pd.read_csv(f'{folder}/meta.csv', usecols=usecols)
    return metadata.dropna(subset=['text'])