Skip to content

Commit

Permalink
trying to run in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ngupta10 committed Dec 15, 2023
1 parent 267464e commit 3bd7d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
gdown "${{ secrets.GOOGLE_DRIVE_LINK_LLAMA2 }}" -O ./tests/llama-2-7b-chat.Q5_K_S.gguf
- name: Run Pytest
run: python -B -m pytest -v --disable-warnings .
run: python -B -m pytest -s --disable-warnings .
env:
PYTHONDONTWRITEBYTECODE: 1

Expand Down
2 changes: 2 additions & 0 deletions querent/core/transformers/bert_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ async def process_tokens(self, data: IngestedTokens):
cluster_persistence = cluster_output['cluster_persistence']
final_clustered_triples = self.triple_filter.filter_by_cluster_persistence(pairs_with_predicates, cluster_persistence, cluster_labels)
if final_clustered_triples is not None:
print("Final cluster triple..........", final_clustered_triples)
filtered_triples, _ = self.triple_filter.filter_triples(final_clustered_triples)
else:
print("Clustered triples..........", clustered_triples)
filtered_triples, _ = self.triple_filter.filter_triples(clustered_triples)
self.logger.log(f"Filtering in {self.__class__.__name__} producing 0 entity pairs. Filtering Disabled. ")
else:
Expand Down

0 comments on commit 3bd7d61

Please sign in to comment.