[](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/ChemNLP_Example.ipynb)

[](https://zenodo.org/badge/latestdoi/523320947)
# ChemNLP
# Table of Contents
* [Introduction](#intro)
* [Installation](#install)
* [Examples](#example)
* [Web-app](#webapp)
* [Reference](#reference)
<a name="intro"></a>
Introduction
-------------------------
ChemNLP is a software-package to process chemical information from the scientific literature.
<a name="install"></a>
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
```
<a name="example"></a>
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](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/ChemNLP_Example.ipynb)
[Google Colab example for Text Generation with HuggingFace](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/ChemNLP_TitleToAbstract.ipynb)
<a name="webapp"></a>
Using the webapp
---------
The webapp is available at: https://jarvis.nist.gov/jarvischemnlp

<a name="reference"></a>
Reference
---------
[ChemNLP: A Natural Language Processing based Library for Materials Chemistry Text Data](https://arxiv.org/abs/2209.08203)
Raw data
{
"_id": null,
"home_page": "https://github.com/usnistgov/chemnlp",
"name": "chemnlp",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Kamal Choudhary",
"author_email": "kamal.choudhary@nist.gov",
"download_url": "https://files.pythonhosted.org/packages/22/6c/04bdb4d39c40463b95d0d40b82506981e4294ab7ab3a9498ca27bac59b7b/chemnlp-2023.7.1.tar.gz",
"platform": null,
"description": "[](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/ChemNLP_Example.ipynb)\n\n[](https://zenodo.org/badge/latestdoi/523320947)\n\n\n# ChemNLP\n\n# Table of Contents\n* [Introduction](#intro)\n* [Installation](#install)\n* [Examples](#example)\n* [Web-app](#webapp)\n* [Reference](#reference)\n\n<a name=\"intro\"></a>\nIntroduction\n-------------------------\nChemNLP is a software-package to process chemical information from the scientific literature.\n\n<a name=\"install\"></a>\nInstallation\n-------------------------\nFirst create a conda environment:\nInstall miniconda environment from https://conda.io/miniconda.html\nBased on your system requirements, you'll get a file something like 'Miniconda3-latest-XYZ'.\n\nNow,\n\n```\nbash Miniconda3-latest-Linux-x86_64.sh (for linux)\nbash Miniconda3-latest-MacOSX-x86_64.sh (for Mac)\n```\nDownload 32/64 bit python 3.8 miniconda exe and install (for windows)\nNow, let's make a conda environment, say \"chemnlp\", choose other name as you like::\n```\nconda create --name chemnlp python=3.8\nsource activate chemnlp\n```\n#### Method 1 (using setup.py):\n\nNow, let's install the package:\n```\ngit clone https://github.com/usnistgov/chemnlp.git\ncd chemnlp\npython setup.py develop\ncde data download\n```\n\n#### Method 2 (using pypi):\n\nAs an alternate method, ChemNLP can also be installed using `pip` command as follows:\n```\npip install chemnlp\ncde data download\n```\n\n<a name=\"example\"></a>\nExamples\n---------\n#### Parse chemical formula \n\n```\nrun_chemnlp.py --file_path=\"chemnlp/tests/XYZ\"\n```\n\n#### Text classification example\n\n```\npython chemnlp/classification/scikit_class.py --csv_path chemnlp/sample_data/cond_mat_small.csv\n```\n\n[Google Colab example for installation and text classification](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/ChemNLP_Example.ipynb)\n\n[Google Colab example for Text Generation with HuggingFace](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/ChemNLP_TitleToAbstract.ipynb)\n\n\n<a name=\"webapp\"></a>\nUsing the webapp\n---------\nThe webapp is available at: https://jarvis.nist.gov/jarvischemnlp\n\n\n\n<a name=\"reference\"></a>\nReference\n---------\n\n\n[ChemNLP: A Natural Language Processing based Library for Materials Chemistry Text Data](https://arxiv.org/abs/2209.08203)\n",
"bugtrack_url": null,
"license": "",
"summary": "chemnlp",
"version": "2023.7.1",
"project_urls": {
"Homepage": "https://github.com/usnistgov/chemnlp"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0722446068d77b3a81ce5da598ba3aaa3d0802e5eedee4be7e3987f406f5f5f9",
"md5": "7d26823724c490570c8119731fb99a85",
"sha256": "31bdf1b9327196e4bc76cca824720cb49ebe2e6646b22ea69e73f310c391e621"
},
"downloads": -1,
"filename": "chemnlp-2023.7.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "7d26823724c490570c8119731fb99a85",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 23716,
"upload_time": "2023-08-07T12:49:57",
"upload_time_iso_8601": "2023-08-07T12:49:57.039388Z",
"url": "https://files.pythonhosted.org/packages/07/22/446068d77b3a81ce5da598ba3aaa3d0802e5eedee4be7e3987f406f5f5f9/chemnlp-2023.7.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "226c04bdb4d39c40463b95d0d40b82506981e4294ab7ab3a9498ca27bac59b7b",
"md5": "a7e6c4a552ced342b182e060b8fe7059",
"sha256": "ee6bf0731d5334105d990aec4584d556bd2e8e9b738ea1d54c395da9ebb90018"
},
"downloads": -1,
"filename": "chemnlp-2023.7.1.tar.gz",
"has_sig": false,
"md5_digest": "a7e6c4a552ced342b182e060b8fe7059",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 20895,
"upload_time": "2023-08-07T12:49:58",
"upload_time_iso_8601": "2023-08-07T12:49:58.768138Z",
"url": "https://files.pythonhosted.org/packages/22/6c/04bdb4d39c40463b95d0d40b82506981e4294ab7ab3a9498ca27bac59b7b/chemnlp-2023.7.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-07 12:49:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "usnistgov",
"github_project": "chemnlp",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "chemnlp"
}