Datasets:
Commit
·
054a4a3
1
Parent(s):
1b771e8
Update README.md
Browse files
README.md
CHANGED
@@ -190,7 +190,7 @@ def get_image_embedding(image_id,image_id2row_index,image_dataset):
|
|
190 |
return None
|
191 |
|
192 |
def get_text_embedding(text_id,text_id2row_index,text_dataset):
|
193 |
-
# If the mapping contains the
|
194 |
idx_emb=text_id2row_index.get(int(text_id),None)
|
195 |
|
196 |
if idx_emb:
|
|
|
190 |
return None
|
191 |
|
192 |
def get_text_embedding(text_id,text_id2row_index,text_dataset):
|
193 |
+
# If the mapping contains the text, the embedding exists
|
194 |
idx_emb=text_id2row_index.get(int(text_id),None)
|
195 |
|
196 |
if idx_emb:
|