sachin6624 commited on
Commit
aaddc5a
·
verified ·
1 Parent(s): 4bf06d5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -1
README.md CHANGED
@@ -67,11 +67,19 @@ The following hyperparameters were used during training:
67
  - Tokenizers 0.21.0
68
 
69
  ### How to Use
 
70
  ```
 
 
 
 
71
  sentence1 = "The weather today is sunny and bright."
72
  sentence2 = "It's a bright and sunny day today."
73
 
74
  result = classi(f"{sentence1} [SEP] {sentence2}")
75
- print(result)
 
 
 
76
 
77
  ```
 
67
  - Tokenizers 0.21.0
68
 
69
  ### How to Use
70
+
71
  ```
72
+ from transformers import pipeline
73
+
74
+ classi = pipeline("text-classification", model="sachin6624/bert-trainer")
75
+
76
  sentence1 = "The weather today is sunny and bright."
77
  sentence2 = "It's a bright and sunny day today."
78
 
79
  result = classi(f"{sentence1} [SEP] {sentence2}")
80
+ print(result)
81
+
82
+ # LABEL_1' : if both sentence are similar
83
+ # LABEL_0' : if both sentence are different
84
 
85
  ```