Spaces:
Configuration error
Configuration error
Update cross_encoder_reranking_train.py
Browse files
cross_encoder_reranking_train.py
CHANGED
|
@@ -313,7 +313,7 @@ def main():
|
|
| 313 |
parser = argparse.ArgumentParser(description='Re-rank patents using cross-encoder scoring (training queries only)')
|
| 314 |
parser.add_argument('--pre_ranking', type=str, default='shuffled_pre_ranking.json',
|
| 315 |
help='Path to pre-ranking JSON file')
|
| 316 |
-
parser.add_argument('--output', type=str, default='
|
| 317 |
help='Path to output re-ranked JSON file')
|
| 318 |
parser.add_argument('--queries_content', type=str,
|
| 319 |
default='./queries_content_with_features.json',
|
|
@@ -321,7 +321,8 @@ def main():
|
|
| 321 |
parser.add_argument('--documents_content', type=str,
|
| 322 |
default='./documents_content_with_features.json',
|
| 323 |
help='Path to documents content JSON file')
|
| 324 |
-
|
|
|
|
| 325 |
help='Path to training queries JSON file')
|
| 326 |
parser.add_argument('--text_type', type=str, default='TA',
|
| 327 |
choices=['TA', 'claims', 'description', 'full', 'tac1', 'smart', 'smart2'],
|
|
|
|
| 313 |
parser = argparse.ArgumentParser(description='Re-rank patents using cross-encoder scoring (training queries only)')
|
| 314 |
parser.add_argument('--pre_ranking', type=str, default='shuffled_pre_ranking.json',
|
| 315 |
help='Path to pre-ranking JSON file')
|
| 316 |
+
parser.add_argument('--output', type=str, default='prediction2.json',
|
| 317 |
help='Path to output re-ranked JSON file')
|
| 318 |
parser.add_argument('--queries_content', type=str,
|
| 319 |
default='./queries_content_with_features.json',
|
|
|
|
| 321 |
parser.add_argument('--documents_content', type=str,
|
| 322 |
default='./documents_content_with_features.json',
|
| 323 |
help='Path to documents content JSON file')
|
| 324 |
+
# Change here from train to test
|
| 325 |
+
parser.add_argument('--queries_list', type=str, default='train_queries.json',
|
| 326 |
help='Path to training queries JSON file')
|
| 327 |
parser.add_argument('--text_type', type=str, default='TA',
|
| 328 |
choices=['TA', 'claims', 'description', 'full', 'tac1', 'smart', 'smart2'],
|