ChemistryPaperParser-0.0.1
توضیحات
Parsing HTML chemistry papers from certain publishers into plain text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ChemistryPaperParser-0.0.1 |
| نام | ChemistryPaperParser |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yinghao Li |
| ایمیل نویسنده | yinghaoli@gatech.edu |
| آدرس صفحه اصلی | https://github.com/Yinghao-Li/ChemistryHTMLPaperParser |
| آدرس اینترنتی | https://pypi.org/project/ChemistryPaperParser/ |
| مجوز | MIT |
# Chemistry Article Parser
Convert HTML/XML Chemistry/Material Science articles into plain text.
[](https://www.python.org/)
[](https://github.com/Yinghao-Li/chemdocparsing)
---
## Requirement
See `requirements.txt`.
Packages with versions specified in `requirements.txt` are used to test the code.
Other versions are not fully tested but may also work.
## Submodule
To get the submodule files, use
```shell
git submodule update --init
```
## Supported publishers:
- RSC (HTML)
- Springer (HTML)
- Nature (HTML)
- Wiley (HTML)
- AIP (HTML)
- ACS (HTML & XML)
- Elsevier (HTML & XML)
- AAAS (Science) (HTML)
Table parsing is supported but not for all publishers.
For figures, only figure captions are parsed in the current version.
## Example
Fork this repo and clone it to your local machine;
To parse HTML files, run the following code:
```shell
python tests/parse_articles.py --input_dir </path/to/html/files> --parse_html
```
or
```shell
cd tests
python parse_articles.py config.json
```
where parameters are stored in file `config.json`.
Add `--parse_xml` to the argument list to enable xml parsing.
## Issues
Due to the variety of HTML/XML documents, not all document can be successfully parsed.
It would be helpful for our improvement if you can report the failed cases in the Issue section.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ChemistryPaperParser-0.0.1:
pip install ChemistryPaperParser-0.0.1.whl
نصب پکیج tar.gz ChemistryPaperParser-0.0.1:
pip install ChemistryPaperParser-0.0.1.tar.gz