Ashishkr commited on
Commit
2c197b8
1 Parent(s): 77f9e05

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -27
README.md CHANGED
@@ -8,14 +8,22 @@ widget:
8
  text: "she present paper today"
9
  ---
10
 
11
-
12
- This model evaluates the wellformedness (non-fragment, grammatically correct) score of a sentence. Model is case-sensitive and penalises for incorrect case and grammar as well.
13
-
14
- ['She is presenting a paper tomorrow','she is presenting a paper tomorrow','She present paper today']
15
-
16
- [[0.8917],[0.4270],[0.0134]]
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
- ```python
35
- from transformers import AutoTokenizer, AutoModelForSequenceClassification
36
- tokenizer = AutoTokenizer.from_pretrained("salesken/query_wellformedness_score")
37
- model = AutoModelForSequenceClassification.from_pretrained("salesken/query_wellformedness_score")
38
- sentences = [' what was the reason for everyone to leave the company ',
39
- ' What was the reason behind everyone leaving the company ',
40
- ' why was everybody leaving the company ',
41
- ' what was the reason to everyone leave the company ',
42
- ' what be the reason for everyone to leave the company ',
43
- ' what was the reasons for everyone to leave the company ',
44
- ' what were the reasons for everyone to leave the company ']
45
-
46
- features = tokenizer(sentences, padding=True, truncation=True, return_tensors="pt")
47
- model.eval()
48
- with torch.no_grad():
49
- scores = model(**features).logits
50
- print(scores)
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: contact@salesken.ai
66
+
67
+
68
+
69
 
70