INNER CODE UNIT · Python
doc_outcome_spell_check
R1j1t/contextualSpellCheck · contextualSpellCheck/contextualSpellCheck.py:554
def doc_outcome_spell_check(self, doc):
"""
Getter for Doc attribute
Args:
doc {`Spacy.Doc`} :Doc object for which value should be returned
Returns:
str :updated sentence
"""
if not doc._.performed_spellCheck:
return ""
update_query = ""
suggestions = doc._.suggestions_spellCheck
for i in doc:
update_token = i.text_with_ws