chemnlp
Project description
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
Reference
ChemNLP: A Natural Language Processing based Library for Materials Chemistry Text Data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for chemnlp-2023.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31bdf1b9327196e4bc76cca824720cb49ebe2e6646b22ea69e73f310c391e621 |
|
MD5 | 7d26823724c490570c8119731fb99a85 |
|
BLAKE2b-256 | 0722446068d77b3a81ce5da598ba3aaa3d0802e5eedee4be7e3987f406f5f5f9 |