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
Mahmoud Amiri commited on
Commit ·
e39d063
1
Parent(s): f964a65
update readme file
Browse files
README.md
CHANGED
|
@@ -217,8 +217,7 @@ def predict_labels_from_text(text: str, text_type: str = "summary", threshold: f
|
|
| 217 |
# ----- Example -----
|
| 218 |
if __name__ == "__main__":
|
| 219 |
sample_text = (
|
| 220 |
-
"
|
| 221 |
-
"demonstrating improved activity via ligand tuning and support engineering."
|
| 222 |
)
|
| 223 |
ids, labels, probs = predict_labels_from_text(sample_text, text_type="abstract", threshold=0.5)
|
| 224 |
print("Predicted IDs:", ids)
|
|
|
|
| 217 |
# ----- Example -----
|
| 218 |
if __name__ == "__main__":
|
| 219 |
sample_text = (
|
| 220 |
+
"The adsorption capacity of Helix aspera shell for Pb2+, Zn2+ and Ni2+ has been studied. This shell has the potential of adsorbing Pb2+, Zn2+ and Ni2+ from aqueous solution. The adsorption potentials of Helix aspera shell is largely influenced by the ionic character of the ions and occurred according to the order Pb2+ > Ni2+ > Zn2+. The adsorption of Pb(II), Zn(II) and Ni(II) ions from aqueous solutions by Helix aspera shell is thermodynamically feasible and is consistent with the models of Langmuir and Freundlich adsorption isotherms. From the results of the study, the shell of Helix aspera is recommended for use in the removal of Pb2+, Zn2+ and Ni2+ from aqueous solution."
|
|
|
|
| 221 |
)
|
| 222 |
ids, labels, probs = predict_labels_from_text(sample_text, text_type="abstract", threshold=0.5)
|
| 223 |
print("Predicted IDs:", ids)
|