renma commited on
Commit
a2f4e79
·
verified ·
1 Parent(s): d6e6856

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -6
README.md CHANGED
@@ -32,11 +32,12 @@ This model is a fine-tuned version of ModernBERT-base designed to evaluate the *
32
 
33
  The model uses an additive 5-point rating system:
34
 
35
- - **1 point**: Somewhat readable but contains significant clarity or coherence issues, complex vocabulary, or numerous errors
36
- - **2 points**: Generally clear and coherent with occasional grammar, spelling errors, or convoluted structures
37
- - **3 points**: Clear and coherent for the most part, using appropriate vocabulary with minor grammar/spelling issues
38
- - **4 points**: Very clear and coherent with very few or no errors, proper punctuation and easy-to-follow structures
39
- - **5 points**: Outstanding clarity and coherence, effective communication with minimal errors that don't interfere with understanding
 
40
 
41
  ## Usage
42
 
@@ -56,7 +57,7 @@ text = "The weather today is sunny and warm. It's a perfect day for outdoor acti
56
  inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=4096)
57
  with torch.no_grad():
58
  outputs = model(**inputs)
59
- score = outputs.logits.squeeze().item()
60
 
61
  print(f"Readability Score: {score:.2f}")
62
  ```
 
32
 
33
  The model uses an additive 5-point rating system:
34
 
35
+ - **0**: absolute not readable
36
+ - **1**: Somewhat readable but contains significant clarity or coherence issues, complex vocabulary, or numerous errors
37
+ - **2**: Generally clear and coherent with occasional grammar, spelling errors, or convoluted structures
38
+ - **3**: Clear and coherent for the most part, using appropriate vocabulary with minor grammar/spelling issues
39
+ - **4**: Very clear and coherent with very few or no errors, proper punctuation and easy-to-follow structures
40
+ - **5**: Outstanding clarity and coherence, effective communication with minimal errors that don't interfere with understanding
41
 
42
  ## Usage
43
 
 
57
  inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=4096)
58
  with torch.no_grad():
59
  outputs = model(**inputs)
60
+ score = outputs.logits.squeeze().argmax(dim=0)
61
 
62
  print(f"Readability Score: {score:.2f}")
63
  ```