INNER CODE UNIT · Python
misspell_identify
R1j1t/contextualSpellCheck · contextualSpellCheck/contextualSpellCheck.py:219
def misspell_identify(self, doc, query=""):
"""To identify misspelled words from the query
At present, All the following criteria should be met for word to be
misspelled
1. Should not be in our vocab
2. should not be a Person
3. Should not be a number
4. Should not be a url
5. Should not be a space
6. Should not be punctuation
7. Should not be a Geopolitical Entity
8. Should not be a Organisation
Args:
doc {`Spacy.Doc`}: Spacy doc object as input
Keyword Args: