Update README.md
Browse files
README.md
CHANGED
@@ -99,7 +99,7 @@ reranker = pipeline(
|
|
99 |
top_k=None
|
100 |
)
|
101 |
|
102 |
-
|
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(
|
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 |
)
|