def create_article_institute_links(article_id, institute_ids, score):
    """Creates data for the article/institutes association table.
    There will be multiple links if the institute is multinational, one for each country
    entity.

    Args:
        article_id (str): arxiv id of the article
        institute_ids (:obj:`list` of :obj:`str`): institute ids to link with the article
        score (numpy.float64): score for the match

    Returns:
        (:obj:`list` of :obj:`dict`): article institute links ready to load to database
    """
    return [{'article_id': article_id,
             'institute_id': institute_id,
             'is_multinational': len(institute_ids) > 1,
             'matching_score': float(score)}
            for institute_id in institute_ids]