R1j1t / contextualSpellCheck

✔️Contextual word checker for better suggestions
MIT License
405 stars 56 forks source link

Update to spacyv3 #49

Closed jonmun closed 3 years ago

jonmun commented 3 years ago

… v3. See: https://nightly.spacy.io/usage/v3#migrating-add-pipe

Description

Updated ContextualSpellChecker to work with spacy-v3. This is needed as spacy has changed how to add components to the pipeline: https://nightly.spacy.io/usage/v3#migrating-add-pipe

To run this code with spacy v3, a string "contextual_spellchecker" is passsed to add_pipe instead of the ContextualSpellChecker object.

Checklist

R1j1t commented 3 years ago

I have changed the base branch to master and there are a few things which needs to be added:

  1. Test case update
  2. Setting spacy version number >=3
  3. documentation update

If you can add them that would be great otherwise I will add them.