Update README.md
Browse files
README.md
CHANGED
@@ -10,14 +10,11 @@ licence:
|
|
10 |
---
|
11 |
# SetFit-caesar-cipher-classifier
|
12 |
|
13 |
-
Made to detect whether or not text is gibberish.
|
14 |
|
15 |
## Usage (SetFitModel)
|
16 |
-
|
17 |
-
|
18 |
-
pip install -U sentence-transformers setfit
|
19 |
-
```
|
20 |
-
Then you can use the model like this:
|
21 |
```python
|
22 |
from setfit import SetFitModel
|
23 |
sentences = ["This is an example sentence", "Each sentence is tested", "Aopz pz hu lehtwsl zlualujl", "Rnpu fragrapr vf grfgrq"]
|
@@ -30,7 +27,4 @@ for sentence in sentences:
|
|
30 |
# clear
|
31 |
# gibberish
|
32 |
# gibberish
|
33 |
-
```
|
34 |
-
|
35 |
-
|
36 |
-
It would presumably work on Enigma encrypted text, but tests would have to be done. Anyway, the model has proven pretty reliable (99%) in classifying english and danish sentences.
|
|
|
10 |
---
|
11 |
# SetFit-caesar-cipher-classifier
|
12 |
|
13 |
+
Made to detect whether or not text is gibberish. 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.
|
14 |
|
15 |
## Usage (SetFitModel)
|
16 |
+
|
17 |
+
|
|
|
|
|
|
|
18 |
```python
|
19 |
from setfit import SetFitModel
|
20 |
sentences = ["This is an example sentence", "Each sentence is tested", "Aopz pz hu lehtwsl zlualujl", "Rnpu fragrapr vf grfgrq"]
|
|
|
27 |
# clear
|
28 |
# gibberish
|
29 |
# gibberish
|
30 |
+
```
|
|
|
|
|
|