Lite weight wrapper for the independent implementation of SPLADE++ models for search & retrieval pipelines. Models and Library created by Prithivi Da, For PRs and Collaboration checkout the readme.
Running this code from the README yields a 403 error.
fromspladerunnerimportExpanderexpander=Expander('Splade_PP_en_v1', 128) # pass model, max_seq_len# Sample passage expansionsparse_rep=expander.expand(
"The Manhattan Project and its atomic bomb helped bring an end to World War II. Its legacy of peaceful uses of atomic energy continues to have an impact on history and science.")
print(sparse_rep)