File size: 940 Bytes
c364e61 7d29a82 aa3c8e7 7d29a82 c364e61 7d29a82 7b58f1d 5ff8cdf 2671a70 7d29a82 f84adec aa3c8e7 7d29a82 15d0715 7b58f1d f84adec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
---
pipeline_tag: text-classification
tags:
- sentence-transformers
- transformers
language:
- en
licence:
- apache-2.0
---
# SetFit-caesar-cipher-classifier
Made to detect whether or not text is gibberish for [bruteforcing Caesar ciphers](https://gist.github.com/hosteren/852202caffa5fa88b317689ff6ea5be8). It did not work anymore, and SetFit has been updated since. I used version 1.1.0 to train this classifier on the [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) model.
## Usage (SetFitModel)
```python
from setfit import SetFitModel
sentences = ["This is an example sentence", "Each sentence is tested", "Aopz pz hu lehtwsl zlualujl", "Rnpu fragrapr vf grfgrq"]
model = SetFitModel.from_pretrained("trollek/setfit-gibberish-detector")
for sentence in sentences:
classification = model.predict(sentence)
print(classification)
# clear
# clear
# gibberish
# gibberish
``` |