concordia-server/mgiza-aligner/corpus-compilator/lem2csv.py
2017-07-21 17:37:00 +02:00

11 lines
188 B
Python
Executable File

#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
index = 0
with open(sys.argv[1]) as corpus:
for line in corpus:
index += 1
print(str(index)+"\t"+line.rstrip())