Beispiel #1
0
def correctlanguage(text, fromlang, tolang):
    lang = LanguageToken()
    lang.correct_text(text, fromlang, tolang)
Beispiel #2
0
def learnlanguage(text, language):
    lang = LanguageToken()
    lang.add_language(language)
    lang.train_text(text, language)