SiddharthAK commited on
Commit
5e87f41
·
verified ·
1 Parent(s): b7f6be7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ def get_splade_lexical_representation(text):
175
  for term, weight in sorted_representation:
176
  formatted_output += f"- **{term}**: {weight:.4f}\n"
177
 
178
- formatted_output += "\n--- Raw SPLADE Vector Info ---\n"
179
  formatted_output += f"Total non-zero terms in vector: {len(indices)}\n"
180
  formatted_output += f"Sparsity: {1 - (len(indices) / tokenizer_splade_lexical.vocab_size):.2%}\n"
181
 
 
175
  for term, weight in sorted_representation:
176
  formatted_output += f"- **{term}**: {weight:.4f}\n"
177
 
178
+ formatted_output += "\n--- Raw Sparse Vector Info ---\n"
179
  formatted_output += f"Total non-zero terms in vector: {len(indices)}\n"
180
  formatted_output += f"Sparsity: {1 - (len(indices) / tokenizer_splade_lexical.vocab_size):.2%}\n"
181