Update datasets-for-simcse.py
Browse files- datasets-for-simcse.py +1 -1
datasets-for-simcse.py
CHANGED
@@ -57,5 +57,5 @@ class DatasetsForSimCSE(datasets.GeneratorBasedBuilder):
|
|
57 |
"""This function returns the examples in the raw (text) form."""
|
58 |
df = pd.read_csv(filepath, sep=',')
|
59 |
for idx, row in df.iterrows():
|
60 |
-
context = {'sent0': row['sent0'], 'sent1': ['sent1'], 'hard_neg': row['hard_neg']}
|
61 |
yield idx, context
|
|
|
57 |
"""This function returns the examples in the raw (text) form."""
|
58 |
df = pd.read_csv(filepath, sep=',')
|
59 |
for idx, row in df.iterrows():
|
60 |
+
context = {'sent0': row['sent0'], 'sent1': row['sent1'], 'hard_neg': row['hard_neg']}
|
61 |
yield idx, context
|