-
Notifications
You must be signed in to change notification settings - Fork 47
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
TypeError: load_dict() got an unexpected keyword argument 'lang' #4
Comments
this error is related to trdg.utils.load_dict, you may try to update trdg to the latest version |
Oh..... I already updated trdg to latest version. 😂 |
Thank you for your solutions. How can I set dicts/lang.txt file? what is dicts/lang.txt file? |
Can you navigate aforementioned load_dict method in your installed trdg code base? |
yes, It's possible. File "/data/anaconda3/envs/j/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc |
File ~/imt/comic-text-detector/text_rendering.py:170, in TextLinesSampler.init(self, page_size, sampler_dict)
168 self.page_w, self.page_h = page_size
169 self.lang = sampler_dict['lang']
--> 170 self.lang_dict = load_dict(lang=self.lang)
171 self.orientation_sampler = ScaledSampler(sampler_dict['orientation'])
172 self.numlines_sampler = ScaledSampler(sampler_dict['num_lines'])
TypeError: load_dict() got an unexpected keyword argument 'lang'
In example.ipynb file, the code isn't work with error messages.
what can I do??
The text was updated successfully, but these errors were encountered: