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

Commit

Permalink
Merge pull request #25 from ruanchaves/master
Browse files Browse the repository at this point in the history
[Fix] Bug fix in PARAMETERS at run_benchmark.py and kwargs in _load_candidate() at main_dense.py
  • Loading branch information
fabiopetroni committed Jul 12, 2020
2 parents b3e5b11 + 1642d5c commit e919933
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit e919933

Please sign in to comment.