This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| -*- coding: utf-8 -*- | |
| Copyright (C) 2020/5/18 | |
| This script reranks from an initial search result. | |
| Usage: | |
| python rerank_custom_collection.py --search_output_file [OUTPUT_PATH] \ | |
| --qid2query_file [QUERY_FILE_PATH] \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fs from "fs"; | |
| // fs.readFile("test.txt", function (err, data) { | |
| // if (err) throw err; | |
| // console.log(data); | |
| // }); | |
| import axios from 'axios'; | |
| import FormData from 'form-data'; | |
| import console = require("console"); |