INNER CODE UNIT · Python

format_scholar_data

unrealcv/synthetic-computer-vision · src/gen-reference.py:8

def format_scholar_data(scholar_data):
    # Use paper's scholar data to generate table or bib file.
    for art in scholar_data:
        print art['title']
        # print art['Citations']
        print art['num_citations']
        print art.as_txt()
        print art.as_citation()

def format_as_md_row(paper):
    template = [
        # if k exist, use t1, if not exist use t2
        # (k, t1, t2)
        ('',          '- ', ''),
        ('ID',        '<div id="{ID}"/>', ''),
        ('author',    '[{first_author}, et al.](# "{author}"),', ''), # Hover to see tooltip
        # ('url',       '"[{title}]({url})"', '"{title}"'),
        ('title',     '{title}', 'missing title'),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…