Skip to content

Commit

Permalink
Fix "spacy_model" key error when saving customize lemmas(#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Aug 6, 2023
1 parent fda940d commit 9125d60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from calibre.customize import InterfaceActionBase

VERSION = (3, 29, 5)
VERSION = (3, 29, 6)


class WordDumbDumb(InterfaceActionBase):
Expand Down
4 changes: 3 additions & 1 deletion dump_lemmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def dump_spacy_docs(
save_spacy_docs(
nlp,
spacy_model,
pkg_versions["spacy_model"],
pkg_versions[
"spacy_trf_model" if spacy_model.endswith("_trf") else "spacy_cpu_model"
],
lemma_lang,
is_kindle,
lemmas_conn,
Expand Down

0 comments on commit 9125d60

Please sign in to comment.