Skip to content

Commit

Permalink
feat: de and en in progress pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasellinger committed Oct 24, 2024
1 parent b96f1c2 commit fcb6692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion general_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def build_fever_instance(label: str,
evidence: List,
evidence_doc: str,
predicted_label: str,
predicted_evidence: Tuple) -> Dict:
predicted_evidence: List[Tuple]) -> Dict:
"""Build instance to conform to fever scorer."""
evidence = [
[
Expand Down
2 changes: 1 addition & 1 deletion pipeline_module/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ async def verify(self, word: str, claim: str, search_word: Optional[str] = None,
if self.progress_callback:
await self.progress_callback("Starting verification process")

if self.translator:
if self.translator and self.lang != 'en':
if self.progress_callback:
await self.progress_callback("Translating input")
translated = await asyncio.to_thread(self.translator, [{'word': word, 'text': claim}])
Expand Down

0 comments on commit fcb6692

Please sign in to comment.