Update README.md
Browse files
README.md
CHANGED
@@ -40,15 +40,15 @@ model_name = "lv12/esci-ms-marco-MiniLM-L-12-v2"
|
|
40 |
|
41 |
queries = [
|
42 |
"adidas shoes",
|
43 |
-
"adidas
|
44 |
"girls sandals",
|
45 |
"backpacks",
|
46 |
"shoes",
|
47 |
"mustard sleeveless gown"
|
48 |
]
|
49 |
documents = [
|
50 |
-
'{"title": "Nike Air Max
|
51 |
-
'{"title": "Adidas Ultraboost
|
52 |
'{"title": "Womens sandals", "description": "Sandals: wide width 9", "brand": "Chacos", "color": "blue"}',
|
53 |
'{"title": "Girls surf backpack", "description": "The best backpack in town", "brand": "Roxy", "color": "pink"}',
|
54 |
'{"title": "Fresh watermelon", "description": "The best fruit in town, all you can eat", "brand": "Fruitsellers Inc.", "color": "green"}',
|
@@ -78,17 +78,18 @@ from sentence_transformers import CrossEncoder
|
|
78 |
|
79 |
model_name = "lv12/esci-ms-marco-MiniLM-L-12-v2"
|
80 |
|
|
|
81 |
queries = [
|
82 |
"adidas shoes",
|
83 |
-
"adidas
|
84 |
"girls sandals",
|
85 |
"backpacks",
|
86 |
"shoes",
|
87 |
"mustard sleeveless gown"
|
88 |
]
|
89 |
documents = [
|
90 |
-
'{"title": "Nike Air Max
|
91 |
-
'{"title": "Adidas Ultraboost
|
92 |
'{"title": "Womens sandals", "description": "Sandals: wide width 9", "brand": "Chacos", "color": "blue"}',
|
93 |
'{"title": "Girls surf backpack", "description": "The best backpack in town", "brand": "Roxy", "color": "pink"}',
|
94 |
'{"title": "Fresh watermelon", "description": "The best fruit in town, all you can eat", "brand": "Fruitsellers Inc.", "color": "green"}',
|
@@ -100,7 +101,7 @@ print(scores)
|
|
100 |
```
|
101 |
|
102 |
```md
|
103 |
-
[ 1.
|
104 |
```
|
105 |
|
106 |
## Training
|
|
|
40 |
|
41 |
queries = [
|
42 |
"adidas shoes",
|
43 |
+
"adidas shoes",
|
44 |
"girls sandals",
|
45 |
"backpacks",
|
46 |
"shoes",
|
47 |
"mustard sleeveless gown"
|
48 |
]
|
49 |
documents = [
|
50 |
+
'{"title": "Nike Air Max", "description": "The best shoes you can get, with air cushion", "brand": "Nike", "color": "black"}',
|
51 |
+
'{"title": "Adidas Ultraboost", "description": "The shoes that represent the world", "brand": "Adidas", "color": "white"}',
|
52 |
'{"title": "Womens sandals", "description": "Sandals: wide width 9", "brand": "Chacos", "color": "blue"}',
|
53 |
'{"title": "Girls surf backpack", "description": "The best backpack in town", "brand": "Roxy", "color": "pink"}',
|
54 |
'{"title": "Fresh watermelon", "description": "The best fruit in town, all you can eat", "brand": "Fruitsellers Inc.", "color": "green"}',
|
|
|
78 |
|
79 |
model_name = "lv12/esci-ms-marco-MiniLM-L-12-v2"
|
80 |
|
81 |
+
|
82 |
queries = [
|
83 |
"adidas shoes",
|
84 |
+
"adidas shoes",
|
85 |
"girls sandals",
|
86 |
"backpacks",
|
87 |
"shoes",
|
88 |
"mustard sleeveless gown"
|
89 |
]
|
90 |
documents = [
|
91 |
+
'{"title": "Nike Air Max", "description": "The best shoes you can get, with air cushion", "brand": "Nike", "color": "black"}',
|
92 |
+
'{"title": "Adidas Ultraboost", "description": "The shoes that represent the world", "brand": "Adidas", "color": "white"}',
|
93 |
'{"title": "Womens sandals", "description": "Sandals: wide width 9", "brand": "Chacos", "color": "blue"}',
|
94 |
'{"title": "Girls surf backpack", "description": "The best backpack in town", "brand": "Roxy", "color": "pink"}',
|
95 |
'{"title": "Fresh watermelon", "description": "The best fruit in town, all you can eat", "brand": "Fruitsellers Inc.", "color": "green"}',
|
|
|
101 |
```
|
102 |
|
103 |
```md
|
104 |
+
[ 1.057739 1.6751697 1.039221 1.5969192 -0.8867093 0.5035825 ]
|
105 |
```
|
106 |
|
107 |
## Training
|