예제 #1
0
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
예제 #2
0
파일: adaat.py 프로젝트: karlwettin/mishkal
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