Spaces:
Configuration error
Configuration error
Update cross_encoder_reranking_train.py
Browse files
cross_encoder_reranking_train.py
CHANGED
@@ -129,10 +129,10 @@ def extract_text(content_dict, text_type="full"):
|
|
129 |
# Extract everything
|
130 |
all_text = []
|
131 |
# Start with title and abstract for better context at the beginning
|
132 |
-
|
133 |
-
|
134 |
-
if "pa01" in content_dict:
|
135 |
-
|
136 |
|
137 |
# Add claims and description
|
138 |
for key, value in content_dict.items():
|
|
|
129 |
# Extract everything
|
130 |
all_text = []
|
131 |
# Start with title and abstract for better context at the beginning
|
132 |
+
if "title" in content_dict:
|
133 |
+
all_text.append(content_dict["title"]) do with this on next
|
134 |
+
# if "pa01" in content_dict:
|
135 |
+
# all_text.append(content_dict["pa01"])
|
136 |
|
137 |
# Add claims and description
|
138 |
for key, value in content_dict.items():
|