Cyrile commited on
Commit
1ee5a9c
·
verified ·
1 Parent(s): d2db686

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -99,7 +99,7 @@ reranker = pipeline(
99
  top_k=None
100
  )
101
 
102
- similarity = reranker(
103
  [
104
  dict(
105
  text=context, # the model was trained with context in `text`
@@ -111,7 +111,7 @@ similarity = reranker(
111
  contexts_reranked = sorted(
112
  filter(
113
  lambda x: x[0]['label'] == "LABEL_1",
114
- zip(similarity, context_list)
115
  ),
116
  key=lambda x: x[0]
117
  )
 
99
  top_k=None
100
  )
101
 
102
+ similarities = reranker(
103
  [
104
  dict(
105
  text=context, # the model was trained with context in `text`
 
111
  contexts_reranked = sorted(
112
  filter(
113
  lambda x: x[0]['label'] == "LABEL_1",
114
+ zip(similarities, contexts)
115
  ),
116
  key=lambda x: x[0]
117
  )