DeepPavlov icon indicating copy to clipboard operation
DeepPavlov copied to clipboard

Fixed KeyError regarding deeppavlov/vocabs/typos

Open Water-Ty opened this issue 10 months ago • 1 comments

This is a fix to issue #1697. In Issue #1697, this person talks about a KeyError when trying to use the configs.spelling_correction.brillmoore_wikitypos_en model, raising a KeyError when trying to get rid of the keys ⟬ and ⟭, which does not exist. I have tested, and the error wasn't raised (The model was downloaded and libraries were installed). I loaded the model normally, and output was clean and normal.


from deeppavlov import configs, build_model

model = build_model(configs.spelling_correction.brillmoore_wikitypos_en,) output = model(["Where is navada"]) print(output)

OUTPUT: ['where is nevada']

Water-Ty avatar Dec 26 '24 00:12 Water-Ty