Views
No views yet
roberta-base with an added regression head.'sle', but to evaluate sentence simplification systems we recommend providing the input sentences and using 'sle_delta' ($\Delta \text{SLE}$). See the paper for further details.1from sle.scorer import SLEScorer
2
3scorer = SLEScorer("liamcripwell/sle-base")
4
5texts = [
6 "Here is a simple sentence.",
7 "Here is an additional sentence that makes use of more complex terminology."
8]
9
10# raw simplicity estimates
11results = scorer.score(texts)
12print(results) # {'sle': [3.9842946529388428, 0.5840105414390564]}
13
14# delta from input sentences
15results = scorer.score([texts[0]], inputs=[texts[1]])
16print(results) # {'sle': [3.9842941761016846], 'sle_delta': [3.4002838730812073]}