Skip to main content

name alt text DOI

ChemNLP

Table of Contents

Introduction

ChemNLP is a software-package to process chemical information from the scientific literature.

Installation

First create a conda environment: Install miniconda environment from https://conda.io/miniconda.html Based on your system requirements, you'll get a file something like 'Miniconda3-latest-XYZ'.

Now,

bash Miniconda3-latest-Linux-x86_64.sh (for linux)
bash Miniconda3-latest-MacOSX-x86_64.sh (for Mac)

Download 32/64 bit python 3.8 miniconda exe and install (for windows) Now, let's make a conda environment, say "chemnlp", choose other name as you like::

conda create --name chemnlp python=3.8
source activate chemnlp

Method 1 (using setup.py):

Now, let's install the package:

git clone https://github.com/usnistgov/chemnlp.git
cd chemnlp
python setup.py develop
cde data download

Method 2 (using pypi):

As an alternate method, ChemNLP can also be installed using pip command as follows:

pip install chemnlp
cde data download

Examples

Parse chemical formula

run_chemnlp.py --file_path="chemnlp/tests/XYZ"

Text classification example

python chemnlp/classification/scikit_class.py --csv_path chemnlp/sample_data/cond_mat_small.csv

Google Colab example for installation and text classification

Google Colab example for Text Generation with HuggingFace

Using the webapp

The webapp is available at: https://jarvis.nist.gov/jarvischemnlp

JARVIS-ChemNLP

Reference

ChemNLP: A Natural Language Processing based Library for Materials Chemistry Text Data

Metadata

Release files for chemnlp 2023.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chemnlp 2023.7.1
File Size Uploaded Provenance Actions
chemnlp-2023.7.1.tar.gz 20.9 kB Without provenance Details for chemnlp-2023.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chemnlp 2023.7.1
File Interpreter ABI Platform Actions
chemnlp-2023.7.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for chemnlp-2023.7.1-py2.py3-none-any.whl

Total release size: 44.6 kB

Release files / chemnlp-2023.7.1.tar.gz

Download URL chemnlp-2023.7.1.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ee6bf0731d5334105d990aec4584d556bd2e8e9b738ea1d54c395da9ebb90018
BLAKE2b-256 checksum
How to use checksums
226c04bdb4d39c40463b95d0d40b82506981e4294ab7ab3a9498ca27bac59b7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / chemnlp-2023.7.1-py2.py3-none-any.whl

Download URL chemnlp-2023.7.1-py2.py3-none-any.whl
Size 23.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
31bdf1b9327196e4bc76cca824720cb49ebe2e6646b22ea69e73f310c391e621
BLAKE2b-256 checksum
How to use checksums
0722446068d77b3a81ce5da598ba3aaa3d0802e5eedee4be7e3987f406f5f5f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for chemnlp 2023.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page