Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tokenize_file(name):
- with open(name, mode='r', encoding="utf8") as f:
- return tokenize(f.read())
- #print(tokenize_file("test2.txt"))
- def check(dict_name, text_name, result_name):
- res = orpho_check(read_orpho_dict(dict_name), tokenize_file(text_name))
- print(res)
- with open(result_name, mode='w', encoding="utf8") as f:
- f.write(str(res))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement