This commit is contained in:
Adam 2020-12-06 15:34:20 +01:00
parent 141f012c59
commit 74270b7f6b

View File

@ -22,8 +22,8 @@ def change_line(word_list, curr_line):
return curr_line.rstrip('\n')
for line in open("./polish_wiki_excerpt.in", encoding="utf8"):
# for line in sys.stdin:
# for line in open("./polish_wiki_excerpt.in", encoding="utf8"):
for line in sys.stdin:
found_words = re.findall(pattern, line)
out = change_line(found_words, line)
if out: