Text Classification
Keras
English
chemistry
scientific-literature
multilabel
classification
embeddings
Eval Results (legacy)
Run this model with HF Jobs
Run Bocklitz-Lab/lit2vec-subfield-classifier-model on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Bocklitz-Lab/lit2vec-subfield-classifier-model. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Bocklitz-Lab/lit2vec-subfield-classifier-model on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
File size: 1,002 Bytes
f9a81fe | 1 | {"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"}} |