from estnltk import Text from estnltk.syntax.parsers import VISLCG3Parser tekst=open("K1_referentskorpus.txt").read() parser=VISLCG3Parser() sonaandmed=parser.parse_text(Text(tekst), return_type='vislcg3') f=open("K1_referentskorpus_visl3.txt", "w") print("\n".join(sonaandmed),file=f) f.close()