blob: a07b25f6d735a2b74fa7c6119bf11be2eb1ff0d1 (
plain)
1
2
3
4
5
6
7
|
def parse_text(file_path):
with open(file_path, encoding='utf8',mode='r+') as f:
lines = f.readlines()
print(len(lines))
print(lines[1][1])
parse_text("eng_news-typical_2016_10K-sentences.txt")
|