abbasgolestani commited on
Commit
93e977f
1 Parent(s): 003a43e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -5
README.md CHANGED
@@ -15,9 +15,8 @@ Comparing each sentence of sentences1 array to the corrosponding sentence of sen
15
  from sentence_transformers import CrossEncoder
16
  from bento import fwdproxy
17
 
18
- #device = "cuda:0" if torch.cuda.is_available() else "cpu"
19
- with fwdproxy():
20
- model = CrossEncoder('abbasgolestani/ag-nli-DeTS-sentence-similarity-v1')
21
 
22
  # Two lists of sentences
23
  sentences1 = ['I am honored to be given the opportunity to help make our company better',
@@ -29,9 +28,7 @@ sentences2 = ['I am hopeful about the future of our company',
29
  'Definitely our company vision will be the next breakthrough to change the world and I’m so happy and proud to work here']
30
 
31
  pairs = zip(sentences1,sentences2)
32
- #pairs = zip(premise_NOT_entail,hypothesis_NOT_entail)
33
  list_pairs=list(pairs)
34
- #print(list_pairs)
35
 
36
  scores1 = model.predict(list_pairs, show_progress_bar=False)
37
  print(scores1)
 
15
  from sentence_transformers import CrossEncoder
16
  from bento import fwdproxy
17
 
18
+
19
+ model = CrossEncoder('abbasgolestani/ag-nli-DeTS-sentence-similarity-v1')
 
20
 
21
  # Two lists of sentences
22
  sentences1 = ['I am honored to be given the opportunity to help make our company better',
 
28
  'Definitely our company vision will be the next breakthrough to change the world and I’m so happy and proud to work here']
29
 
30
  pairs = zip(sentences1,sentences2)
 
31
  list_pairs=list(pairs)
 
32
 
33
  scores1 = model.predict(list_pairs, show_progress_bar=False)
34
  print(scores1)