def spellcheck(text): """ Spellcheck a text """ import spellcheck.spellcheck as ArabicSpellchecker vocalizer = ArabicSpellchecker.SpellcheckClass() #print (u"lastMark %s"%lastmark).encode('utf8') vocalized_dict = vocalizer.spellcheckOuputHtmlSuggest(text) return vocalized_dict
def spellcheck(text): """ Spellcheck a text """ import spellcheck.spellcheck as ArabicSpellchecker cpath = os.path.join(os.path.dirname(__file__), '../tmp/') vocalizer = ArabicSpellchecker.SpellcheckClass(cpath) #print (u"lastMark %s"%lastmark).encode('utf8') vocalized_dict = vocalizer.spellcheckOuputHtmlSuggest(text) return vocalized_dict