Rename to SIMPLE Score (simple-score)
Browse filesFiles changed (2)
- README.md+8-8
- config.json+1-1
1 unmodified line23456784 unmodified lines131415161718197 unmodified lines272829303132333435363738391 unmodified line414243444546474835 unmodified lines848586878889901 unmodified linelicense: mitlanguage:- enlibrary_name: simple-metricbase_model: microsoft/deberta-v3-basetags:- text-simplification4 unmodified lines# SIMPLE-base**SIMPLE** (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-metric``````pythonfrom simple_metric import SIMPLEmetric = SIMPLE.from_pretrained("base") # = "mpapucci/simple-metric-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")`.## Results35 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).## Limitations1 unmodified line23456784 unmodified lines131415161718197 unmodified lines272829303132333435363738391 unmodified line414243444546474835 unmodified lines848586878889901 unmodified linelicense: mitlanguage:- enlibrary_name: simple-scorebase_model: microsoft/deberta-v3-basetags:- text-simplification4 unmodified lines# SIMPLE-base**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-score``````pythonfrom simple_score import SIMPLEmetric = 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-score score --model base --sources src.txt --candidates sys.txt`.With Hugging Face `evaluate`: `evaluate.load("mpapucci/simple-score", "base")`.## Results35 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-score repository](https://github.com/michelepapucci/simple-score).## Limitations
93 unmodified lines949596979893 unmodified lines"max_length": 512,"model_type": "simple","sigma_floor": 0.05,"simple_metric_version": "0.1.0"}93 unmodified lines949596979893 unmodified lines"max_length": 512,"model_type": "simple","sigma_floor": 0.05,"simple_score_version": "0.1.0"}
README.md+8-8
config.json+1-1