Git Product home page Git Product logo

Comments (3)

titipata avatar titipata commented on May 29, 2024

Hi @robear22890, thanks for the report and sorry for the late reply! So, I seems like the problem is from reading XML file (etree.from_string(path)). Pubmed parser uses these snippet to read XML file. Can you check real quick if lxml works to read example file for you or the file that you have a problem with?

From the error, it seems like you were using the wrong function to parse MEDLINE XML. For the MEDLINE one, you have to use parse_medline_xml function instead of parse_pubmed_xml. parse_pubmed_xml is actually for Pubmed Open-Access subset XML files. Let me know if this solves the problem.

from pubmed_parser.

daniel-acuna avatar daniel-acuna commented on May 29, 2024

@robear22890 @titipata It seems that the problem is that it cannot find the file? As @titipata mentions, pubmed_parser tries to read the given string as if it were a file path and if that fails it tries to read it as a XML string. So it first fails to read the file, and then it tries to read it as an XML. Can you please check that the file exists at that location?

from pubmed_parser.

daniel-acuna avatar daniel-acuna commented on May 29, 2024

I am closing this for now

from pubmed_parser.

Related Issues (20)

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.