Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argos Translate GUI repeated delete breaks #374

Open
argosopentech opened this issue Oct 21, 2023 · 0 comments
Open

Argos Translate GUI repeated delete breaks #374

argosopentech opened this issue Oct 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@argosopentech
Copy link
Owner

I'm getting this error while using Argos Translate GUI which seems to be coming from Stanza:

Traceback (most recent call last):
  File "/home/pj/git/argos-translate/env/lib/python3.10/site-packages/argostranslategui/gui.py", line 39, in run
    translated_text = self.translation_function()
  File "/home/pj/git/argos-translate/argostranslate/translate.py", line 63, in translate
    return self.hypotheses(input_text, num_hypotheses=1)[0].value
  File "/home/pj/git/argos-translate/argostranslate/translate.py", line 296, in hypotheses
    translated_paragraph = self.underlying.hypotheses(
  File "/home/pj/git/argos-translate/argostranslate/translate.py", line 173, in hypotheses
    apply_packaged_translation(
  File "/home/pj/git/argos-translate/argostranslate/translate.py", line 425, in apply_packaged_translation
    stanza_sbd = stanza_pipeline(input_text)
  File "/home/pj/git/argos-translate/env/lib/python3.10/site-packages/stanza/pipeline/core.py", line 166, in __call__
    doc = self.process(doc)
  File "/home/pj/git/argos-translate/env/lib/python3.10/site-packages/stanza/pipeline/core.py", line 160, in process
    doc = self.processors[processor_name].process(doc)
  File "/home/pj/git/argos-translate/env/lib/python3.10/site-packages/stanza/pipeline/tokenize_processor.py", line 85, in process
    _, _, _, document = output_predictions(None, self.trainer, batches, self.vocab, None,
  File "/home/pj/git/argos-translate/env/lib/python3.10/site-packages/stanza/models/tokenize/utils.py", line 163, in output_predictions
    st0 = text.index(part, char_offset) - char_offset
ValueError: substring not found
Aborted (core dumped)

Steps to reproduce

  • Argos Translate 1.9.1
  • Repeatedly uninstall packages by clicking on the trash can icon in Argos Translate GUI > Manage Packages
  • After 5-10 deletes Argos Translate crashes
@argosopentech argosopentech added the bug Something isn't working label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant