Update README.md
Browse files
README.md
CHANGED
@@ -8,14 +8,22 @@ widget:
|
|
8 |
text: "she present paper today"
|
9 |
---
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
1. Dogs are mammals.
|
21 |
2. she loves to read books on history.
|
@@ -31,24 +39,32 @@ Sentence 3 is a fragment and is not well-formed.
|
|
31 |
Sentence 4 has a subject-verb agreement error.
|
32 |
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
|
|
|
8 |
text: "she present paper today"
|
9 |
---
|
10 |
|
11 |
+
model_card:
|
12 |
+
model_name: Salesken's Query Wellformedness Score Model
|
13 |
+
description: Evaluate the well-formedness of sentences by checking grammatical correctness and completeness. Sensitive to case and penalizes sentences for incorrect grammar and case.
|
14 |
+
features:
|
15 |
+
- Wellformedness Score: Provides a score indicating grammatical correctness and completeness.
|
16 |
+
- Case Sensitivity: Recognizes and penalizes incorrect casing in sentences.
|
17 |
+
- Broad Applicability: Can be used on a wide range of sentences.
|
18 |
+
evaluation_results:
|
19 |
+
input:
|
20 |
+
- She is presenting a paper tomorrow
|
21 |
+
- she is presenting a paper tomorrow
|
22 |
+
- She present paper today
|
23 |
+
scores:
|
24 |
+
- 0.8917
|
25 |
+
- 0.4270
|
26 |
+
- 0.0134
|
27 |
|
28 |
1. Dogs are mammals.
|
29 |
2. she loves to read books on history.
|
|
|
39 |
Sentence 4 has a subject-verb agreement error.
|
40 |
|
41 |
|
42 |
+
example_usage:
|
43 |
+
library: HuggingFace transformers
|
44 |
+
code: |
|
45 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
46 |
+
tokenizer = AutoTokenizer.from_pretrained("salesken/query_wellformedness_score")
|
47 |
+
model = AutoModelForSequenceClassification.from_pretrained("salesken/query_wellformedness_score")
|
48 |
+
sentences = [
|
49 |
+
'what was the reason for everyone to leave the company',
|
50 |
+
'What was the reason behind everyone leaving the company',
|
51 |
+
# ... other sentences
|
52 |
+
]
|
53 |
+
features = tokenizer(sentences, padding=True, truncation=True, return_tensors="pt")
|
54 |
+
model.eval()
|
55 |
+
with torch.no_grad():
|
56 |
+
scores = model(**features).logits
|
57 |
+
print(scores)
|
58 |
+
intended_use_cases:
|
59 |
+
- Content Creation: Validate the well-formedness of written content.
|
60 |
+
- Educational Platforms: Students check the grammaticality of sentences.
|
61 |
+
- Chatbots & Virtual Assistants: Validate user queries or generate well-formed responses.
|
62 |
+
limitations:
|
63 |
+
- Model might have occasional inaccuracies or biases.
|
64 |
+
- Long sentences might be truncated, affecting score.
|
65 |
+
contact: [email protected]
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
|
70 |
|