INNER CODE UNIT · Python

format_as_md_row

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

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'),
        ('booktitle', '{booktitle}', ''),
        ('year',      '{year}', ''),
        ('',          '\n\n\t', ''),
        ('code',      '([code]({code}))', ''),
        ('url',       '([pdf]({url}))', ''),
        ('project',   '([project]({project}))', ''),
        ('num_citations', '([citation:{num_citations}]({url_citations}))', '')
    ]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…