diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-05 22:20:52 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-05 22:20:52 -0500 |
commit | b667ac18c58cd022219bec091e59977107b5bd7d (patch) | |
tree | bf79b3ad5fa5c3ebd89383b1c7cc50e846697900 /sentence_parser.py | |
parent | 45643918180f32f070f8d9f770c446b70c08548d (diff) | |
parent | 288e4d24b61d281819b7f0b5bb697edbcc9ed173 (diff) |
Merge branch 'master' into audio_refactor
Diffstat (limited to 'sentence_parser.py')
-rw-r--r-- | sentence_parser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sentence_parser.py b/sentence_parser.py new file mode 100644 index 000000000..a07b25f6d --- /dev/null +++ b/sentence_parser.py @@ -0,0 +1,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")
\ No newline at end of file |