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
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
tags:
|
| 4 |
+
- keras
|
| 5 |
+
- text-encoding
|
| 6 |
+
- nlp
|
| 7 |
+
license: mit
|
| 8 |
+
pipeline_tag: feature-extraction
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Text Encoder (Keras)
|
| 12 |
+
|
| 13 |
+
A lightweight text encoder based on Keras for NLP feature extraction.
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
```python
|
| 17 |
+
from keras.models import load_model
|
| 18 |
+
model = load_model("xiaoyaoes/malicious-keras-text-encoder", trust_remote_code=True)
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
## Architecture
|
| 22 |
+
- Input: (batch, 10) float32
|
| 23 |
+
- Dense layers: 10 → 8 → 4
|