aboutsummaryrefslogtreecommitdiff
path: root/sentence_parser.py
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-09-21 16:54:56 -0400
committerab <abdullah_ahmed@brown.edu>2019-09-21 16:54:56 -0400
commit7a01cf9c12f850c0c1d9c278452df88dd55845aa (patch)
tree9f262451b5fcd196377580ab48f4e0f68fa91182 /sentence_parser.py
parente0b84cf329d7a9c9bda1aadbf25894c4bcc8f13a (diff)
parsed 1m file
Diffstat (limited to 'sentence_parser.py')
-rw-r--r--sentence_parser.py7
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