Skip to main content

Turns bibtex keywords into an academic summary table

Project description

labels2tables extracts keywords from a bibtex file, and uses them to generate an academic summary table comparing the articles.

Example

Input:

@article{duch_quantifying_2010,
         keywords = {game:soccer, model:network:centrality, open-access}}
@article{yamamoto_common_2011,
         keywords = {game:soccer, model:network:scale-free, open-access}}
@article{yaari_hot_2011,
         keywords = {game:basketball, model:sequence, open-access}}

Transformation:

import labels2tables
labels = labels2tables.bib2labels("examples/sport.in.bib")
labels2tables.labels2txt(labels, "examples/sport.out.txt")

Output:

========================================================
game       model       open-access reference
========================================================
soccer     network
            centrality Y           duch_quantifying_2010
            scale-free Y           yamamoto_common_2011
basketball sequence    Y           yaari_hot_2011
========================================================

Advanced

The intermediate labels format encodes table data using standard Python dictionaries, lists and tuples. See examples/*.spec.txt for example tables, and how to describe them as a labels dictionary.

Acknowledgements

Powered by bibtexparser

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labels2tables-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labels2tables-0.1.0-py2.py3-none-any.whl (13.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file labels2tables-0.1.0.tar.gz.

File metadata

  • Download URL: labels2tables-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for labels2tables-0.1.0.tar.gz
Algorithm Hash digest
SHA256 797415336791652e21c4eba05b024d03b8e8a70a99fc97eacf33a2c457575ef7
MD5 9e7c2a4cbd2dff51938d0174ae68232d
BLAKE2b-256 877078e69a031e710fbba92d6303ed2b7c032e9ba870a4756eb86c3279712d31

See more details on using hashes here.

File details

Details for the file labels2tables-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for labels2tables-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5674323698474c783b5cb3e6c9c1a24b6b40b59fcba8d8e477505b09aa2e6df9
MD5 91d6468cb1945fb08dd29c829868b7f7
BLAKE2b-256 ae6f8971fdcc8fa4ee3bbec59a2a4390fb76b417222ba0d829ae9d10257c8ead

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page