import stanza nlp=stanza.Pipeline(lang="et", processors="tokenize") def loePuhver(): f=open("all_errors_corrections_min5.csv", encoding="utf-8") p={} for rida in f: m=rida.split(";") p[m[0]]=m[2] return p def asendaTekst(tekst): t=nlp(tekst) sonad=[sona.text for lause in t.sentences for sona in lause.words] tekstikoht=0 sonakoht=0 vahe="" while tekstikoht