Instructions to use xiaoyaoes/malicious-keras-text-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use xiaoyaoes/malicious-keras-text-encoder with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://xiaoyaoes/malicious-keras-text-encoder") - Notebooks
- Google Colab
- Kaggle
| language: en | |
| tags: | |
| - keras | |
| - text-encoding | |
| - nlp | |
| license: mit | |
| pipeline_tag: feature-extraction | |
| # Text Encoder (Keras) | |
| A lightweight text encoder based on Keras for NLP feature extraction. | |
| ## Usage | |
| ```python | |
| from keras.models import load_model | |
| model = load_model("xiaoyaoes/malicious-keras-text-encoder", trust_remote_code=True) | |
| ``` | |
| ## Architecture | |
| - Input: (batch, 10) float32 | |
| - Dense layers: 10 → 8 → 4 | |