refactor(cli): remove obsolete workflow commands
This commit is contained in:
@@ -58,7 +58,7 @@ def load_index(directory: Path, name: str) -> tuple[Any, Any, dict]:
|
||||
if not (lsh_path.exists() and mh_path.exists() and meta_path.exists()):
|
||||
raise LshIndexError(
|
||||
f"Indice LSH non trovato in {directory} (atteso {name}_lsh.pkl). "
|
||||
f"Esegui prima `tht lsh build`."
|
||||
f"Esegui prima `tht preprocess dwh --steps lsh`."
|
||||
)
|
||||
lsh = pickle.loads(lsh_path.read_bytes())
|
||||
minhashes = pickle.loads(mh_path.read_bytes())
|
||||
@@ -79,7 +79,7 @@ def query_index(lsh, minhashes, keyword: str, meta: dict, top_n: int = 10) -> li
|
||||
if entry is None:
|
||||
raise LshIndexError(
|
||||
"Indice LSH disallineato (lsh.pkl e minhashes.pkl non coerenti): "
|
||||
"rigenera con `tht lsh build`."
|
||||
"rigenera con `tht preprocess dwh --steps lsh`."
|
||||
)
|
||||
scored.append((key, qmh.jaccard(entry[0])))
|
||||
scored.sort(key=lambda kv: kv[1], reverse=True)
|
||||
|
||||
Reference in New Issue
Block a user