Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

[Fix] Bug fix in PARAMETERS at run_benchmark.py and kwargs in _load_candidate() at main_dense.py #25

Merged
merged 1 commit into from
Jul 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blink/main_dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def load_models(args, logger=None):
wikipedia_id2local_id,
faiss_indexer,
) = _load_candidates(
args.entity_catalogue, args.entity_encoding, args.faiss_index, args.index_path,
args.entity_catalogue, args.entity_encoding, faiss_index=args.faiss_index, index_path=args.index_path,
)

return (
Expand Down
3 changes: 3 additions & 0 deletions blink/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
]

PARAMETERS = {
"faiss_index": None,
"index_path": None,
"test_entities": None,
"test_mentions": None,
"interactive": False,
Expand All @@ -38,6 +40,7 @@
"crossencoder_config": "models/crossencoder_wiki_large.json",
"output_path": "output",
"fast": False,
"top_k": 100,
}
args = argparse.Namespace(**PARAMETERS)

Expand Down