View Single Post
Old 03-31-2021, 06:31 AM   #99
AmirHXe
Member
AmirHXe began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
Quote:
Originally Posted by xxyzz View Post
Just pass the path of these files as arguments to the script:

Code:
$ cd data
$ python add_lemmas.py path_of_kll.en.en.klld path_of_LanguageLayer.en.ASIN.kll
$ cd ..
$ calibre-customize -b .
please forgive me for being this dumb, but it gives me this error:
Code:
Processing LanguageLayer.en.ASIN.kll
cn-kll.en.en.klld has 75819 lemmas
added 316 lemmas
lemmas.json has 22334 lemmas
Traceback (most recent call last):
  File "D:\Elegram\WordDumb-master\data\add_lemmas.py", line 62, in <module>
    with open('lemmas.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'lemmas.json'
and during this lemmas.json gets deleted
AmirHXe is offline   Reply With Quote