Instructions to use leroyrr/TextCNN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leroyrr/TextCNN with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("leroyrr/TextCNN", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from leroyrr/TextCNN: direct link, hf CLI and curl.
- Browser
- Download file 181 Bytes
-
https://huggingface.co/leroyrr/TextCNN/resolve/main/config.json
- Command line
-
hf download hf://leroyrr/TextCNN/config.json
-
curl -L -o config.json https://huggingface.co/leroyrr/TextCNN/resolve/main/config.json
181 Bytes
| { | |
| "param": { | |
| "class_num": 2, | |
| "dropout": 0.5, | |
| "embed_dim": 256, | |
| "kernel_num": 16, | |
| "kernel_size": [ | |
| 3, | |
| 4, | |
| 5 | |
| ], | |
| "vocab_size": 1000 | |
| } | |
| } |