Vinoth24 commited on
Commit
83ed569
1 Parent(s): 802b143

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -3
README.md CHANGED
@@ -30,15 +30,22 @@ The environmental-claims model is fine-tuned using the EnvironmentalClaims datas
30
 
31
 
32
  # Usage
33
- loading the model :
 
34
  from happytransformer import HappyTextClassification
35
  happy_class = HappyTextClassification(model_type="BERT", model_name="Vinoth24/environmental_claims")
36
-
37
- prediction :
 
38
  result = happy_class.classify_text('The reduction of carbon emissions is improving for the last 2 years.')
39
  print(result) -- TextClassificationResult(label='LABEL_1', score=0.9948860359191895)
40
  print(result.label) -- LABEL_1
41
  print(result.score) -- 0.994
 
 
 
 
 
42
 
43
  Feel free to train the model more with your custom Environmental claims data. Any queries will be answered. Thank you! :)
44
 
 
30
 
31
 
32
  # Usage
33
+ ### loading the model :
34
+ ```python
35
  from happytransformer import HappyTextClassification
36
  happy_class = HappyTextClassification(model_type="BERT", model_name="Vinoth24/environmental_claims")
37
+ ```
38
+ ### prediction :
39
+ ```python
40
  result = happy_class.classify_text('The reduction of carbon emissions is improving for the last 2 years.')
41
  print(result) -- TextClassificationResult(label='LABEL_1', score=0.9948860359191895)
42
  print(result.label) -- LABEL_1
43
  print(result.score) -- 0.994
44
+ ```
45
+
46
+ ### Result Interpretation:
47
+ LABEL_1 - Related to Environmental Claims
48
+ LABEL_0 - Not Related to Environmental Claims
49
 
50
  Feel free to train the model more with your custom Environmental claims data. Any queries will be answered. Thank you! :)
51