INNER CODE UNIT · Python

_normalize_title

lopusz/awesome-interpretable-machine-learning · sbin/gener_readme.py:132

    def _normalize_title(title):
        title_norm = title.replace('\n', ' ')
        title_norm = re.sub(r' +', ' ', title_norm)
        return title_norm


    def _normalize_authors(authors):
        return [ [ a['keyname'], a['forenames'] ] for a in authors ]


    def _normalize_arxiv_id(arxiv_id):
        return arxiv_id.replace('oai:arXiv.org:', '')

    met = {}
    title_raw = met_raw['GetRecord']['record']['metadata']['arXiv']['title']
    authors_raw = met_raw['GetRecord']['record']['metadata']['arXiv']['authors']['author']
    if not isinstance(authors_raw, collections.Sequence):
        authors_raw = [ authors_raw ]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…