Rename to SIMPLE Score (simple-score)
Browse filesFiles changed (2)
- README.md+8-8
- config.json+1-1
1 unmodified line234556784 unmodified lines13141516161718197 unmodified lines272829303031323334343536363738391 unmodified line4142434445444546474835 unmodified lines84858687878889901 unmodified linelicense: mitlanguage: - enlibrary_name: simple-metriclibrary_name: simple-scorebase_model: microsoft/deberta-v3-basetags: - text-simplification4 unmodified lines
# SIMPLE-base
**SIMPLE** (SImplicity Metric via Preference LEarning) is a reference-free learned metric**SIMPLE Score** (SImplicity Metric via Preference LEarning) is a reference-free learned metricfor sentence simplification. For a source sentence and a candidate simplification it returns
- a **score** `mu` in (-1, 1): +1 = highly successful simplification, 0 = verbatim copy of7 unmodified lines## Usage
```bashpip install simple-metricpip install simple-score```
```pythonfrom simple_metric import SIMPLEfrom simple_score import SIMPLE
metric = SIMPLE.from_pretrained("base") # = "mpapucci/simple-metric-base"metric = SIMPLE.from_pretrained("base") # = "mpapucci/simple-score-base"out = metric.score( ["The feline perched upon the mat in a state of repose."], ["The cat sat on the mat."],1 unmodified lineprint(out.mu, out.sigma)```
From the command line: `simple-metric score --model base --sources src.txt --candidates sys.txt`.With Hugging Face `evaluate`: `evaluate.load("mpapucci/simple", "base")`.From the command line: `simple-score score --model base --sources src.txt --candidates sys.txt`.With Hugging Face `evaluate`: `evaluate.load("mpapucci/simple-score", "base")`.
## Results
35 unmodified linesHyperparameters: AdamW, learning rate 1e-5, batch 16, 5 epochs over a random half of thepairs per epoch, linear warmup over 6% of steps, max length 512. The training code and arecipe to rebuild the data from the original sources are in the[simple-metric repository](https://github.com/michelepapucci/simple-metric).[simple-score repository](https://github.com/michelepapucci/simple-score).
## Limitations
93 unmodified lines94959697979893 unmodified lines "max_length": 512, "model_type": "simple", "sigma_floor": 0.05, "simple_metric_version": "0.1.0" "simple_score_version": "0.1.0"}README.md+8-8
config.json+1-1