Text Classification
Keras
English
chemistry
scientific-literature
multilabel
classification
embeddings
Eval Results (legacy)
Instructions to use Bocklitz-Lab/lit2vec-subfield-classifier-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Bocklitz-Lab/lit2vec-subfield-classifier-model with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Bocklitz-Lab/lit2vec-subfield-classifier-model") - Notebooks
- Google Colab
- Kaggle
Download label_mapping.json from Bocklitz-Lab/lit2vec-subfield-classifier-model: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/Bocklitz-Lab/lit2vec-subfield-classifier-model/resolve/main/label_mapping.json
- Command line
-
hf download hf://Bocklitz-Lab/lit2vec-subfield-classifier-model/label_mapping.json
-
curl -L -o label_mapping.json https://huggingface.co/Bocklitz-Lab/lit2vec-subfield-classifier-model/resolve/main/label_mapping.json
1 kB
| {"label_to_index": {"Catalysis": 0, "Organic Chemistry": 1, "Polymer Chemistry": 2, "Inorganic Chemistry": 3, "Materials Science": 4, "Analytical Chemistry": 5, "Physical Chemistry": 6, "Biochemistry": 7, "Environmental Chemistry": 8, "Energy Chemistry": 9, "Medicinal Chemistry": 10, "Chemical Engineering": 11, "Supramolecular Chemistry": 12, "Radiochemistry & Nuclear Chemistry": 13, "Forensic & Legal Chemistry": 14, "Food Chemistry": 15, "Chemical Education": 16, "Others": 17}, "index_to_label": {"0": "Catalysis", "1": "Organic Chemistry", "2": "Polymer Chemistry", "3": "Inorganic Chemistry", "4": "Materials Science", "5": "Analytical Chemistry", "6": "Physical Chemistry", "7": "Biochemistry", "8": "Environmental Chemistry", "9": "Energy Chemistry", "10": "Medicinal Chemistry", "11": "Chemical Engineering", "12": "Supramolecular Chemistry", "13": "Radiochemistry & Nuclear Chemistry", "14": "Forensic & Legal Chemistry", "15": "Food Chemistry", "16": "Chemical Education", "17": "Others"}} |