Comments (3)
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.
@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.
I am closing this for now
from pubmed_parser.
Related Issues (20)
- Upload package on PyPI HOT 3
- Example of processing in dask rather than pyspark HOT 2
- medline_parser has syntax error: `"is not" with a literal` HOT 1
- Is there a reason why PubMed/MEDLINE extracted list elements are joined with ";" instead of keeping them as lists ? HOT 1
- All of PubMed XML was updated to follow the MEDLINE XML format.
- PMC OA: tags in the <journal-title> field break parse_pubmed_xml HOT 1
- parse_pubmed_paragraph() function seems to miss some paragraphs sometimes.
- physical & electronic publication dates can be mixed into erroneous dates HOT 1
- Error: parse_medline_xml() is unable to parse the file even though the provided path is correct HOT 11
- AttributeError: 'NoneType' object has no attribute 'find' HOT 2
- Table parsing issues with parse_pubmed_table HOT 2
- parse_pubmed_table() and parse_pubmed_references() returning None HOT 1
- Question for extracting text HOT 1
- Question: Abstract with Mesh Tag HOT 3
- question using pp.parese_medline HOT 2
- Question: parsing error first line expecting '<' not found
- parse_pubmed_caption() failing on some papers
- ValueError when attempting to parse OA XML HOT 3
- Bug report - XML citations from website HOT 1
- CALL FOR MAINTAINER/CONTRIBUTOR FOR PUBMED_PARSER HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pubmed_parser.