Coder Social home page Coder Social logo

metis's People

Contributors

andreipruteanu avatar repierre avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

metis's Issues

`TypeError: string indices must be integers` is thrown when parsing authors

2017-11-01 22:19:57,277 INFO:__main__ parse_files: Parsing /home/petru/Downloads/metis-in/2016-09-30_2016-10-01/records00000.xml.gz
Traceback (most recent call last):
  File "pmc_oa.py", line 41, in <module>
    run()
  File "pmc_oa.py", line 35, in run
    store_output(pubs, args.output_path)
  File "pmc_oa.py", line 16, in store_output
    for idx, pub in enumerate(pubs):
  File "/home/petru/Git/metis/pipeline/parsers/fileparser.py", line 44, in parse_files
    s_pubs[idx]['authors'] = parser.parse_authors([a for a in p['authors']] if p['authors'] else [])
  File "/home/petru/Git/metis/pipeline/parsers/articleparser.py", line 12, in parse_authors
    if 'sup' not in a['p'] and 'italic' in a['p']:
TypeError: string indices must be integers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.