19 lines
469 B
Python
19 lines
469 B
Python
|
import os
|
||
|
import sys
|
||
|
|
||
|
Indok = sys.argv[1]
|
||
|
Outdok = sys.argv[2]
|
||
|
|
||
|
with open(Indok) as InDok:
|
||
|
with open(Outdok, 'a') as OutDok:
|
||
|
for line in InDok:
|
||
|
linelist_lower = []
|
||
|
linelist = eval(line[:-1])
|
||
|
for word in linelist[0]:
|
||
|
if '_' not in word:
|
||
|
linelist_lower.append(word.lower())
|
||
|
OutDok.write('[[' + str(' '.join(linelist_lower)) + "],['Soon']]" )
|
||
|
OutDok.write('\n')
|
||
|
|
||
|
|